OLD | NEW |
(Empty) | |
| 1 #ifndef ADBLOCK_PLUS_ELEM_HIDE_BASE_H |
| 2 #define ADBLOCK_PLUS_ELEM_HIDE_BASE_H |
| 3 |
| 4 #include <cstddef> |
| 5 #include <string> |
| 6 |
| 7 #include "ActiveFilter.h" |
| 8 |
| 9 class ElemHideBase : public ActiveFilter |
| 10 { |
| 11 private: |
| 12 std::u16string selector; |
| 13 public: |
| 14 ElemHideBase(const std::u16string& text, const std::u16string& domains, |
| 15 const std::u16string& selector); |
| 16 static Type Parse(const std::u16string& text, size_t* domainsEnd, |
| 17 size_t* selectorStart); |
| 18 static ElemHideBase* Create(const std::u16string& text); |
| 19 |
| 20 const std::u16string GetSelector() const |
| 21 { |
| 22 return selector; |
| 23 } |
| 24 |
| 25 const std::u16string GetSelectorDomain() const; |
| 26 }; |
| 27 |
| 28 #endif |
OLD | NEW |