| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 { | 47 { |
| 48 mFilters.push_back(filter); | 48 mFilters.push_back(filter); |
| 49 } | 49 } |
| 50 | 50 |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 class ElemHideEmulation : public ref_counted | 53 class ElemHideEmulation : public ref_counted |
| 54 { | 54 { |
| 55 StringMap<ElemHideBasePtr> mFilters; | 55 StringMap<ElemHideBasePtr> mFilters; |
| 56 | 56 |
| 57 static ElemHideEmulation* mInstance; | |
|
sergei
2018/01/30 16:00:47
It's not used, could you please remove it?
hub
2018/01/30 17:37:58
Done.
| |
| 58 | |
| 59 public: | 57 public: |
| 60 static ElemHideEmulation* BINDINGS_EXPORTED Create() | 58 static ElemHideEmulation* BINDINGS_EXPORTED Create() |
| 61 { | 59 { |
| 62 return new ElemHideEmulation(); | 60 return new ElemHideEmulation(); |
| 63 } | 61 } |
| 64 | 62 |
| 65 void BINDINGS_EXPORTED Add(ElemHideBase&); | 63 void BINDINGS_EXPORTED Add(ElemHideBase&); |
| 66 void BINDINGS_EXPORTED Remove(ElemHideBase&); | 64 void BINDINGS_EXPORTED Remove(ElemHideBase&); |
| 67 void BINDINGS_EXPORTED Clear(); | 65 void BINDINGS_EXPORTED Clear(); |
| 68 ElemHideEmulation_FilterList* BINDINGS_EXPORTED GetRulesForDomain(const ElemHi de&, DependentString&); | 66 ElemHideEmulation_FilterList* BINDINGS_EXPORTED GetRulesForDomain(const ElemHi de&, DependentString&); |
| 69 }; | 67 }; |
| LEFT | RIGHT |