| 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 bool CAdblockPlusClient::TogglePluginEnabled() | 506 bool CAdblockPlusClient::TogglePluginEnabled() |
| 507 { | 507 { |
| 508 DEBUG_GENERAL("TogglePluginEnabled"); | 508 DEBUG_GENERAL("TogglePluginEnabled"); |
| 509 Communication::InputBuffer response; | 509 Communication::InputBuffer response; |
| 510 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response)) | 510 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response)) |
| 511 return false; | 511 return false; |
| 512 bool currentEnabledState; | 512 bool currentEnabledState; |
| 513 response >> currentEnabledState; | 513 response >> currentEnabledState; |
| 514 return currentEnabledState; | 514 return currentEnabledState; |
| 515 } | 515 } |
| 516 |
| 516 std::wstring CAdblockPlusClient::GetHostFromUrl(const std::wstring& url) | 517 std::wstring CAdblockPlusClient::GetHostFromUrl(const std::wstring& url) |
| 517 { | 518 { |
| 518 DEBUG_GENERAL("GetHostFromUrl"); | 519 DEBUG_GENERAL("GetHostFromUrl"); |
| 519 Communication::OutputBuffer request; | 520 Communication::OutputBuffer request; |
| 520 request << Communication::PROC_GET_HOST << ToUtf8String(url); | 521 request << Communication::PROC_GET_HOST << ToUtf8String(url); |
| 521 | 522 |
| 522 Communication::InputBuffer response; | 523 Communication::InputBuffer response; |
| 523 if (!CallEngine(request, response)) | 524 if (!CallEngine(request, response)) |
| 524 return L""; | 525 return L""; |
| 525 std::string host; | 526 std::string host; |
| 526 response >> host; | 527 response >> host; |
| 527 return ToUtf16String(host); | 528 return ToUtf16String(host); |
| 528 } | 529 } |
| OLD | NEW |