| 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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 28 matching lines...) Expand all Loading... |
| 39 REGEXP = ACTIVE | 8, | 39 REGEXP = ACTIVE | 8, |
| 40 BLOCKING = REGEXP | 16, | 40 BLOCKING = REGEXP | 16, |
| 41 WHITELIST = REGEXP | 32, | 41 WHITELIST = REGEXP | 32, |
| 42 ELEMHIDEBASE = ACTIVE | 64, | 42 ELEMHIDEBASE = ACTIVE | 64, |
| 43 ELEMHIDE = ELEMHIDEBASE | 128, | 43 ELEMHIDE = ELEMHIDEBASE | 128, |
| 44 ELEMHIDEEXCEPTION = ELEMHIDEBASE | 256, | 44 ELEMHIDEEXCEPTION = ELEMHIDEBASE | 256, |
| 45 ELEMHIDEEMULATION = ELEMHIDEBASE | 512 | 45 ELEMHIDEEMULATION = ELEMHIDEBASE | 512 |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 explicit Filter(Type type, const String& text); | 48 explicit Filter(Type type, const String& text); |
| 49 explicit Filter(Type type, String&& text); |
| 49 ~Filter(); | 50 ~Filter(); |
| 50 | 51 |
| 51 Type mType; | 52 Type mType; |
| 52 | 53 |
| 53 const String& BINDINGS_EXPORTED GetText() const | 54 const String& BINDINGS_EXPORTED GetText() const |
| 54 { | 55 { |
| 55 return mText; | 56 return mText; |
| 56 } | 57 } |
| 57 | 58 |
| 58 OwnedString BINDINGS_EXPORTED Serialize() const; | 59 OwnedString BINDINGS_EXPORTED Serialize() const; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 72 const T* As() const | 73 const T* As() const |
| 73 { | 74 { |
| 74 if ((mType & T::classType) != T::classType) | 75 if ((mType & T::classType) != T::classType) |
| 75 return nullptr; | 76 return nullptr; |
| 76 | 77 |
| 77 return static_cast<const T*>(this); | 78 return static_cast<const T*>(this); |
| 78 } | 79 } |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 typedef intrusive_ptr<Filter> FilterPtr; | 82 typedef intrusive_ptr<Filter> FilterPtr; |
| OLD | NEW |