OLD | NEW |
(Empty) | |
| 1 #ifndef ADBLOCK_PLUS_ELEM_HIDE_BASE_H |
| 2 #define ADBLOCK_PLUS_ELEM_HIDE_BASE_H |
| 3 |
| 4 #include <cstddef> |
| 5 |
| 6 #include "ActiveFilter.h" |
| 7 |
| 8 class ElemHideBase : public ActiveFilter |
| 9 { |
| 10 private: |
| 11 String mSelector; |
| 12 public: |
| 13 ElemHideBase(const String& text, String::size_type domainsEnd, |
| 14 String::size_type selectorStart); |
| 15 static Type Parse(const String& text, String::size_type* domainsEnd, |
| 16 String::size_type* selectorStart, |
| 17 String::size_type* prefixEnd = nullptr, |
| 18 String::size_type* regexpStart = nullptr, |
| 19 String::size_type* regexpEnd = nullptr, |
| 20 String::size_type* suffixStart = nullptr); |
| 21 static Filter* Create(const String& text); |
| 22 |
| 23 EMSCRIPTEN_KEEPALIVE const String GetSelector() const |
| 24 { |
| 25 return mSelector; |
| 26 } |
| 27 |
| 28 EMSCRIPTEN_KEEPALIVE String GetSelectorDomain() const; |
| 29 }; |
| 30 |
| 31 #endif |
OLD | NEW |