| 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 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 ELEMHIDEEXCEPTION = 6, | 40 ELEMHIDEEXCEPTION = 6, |
| 41 ELEMHIDEEMULATION = 7, | 41 ELEMHIDEEMULATION = 7, |
| 42 VALUE_COUNT = 8 | 42 VALUE_COUNT = 8 |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 explicit Filter(Type type, const String& text); | 45 explicit Filter(Type type, const String& text); |
| 46 ~Filter(); | 46 ~Filter(); |
| 47 | 47 |
| 48 Type mType; | 48 Type mType; |
| 49 | 49 |
| 50 /* TODO | |
| 51 std::vector<Subscription> mSubscriptions; | |
| 52 */ | |
| 53 | |
| 54 EMSCRIPTEN_KEEPALIVE const String& GetText() const | 50 EMSCRIPTEN_KEEPALIVE const String& GetText() const |
| 55 { | 51 { |
| 56 return mText; | 52 return mText; |
| 57 } | 53 } |
| 58 | 54 |
| 59 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; | 55 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; |
| 60 | 56 |
| 61 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text); | 57 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text); |
| 62 }; | 58 }; |
| 63 | 59 |
| 64 typedef intrusive_ptr<Filter> FilterPtr; | 60 typedef intrusive_ptr<Filter> FilterPtr; |
| OLD | NEW |