| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 } | 
| OLD | NEW | 
|---|