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

Unified Diff: src/plugin/AdblockPlusClient.cpp

Issue 5081266177179648: Issue 1104 - Cannot uncheck Disable on website option in tool bar (Closed)
Patch Set: Created Feb. 23, 2015, 12:40 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
diff --git a/src/plugin/AdblockPlusClient.cpp b/src/plugin/AdblockPlusClient.cpp
index db60b634fa07964e4db920771afc8392ddbf2b44..16d36afc6d0542d2a9cef52bb8ea3bbc60237558 100644
--- a/src/plugin/AdblockPlusClient.cpp
+++ b/src/plugin/AdblockPlusClient.cpp
@@ -396,17 +396,24 @@ bool CAdblockPlusClient::IsFirstRun()
return res;
}
-void CAdblockPlusClient::AddFilter(const std::wstring& text)
+void CAdblockPlusClient::AddWhiteListedDomain(const std::wstring& domain)
{
Communication::OutputBuffer request;
- request << Communication::PROC_ADD_FILTER << ToUtf8String(text);
+ request << Communication::PROC_ADD_WHITELSITED_DOMAIN << ToUtf8String(domain);
CallEngine(request);
}
-void CAdblockPlusClient::RemoveFilter(const std::wstring& text)
+void CAdblockPlusClient::RemoveWhiteListedDomain(const std::wstring& domain)
{
Communication::OutputBuffer request;
- request << Communication::PROC_REMOVE_FILTER << ToUtf8String(text);
+ request << Communication::PROC_REMOVE_WHITELSITED_DOMAIN << ToUtf8String(domain);
+ CallEngine(request);
+}
+
+void CAdblockPlusClient::ToggleWhitelisting(const std::wstring& url)
+{
+ Communication::OutputBuffer request;
+ request << Communication::PROC_TOGGLE_WHITELISTING << ToUtf8String(url);
CallEngine(request);
}

Powered by Google App Engine
This is Rietveld