Index: src/plugin/AdblockPlusClient.cpp |
diff --git a/src/plugin/AdblockPlusClient.cpp b/src/plugin/AdblockPlusClient.cpp |
index ffa28bd350f29493a8b73471a72ab3551e896381..0627ad33ae5bcc9af493dc2a64ed2897dccf72af 100644 |
--- a/src/plugin/AdblockPlusClient.cpp |
+++ b/src/plugin/AdblockPlusClient.cpp |
@@ -253,16 +253,16 @@ bool CAdblockPlusClient::IsElementHidden(const std::wstring& tag, IHTMLElement* |
return isHidden; |
} |
-bool CAdblockPlusClient::IsWhitelistedUrl(const std::wstring& url) |
+bool CAdblockPlusClient::IsWhitelistedUrl(const std::wstring& url, const std::vector<std::string>& frameHierarchy) |
{ |
- return !GetWhitelistingFilter(url).empty(); |
+ return !GetWhitelistingFilter(url, frameHierarchy).empty(); |
} |
-std::string CAdblockPlusClient::GetWhitelistingFilter(const std::wstring& url) |
+std::string CAdblockPlusClient::GetWhitelistingFilter(const std::wstring& url, const std::vector<std::string>& frameHierarchy) |
{ |
DEBUG_GENERAL((L"GetWhitelistingFilter: " + url + L" start").c_str()); |
Communication::OutputBuffer request; |
- request << Communication::PROC_GET_WHITELISTING_FITER << url; |
+ request << Communication::PROC_GET_WHITELISTING_FITER << url << frameHierarchy; |
Communication::InputBuffer response; |
if (!CallEngine(request, response)) |
@@ -275,10 +275,10 @@ std::string CAdblockPlusClient::GetWhitelistingFilter(const std::wstring& url) |
return filterText; |
} |
-bool CAdblockPlusClient::IsElemhideWhitelistedOnDomain(const std::wstring& url) |
+bool CAdblockPlusClient::IsElemhideWhitelistedOnDomain(const std::wstring& url, const std::vector<std::string>& frameHierarchy) |
{ |
Communication::OutputBuffer request; |
- request << Communication::PROC_IS_ELEMHIDE_WHITELISTED_ON_URL << url; |
+ request << Communication::PROC_IS_ELEMHIDE_WHITELISTED_ON_URL << url << frameHierarchy; |
Communication::InputBuffer response; |
if (!CallEngine(request, response)) |