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

Unified Diff: src/plugin/AdblockPlusClient.cpp

Issue 4784041706389504: Issue 1183 - Fix Acceptable Ads hiding (Closed)
Patch Set: Created Aug. 8, 2014, 3:51 p.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.cpp
===================================================================
--- a/src/plugin/AdblockPlusClient.cpp
+++ b/src/plugin/AdblockPlusClient.cpp
@@ -316,6 +316,20 @@
return match;
}
+bool CAdblockPlusClient::HidingEnabledOnDomain(const std::wstring& domain)
+{
+ Communication::OutputBuffer request;
+ request << Communication::PROC_HIDING_ENABLED_ON_DOMAIN << ToUtf8String(domain);
+
+ Communication::InputBuffer response;
+ if (!CallEngine(request, response))
+ return false;
+
+ bool match;
+ response >> match;
+ return match;
+}
+
std::vector<std::wstring> CAdblockPlusClient::GetElementHidingSelectors(const std::wstring& domain)
{
Communication::OutputBuffer request;

Powered by Google App Engine
This is Rietveld