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: 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 | « AdPlugin.sln ('k') | Shared/AdblockPlusClient.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 CAdblockPlusClient(); 56 CAdblockPlusClient();
57 57
58 public: 58 public:
59 59
60 static CAdblockPlusClient* s_instance; 60 static CAdblockPlusClient* s_instance;
61 61
62 ~CAdblockPlusClient(); 62 ~CAdblockPlusClient();
63 63
64 static CAdblockPlusClient* GetInstance(); 64 static CAdblockPlusClient* GetInstance();
65 65
66 bool LoadFilters();
67
68 AdblockPlus::FilterEngine* GetFilterEngine(); 66 AdblockPlus::FilterEngine* GetFilterEngine();
69 67
70 // Removes the url from the list of whitelisted urls if present 68 // Removes the url from the list of whitelisted urls if present
71 // Only called from ui thread 69 // Only called from ui thread
72 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add Debug=false); 70 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add Debug=false);
73 71
74 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent); 72 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent, CPluginFilter* filter);
75 bool IsUrlWhiteListed(const CString& url); 73 bool IsUrlWhiteListed(const CString& url);
76 74
77 int GetIEVersion(); 75 int GetIEVersion();
78 76
79 }; 77 };
80 78
81 #endif // _SIMPLE_ADBLOCK_CLIENT_H_ 79 #endif // _SIMPLE_ADBLOCK_CLIENT_H_
OLDNEW
« no previous file with comments | « AdPlugin.sln ('k') | Shared/AdblockPlusClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld