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

Delta Between Two Patch Sets: src/plugin/AdblockPlusClient.cpp

Issue 11427013: Appear fast for IE (Closed)
Left Patch Set: Created Aug. 7, 2013, 5:44 a.m.
Right Patch Set: Comments addressed Created Aug. 7, 2013, 4:01 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | src/plugin/Config.h » ('j') | src/plugin/Config.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include "PluginSettings.h" 3 #include "PluginSettings.h"
4 #include "PluginSystem.h" 4 #include "PluginSystem.h"
5 #include "PluginFilter.h" 5 #include "PluginFilter.h"
6 #include "PluginClientFactory.h" 6 #include "PluginClientFactory.h"
7 #include "PluginMutex.h" 7 #include "PluginMutex.h"
8 #include "PluginClass.h" 8 #include "PluginClass.h"
9 9
10 #include "AdblockPlusClient.h" 10 #include "AdblockPlusClient.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 { 42 {
43 try 43 try
44 { 44 {
45 return std::auto_ptr<Communication::Pipe>(new Communication::Pipe(Communic ation::pipeName, Communication::Pipe::MODE_CONNECT)); 45 return std::auto_ptr<Communication::Pipe>(new Communication::Pipe(Communic ation::pipeName, Communication::Pipe::MODE_CONNECT));
46 } 46 }
47 catch (Communication::PipeConnectionError e) 47 catch (Communication::PipeConnectionError e)
48 { 48 {
49 SpawnAdblockPlusEngine(); 49 SpawnAdblockPlusEngine();
50 50
51 const int step = 100; 51 const int step = 100;
52 for (int timeout = 10000; timeout > 0; timeout -= step) 52 for (int timeout = TIMEOUT_VALUE; timeout > 0; timeout -= step)
53 { 53 {
54 Sleep(step); 54 Sleep(step);
55 try 55 try
56 { 56 {
57 return std::auto_ptr<Communication::Pipe>(new Communication::Pipe(Comm unication::pipeName, Communication::Pipe::MODE_CONNECT)); 57 return std::auto_ptr<Communication::Pipe>(new Communication::Pipe(Comm unication::pipeName, Communication::Pipe::MODE_CONNECT));
58 } 58 }
59 catch (Communication::PipeConnectionError e) 59 catch (Communication::PipeConnectionError e)
60 { 60 {
61 } 61 }
62 } 62 }
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 425
426 std::wstring CAdblockPlusClient::GetDocumentationLink() 426 std::wstring CAdblockPlusClient::GetDocumentationLink()
427 { 427 {
428 Communication::InputBuffer response; 428 Communication::InputBuffer response;
429 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response)) 429 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response))
430 return L""; 430 return L"";
431 std::wstring docLink; 431 std::wstring docLink;
432 response >> docLink; 432 response >> docLink;
433 return docLink; 433 return docLink;
434 } 434 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld