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

Unified Diff: src/plugin/AdblockPlusClient.h

Issue 5316782940225536: Issue 1557 - Update to the recent libadblockplus to reduce additional updates in the logic later. (Closed)
Patch Set: remove debugging code Created Nov. 24, 2014, 11:09 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/AdblockPlusClient.h
===================================================================
--- a/src/plugin/AdblockPlusClient.h
+++ b/src/plugin/AdblockPlusClient.h
@@ -6,6 +6,7 @@
#include "PluginClientBase.h"
#include "../shared/Communication.h"
#include "../shared/CriticalSection.h"
+#include <AdblockPlus/FilterEngine.h>
class CPluginFilter;
@@ -49,7 +50,7 @@
// Removes the url from the list of whitelisted urls if present
// Only called from ui thread
- bool ShouldBlock(const std::wstring& src, int contentType, const std::wstring& domain, bool addDebug=false);
+ bool ShouldBlock(const std::wstring& src, AdblockPlus::FilterEngine::ContentType contentType, const std::wstring& domain, bool addDebug=false);
bool IsElementHidden(const std::wstring& tag, IHTMLElement* pEl, const std::wstring& domain, const std::wstring& indent, CPluginFilter* filter);
bool IsWhitelistedUrl(const std::wstring& url);
@@ -57,7 +58,7 @@
int GetIEVersion();
- bool Matches(const std::wstring& url, const std::wstring& contentType, const std::wstring& domain);
+ bool Matches(const std::wstring& url, AdblockPlus::FilterEngine::ContentType contentType, const std::wstring& domain);
std::vector<std::wstring> GetElementHidingSelectors(const std::wstring& domain);
std::vector<SubscriptionDescription> FetchAvailableSubscriptions();
std::vector<SubscriptionDescription> GetListedSubscriptions();

Powered by Google App Engine
This is Rietveld