OLD | NEW |
1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
2 #include "PluginSettings.h" | 2 #include "PluginSettings.h" |
3 #include "PluginSystem.h" | 3 #include "PluginSystem.h" |
4 #include "PluginFilter.h" | 4 #include "PluginFilter.h" |
5 #include "PluginClientFactory.h" | 5 #include "PluginClientFactory.h" |
6 #include "PluginMutex.h" | 6 #include "PluginMutex.h" |
7 #include "PluginClass.h" | 7 #include "PluginClass.h" |
8 | 8 |
9 #include "AdblockPlusClient.h" | 9 #include "AdblockPlusClient.h" |
10 | 10 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 309 |
310 Communication::InputBuffer response; | 310 Communication::InputBuffer response; |
311 if (!CallEngine(request, response)) | 311 if (!CallEngine(request, response)) |
312 return false; | 312 return false; |
313 | 313 |
314 bool match; | 314 bool match; |
315 response >> match; | 315 response >> match; |
316 return match; | 316 return match; |
317 } | 317 } |
318 | 318 |
| 319 bool CAdblockPlusClient::HidingEnabledOnDomain(const std::wstring& domain) |
| 320 { |
| 321 Communication::OutputBuffer request; |
| 322 request << Communication::PROC_HIDING_ENABLED_ON_DOMAIN << ToUtf8String(domain
); |
| 323 |
| 324 Communication::InputBuffer response; |
| 325 if (!CallEngine(request, response)) |
| 326 return false; |
| 327 |
| 328 bool match; |
| 329 response >> match; |
| 330 return match; |
| 331 } |
| 332 |
319 std::vector<std::wstring> CAdblockPlusClient::GetElementHidingSelectors(const st
d::wstring& domain) | 333 std::vector<std::wstring> CAdblockPlusClient::GetElementHidingSelectors(const st
d::wstring& domain) |
320 { | 334 { |
321 Communication::OutputBuffer request; | 335 Communication::OutputBuffer request; |
322 request << Communication::PROC_GET_ELEMHIDE_SELECTORS << ToUtf8String(domain); | 336 request << Communication::PROC_GET_ELEMHIDE_SELECTORS << ToUtf8String(domain); |
323 | 337 |
324 Communication::InputBuffer response; | 338 Communication::InputBuffer response; |
325 if (!CallEngine(request, response)) | 339 if (!CallEngine(request, response)) |
326 return std::vector<std::wstring>(); | 340 return std::vector<std::wstring>(); |
327 return ReadStrings(response); | 341 return ReadStrings(response); |
328 } | 342 } |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 DEBUG_GENERAL("CompareVersions"); | 578 DEBUG_GENERAL("CompareVersions"); |
565 Communication::OutputBuffer request; | 579 Communication::OutputBuffer request; |
566 request << Communication::PROC_COMPARE_VERSIONS << ToUtf8String(v1) << ToUtf8S
tring(v2); | 580 request << Communication::PROC_COMPARE_VERSIONS << ToUtf8String(v1) << ToUtf8S
tring(v2); |
567 Communication::InputBuffer response; | 581 Communication::InputBuffer response; |
568 if (!CallEngine(request, response)) | 582 if (!CallEngine(request, response)) |
569 return 0; | 583 return 0; |
570 int result; | 584 int result; |
571 response >> result; | 585 response >> result; |
572 return result; | 586 return result; |
573 } | 587 } |
OLD | NEW |