| 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 | 7 |
| 8 enum CFilterElementHideAttrPos | 8 enum CFilterElementHideAttrPos |
| 9 { | 9 { |
| 10 POS_NONE = 0, STARTING, ENDING, ANYWHERE, EXACT | 10 POS_NONE = 0, STARTING, ENDING, ANYWHERE, EXACT |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 bool LoadHideFilters(std::vector<std::wstring> filters); | 165 bool LoadHideFilters(std::vector<std::wstring> filters); |
| 166 | 166 |
| 167 bool AddFilterElementHide(CString filter); | 167 bool AddFilterElementHide(CString filter); |
| 168 | 168 |
| 169 | 169 |
| 170 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; |
| 171 | 171 |
| 172 | 172 |
| 173 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; |
| 174 |
| 175 HANDLE hideFiltersLoadedEvent; |
| 174 }; | 176 }; |
| 175 | 177 |
| 176 | 178 |
| 177 #endif // _PLUGIN_FILTER_H_ | 179 #endif // _PLUGIN_FILTER_H_ |
| OLD | NEW |