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); |
} |