| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
| 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 #pragma once | 18 #pragma once |
| 19 | 19 |
| 20 #include <vector> | 20 #include <vector> |
| 21 | 21 |
| 22 #include <emscripten.h> |
| 23 |
| 22 #include "../String.h" | 24 #include "../String.h" |
| 23 #include "../intrusive_ptr.h" | 25 #include "../intrusive_ptr.h" |
| 24 #include "../debug.h" | 26 #include "../debug.h" |
| 25 | 27 |
| 26 class Filter : public ref_counted | 28 class Filter : public ref_counted |
| 27 { | 29 { |
| 28 protected: | 30 protected: |
| 29 OwnedString mText; | 31 OwnedString mText; |
| 30 | 32 |
| 31 public: | 33 public: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 51 { | 53 { |
| 52 return mText; | 54 return mText; |
| 53 } | 55 } |
| 54 | 56 |
| 55 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; | 57 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; |
| 56 | 58 |
| 57 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text); | 59 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text); |
| 58 }; | 60 }; |
| 59 | 61 |
| 60 typedef intrusive_ptr<Filter> FilterPtr; | 62 typedef intrusive_ptr<Filter> FilterPtr; |
| OLD | NEW |