Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: Shared/PluginFilter.h

Issue 9998007: Initial libadblockplus integration (Closed)
Patch Set: More integration, reflecting latest libadblockplus changes Created April 9, 2013, 5:48 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Shared/PluginConfiguration.cpp ('k') | Shared/PluginFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « Shared/PluginConfiguration.cpp ('k') | Shared/PluginFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld