OLD | NEW |
1 #ifndef _PLUGIN_FILTER_H_ | 1 #ifndef _PLUGIN_FILTER_H_ |
2 #define _PLUGIN_FILTER_H_ | 2 #define _PLUGIN_FILTER_H_ |
3 | 3 |
4 | 4 |
5 #include "PluginTypedef.h" | 5 #include "PluginTypedef.h" |
6 | 6 |
7 | 7 |
8 // ============================================================================ | 8 // ============================================================================ |
9 // CFilterElementHideAttrSelector | 9 // CFilterElementHideAttrSelector |
10 // ============================================================================ | 10 // ============================================================================ |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 CPluginFilter(const CString& dataPath = ""); | 159 CPluginFilter(const CString& dataPath = ""); |
160 | 160 |
161 bool LoadHideFilters(std::vector<std::string> filters); | 161 bool LoadHideFilters(std::vector<std::string> filters); |
162 | 162 |
163 bool AddFilterElementHide(CString filter); | 163 bool AddFilterElementHide(CString filter); |
164 | 164 |
165 | 165 |
166 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom
ain, const CString& indent) const; | 166 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom
ain, const CString& indent) const; |
167 | 167 |
168 const CFilter* MatchFilter(int filterType, const CString& src, int contentType
, const CString& domain) const; | |
169 bool IsMatchFilter(const CFilter& filter, CString src, const CString& srcDomai
n, const CString& domain) const; | |
170 | |
171 bool IsMatchFilterElementHide(const CFilterElementHide& filter, IHTMLElement*
pEl, const CString& domain) const; | 168 bool IsMatchFilterElementHide(const CFilterElementHide& filter, IHTMLElement*
pEl, const CString& domain) const; |
172 | 169 |
173 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add
Debug=false) const; | 170 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add
Debug=false) const; |
174 bool ShouldWhiteList(CString url) const; | 171 bool ShouldWhiteList(CString url) const; |
175 }; | 172 }; |
176 | 173 |
177 | 174 |
178 #endif // _PLUGIN_FILTER_H_ | 175 #endif // _PLUGIN_FILTER_H_ |
OLD | NEW |