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 #include <memory> | 6 #include <memory> |
7 #include "..\shared\Utils.h" | |
8 | 7 |
9 enum CFilterElementHideAttrPos | 8 enum CFilterElementHideAttrPos |
10 { | 9 { |
11 POS_NONE = 0, STARTING, ENDING, ANYWHERE, EXACT | 10 POS_NONE = 0, STARTING, ENDING, ANYWHERE, EXACT |
12 }; | 11 }; |
13 | 12 |
14 enum CFilterElementHideAttrType | 13 enum CFilterElementHideAttrType |
15 { | 14 { |
16 TYPE_NONE = 0, STYLE, ID, CLASS | 15 TYPE_NONE = 0, STYLE, ID, CLASS |
17 }; | 16 }; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 169 |
171 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom
ain, const CString& indent) const; | 170 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom
ain, const CString& indent) const; |
172 | 171 |
173 | 172 |
174 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add
Debug=false) const; | 173 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add
Debug=false) const; |
175 bool ShouldWhiteList(CString url) const; | 174 bool ShouldWhiteList(CString url) const; |
176 }; | 175 }; |
177 | 176 |
178 | 177 |
179 #endif // _PLUGIN_FILTER_H_ | 178 #endif // _PLUGIN_FILTER_H_ |
OLD | NEW |