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

Side by Side Diff: Shared/AdblockPlusClient.h

Issue 9998007: Initial libadblockplus integration (Closed)
Patch Set: Whitelisting management Created April 11, 2013, 9:06 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 | « AdPlugin.sln ('k') | Shared/PluginClass.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 _SIMPLE_ADBLOCK_CLIENT_H_ 1 #ifndef _SIMPLE_ADBLOCK_CLIENT_H_
2 #define _SIMPLE_ADBLOCK_CLIENT_H_ 2 #define _SIMPLE_ADBLOCK_CLIENT_H_
3 3
4 4
5 #include "PluginTypedef.h" 5 #include "PluginTypedef.h"
6 #include "PluginClientBase.h" 6 #include "PluginClientBase.h"
7 #include "AdblockPlus.h" 7 #include "AdblockPlus.h"
8 8
9 9
10 using namespace AdblockPlus; 10 using namespace AdblockPlus;
(...skipping 26 matching lines...) Expand all
37 { 37 {
38 38
39 private: 39 private:
40 40
41 std::auto_ptr<CPluginFilter> m_filter; 41 std::auto_ptr<CPluginFilter> m_filter;
42 std::auto_ptr<LibFileReader> fileReader; 42 std::auto_ptr<LibFileReader> fileReader;
43 std::auto_ptr<CerrErrorCallback> errorCallback; 43 std::auto_ptr<CerrErrorCallback> errorCallback;
44 std::auto_ptr<AdblockPlus::JsEngine> jsEngine; 44 std::auto_ptr<AdblockPlus::JsEngine> jsEngine;
45 std::auto_ptr<AdblockPlus::FilterEngine> filterEngine; 45 std::auto_ptr<AdblockPlus::FilterEngine> filterEngine;
46 46
47 TFilterFileList m_filterDownloads;
48
49 CComAutoCriticalSection m_criticalSectionFilter; 47 CComAutoCriticalSection m_criticalSectionFilter;
50 CComAutoCriticalSection m_criticalSectionCache; 48 CComAutoCriticalSection m_criticalSectionCache;
51 49
52 std::map<CString,bool> m_cacheBlockedSources; 50 std::map<CString,bool> m_cacheBlockedSources;
53 51
54 52
55 // Private constructor used by the singleton pattern 53 // Private constructor used by the singleton pattern
56 CAdblockPlusClient(); 54 CAdblockPlusClient();
57 55
58 public: 56 public:
(...skipping 11 matching lines...) Expand all
70 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add Debug=false); 68 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add Debug=false);
71 69
72 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent, CPluginFilter* filter); 70 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent, CPluginFilter* filter);
73 bool IsUrlWhiteListed(const CString& url); 71 bool IsUrlWhiteListed(const CString& url);
74 72
75 int GetIEVersion(); 73 int GetIEVersion();
76 74
77 }; 75 };
78 76
79 #endif // _SIMPLE_ADBLOCK_CLIENT_H_ 77 #endif // _SIMPLE_ADBLOCK_CLIENT_H_
OLDNEW
« no previous file with comments | « AdPlugin.sln ('k') | Shared/PluginClass.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld