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

Side by Side Diff: src/plugin/PluginFilter.h

Issue 10955040: Fix domain whitelisting and remove unused code (Closed)
Patch Set: Addressed all issues Created June 25, 2013, 2:19 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
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 #include <memory> 6 #include <memory>
7 #include "..\shared\Utils.h" 7 #include "..\shared\Utils.h"
8 8
9 enum CFilterElementHideAttrPos 9 enum CFilterElementHideAttrPos
10 { 10 {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 bool LoadHideFilters(std::vector<std::string> filters); 166 bool LoadHideFilters(std::vector<std::string> filters);
167 167
168 bool AddFilterElementHide(CString filter); 168 bool AddFilterElementHide(CString filter);
169 169
170 170
171 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent) const; 171 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent) const;
172 172
173 173
174 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add Debug=false) const; 174 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add Debug=false) const;
175 bool ShouldWhiteList(CString url) const;
176 }; 175 };
177 176
178 177
179 #endif // _PLUGIN_FILTER_H_ 178 #endif // _PLUGIN_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld