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

Side by Side Diff: src/plugin/AdblockPlusClient.cpp

Issue 5663180676136960: Make sure IE and Engine are actually being closed by custom action (Closed)
Patch Set: Use handle class for HMODULE. Add back a test for immersive case. Created June 26, 2014, 1:24 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « installer/src/installer-lib/test/process_test.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « installer/src/installer-lib/test/process_test.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld