| LEFT | RIGHT |
| 1 #pragma once | 1 #pragma once |
| 2 | 2 |
| 3 #include "Filter.h" | 3 #include "Filter.h" |
| 4 #include "ActiveFilter.h" | 4 #include "ActiveFilter.h" |
| 5 | 5 |
| 6 enum class TrippleState {YES, NO, ANY}; | 6 enum class TrippleState {YES, NO, ANY}; |
| 7 | 7 |
| 8 struct RegExpFilterData | 8 struct RegExpFilterData |
| 9 { | 9 { |
| 10 mutable String::size_type mPatternStart; | 10 mutable String::size_type mPatternStart; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 { | 78 { |
| 79 private: | 79 private: |
| 80 void ParseSitekeys(const String& sitekeys) const; | 80 void ParseSitekeys(const String& sitekeys) const; |
| 81 | 81 |
| 82 protected: | 82 protected: |
| 83 RegExpFilterData mData; | 83 RegExpFilterData mData; |
| 84 | 84 |
| 85 DomainMap* GetDomains() const override; | 85 DomainMap* GetDomains() const override; |
| 86 SitekeySet* GetSitekeys() const override; | 86 SitekeySet* GetSitekeys() const override; |
| 87 public: | 87 public: |
| 88 RegExpFilter(Type type, const String& text, const RegExpFilterData& data); | 88 explicit RegExpFilter(Type type, const String& text, const RegExpFilterData& d
ata); |
| 89 ~RegExpFilter(); | 89 ~RegExpFilter(); |
| 90 static Type Parse(DependentString& text, DependentString& error, | 90 static Type Parse(DependentString& text, DependentString& error, |
| 91 RegExpFilterData& data); | 91 RegExpFilterData& data); |
| 92 EMSCRIPTEN_KEEPALIVE static void InitJSTypes(); | 92 EMSCRIPTEN_KEEPALIVE static void InitJSTypes(); |
| 93 static OwnedString RegExpFromSource(const String& source); | 93 static OwnedString RegExpFromSource(const String& source); |
| 94 EMSCRIPTEN_KEEPALIVE bool Matches(const String& location, int typeMask, | 94 EMSCRIPTEN_KEEPALIVE bool Matches(const String& location, int typeMask, |
| 95 DependentString& docDomain, bool thirdParty, const String& sitekey) const; | 95 DependentString& docDomain, bool thirdParty, const String& sitekey) const; |
| 96 }; | 96 }; |
| LEFT | RIGHT |