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 18 matching lines...) Expand all Loading... |
29 BLOCKING = 2, | 29 BLOCKING = 2, |
30 ELEMHIDE = 4, | 30 ELEMHIDE = 4, |
31 }; | 31 }; |
32 static int filterTypeToDefaults[Filter::Type::MAXTYPE + 1]; | 32 static int filterTypeToDefaults[Filter::Type::MAXTYPE + 1]; |
33 int mDefaults; | 33 int mDefaults; |
34 | 34 |
35 public: | 35 public: |
36 explicit UserDefinedSubscription(const String& id); | 36 explicit UserDefinedSubscription(const String& id); |
37 EMSCRIPTEN_KEEPALIVE bool IsDefaultFor(const Filter* filter) const; | 37 EMSCRIPTEN_KEEPALIVE bool IsDefaultFor(const Filter* filter) const; |
38 EMSCRIPTEN_KEEPALIVE void MakeDefaultFor(const Filter* filter); | 38 EMSCRIPTEN_KEEPALIVE void MakeDefaultFor(const Filter* filter); |
| 39 EMSCRIPTEN_KEEPALIVE void InsertFilterAt(Filter* filter, unsigned pos); |
| 40 EMSCRIPTEN_KEEPALIVE bool RemoveFilterAt(unsigned pos); |
39 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; | 41 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; |
40 }; | 42 }; |
OLD | NEW |