| OLD | NEW |
| 1 #include <AdblockPlus.h> | 1 #include <AdblockPlus.h> |
| 2 #include <functional> | 2 #include <functional> |
| 3 #include <vector> | 3 #include <vector> |
| 4 #include <thread> | 4 #include <thread> |
| 5 #include <Windows.h> | 5 #include <Windows.h> |
| 6 | 6 |
| 7 #include "../shared/AutoHandle.h" | 7 #include "../shared/AutoHandle.h" |
| 8 #include "../shared/Communication.h" | 8 #include "../shared/Communication.h" |
| 9 #include "../shared/Dictionary.h" | 9 #include "../shared/Dictionary.h" |
| 10 #include "../shared/Utils.h" | 10 #include "../shared/Utils.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 { | 299 { |
| 300 response << true; | 300 response << true; |
| 301 firstRunActionExecuted = true; | 301 firstRunActionExecuted = true; |
| 302 } | 302 } |
| 303 else | 303 else |
| 304 { | 304 { |
| 305 response << false; | 305 response << false; |
| 306 } | 306 } |
| 307 break; | 307 break; |
| 308 } | 308 } |
| 309 case Communication::PROC_COMPARE_VERSIONS: |
| 310 { |
| 311 std::string v1, v2; |
| 312 request >> v1 >> v2; |
| 313 |
| 314 response << filterEngine->CompareVersions(v1, v2); |
| 315 break; |
| 316 } |
| 309 case Communication::PROC_GET_DOCUMENTATION_LINK: | 317 case Communication::PROC_GET_DOCUMENTATION_LINK: |
| 310 { | 318 { |
| 311 response << ToUtf16String(filterEngine->GetPref("documentation_link")->A
sString()); | 319 response << ToUtf16String(filterEngine->GetPref("documentation_link")->A
sString()); |
| 312 break; | 320 break; |
| 313 } | 321 } |
| 314 case Communication::PROC_TOGGLE_PLUGIN_ENABLED: | 322 case Communication::PROC_TOGGLE_PLUGIN_ENABLED: |
| 315 { | 323 { |
| 316 filterEngine->SetPref("enabled", filterEngine->GetJsEngine()->NewValue(!
filterEngine->GetPref("enabled")->AsBool())); | 324 filterEngine->SetPref("enabled", filterEngine->GetJsEngine()->NewValue(!
filterEngine->GetPref("enabled")->AsBool())); |
| 317 response << filterEngine->GetPref("enabled")->AsBool(); | 325 response << filterEngine->GetPref("enabled")->AsBool(); |
| 318 break; | 326 break; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 } | 476 } |
| 469 catch (const std::runtime_error& e) | 477 catch (const std::runtime_error& e) |
| 470 { | 478 { |
| 471 DebugException(e); | 479 DebugException(e); |
| 472 return 1; | 480 return 1; |
| 473 } | 481 } |
| 474 } | 482 } |
| 475 | 483 |
| 476 return 0; | 484 return 0; |
| 477 } | 485 } |
| OLD | NEW |