| OLD | NEW |
| 1 #include <AdblockPlus.h> | 1 #include <AdblockPlus.h> |
| 2 #include <functional> | 2 #include <functional> |
| 3 #include <vector> | 3 #include <vector> |
| 4 #include <Windows.h> | 4 #include <Windows.h> |
| 5 | 5 |
| 6 #include "../shared/AutoHandle.h" | 6 #include "../shared/AutoHandle.h" |
| 7 #include "../shared/Communication.h" | 7 #include "../shared/Communication.h" |
| 8 #include "../shared/Dictionary.h" | 8 #include "../shared/Dictionary.h" |
| 9 #include "../shared/Utils.h" | 9 #include "../shared/Utils.h" |
| 10 #include "../shared/Version.h" | 10 #include "../shared/Version.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 { | 231 { |
| 232 response << true; | 232 response << true; |
| 233 firstRunActionExecuted = true; | 233 firstRunActionExecuted = true; |
| 234 } | 234 } |
| 235 else | 235 else |
| 236 { | 236 { |
| 237 response << false; | 237 response << false; |
| 238 } | 238 } |
| 239 break; | 239 break; |
| 240 } | 240 } |
| 241 case Communication::PROC_GET_REQUIRE: |
| 242 { |
| 243 std::string name; |
| 244 request >> name; |
| 241 | 245 |
| 246 std::string requireContent = filterEngine->GetRequire(name); |
| 247 if (requireContent.length() > 0) |
| 248 { |
| 249 response << true; |
| 250 response << requireContent; |
| 251 break; |
| 252 } |
| 253 response << false; |
| 254 break; |
| 255 } |
| 242 } | 256 } |
| 243 return response; | 257 return response; |
| 244 } | 258 } |
| 245 | 259 |
| 246 DWORD WINAPI ClientThread(LPVOID param) | 260 DWORD WINAPI ClientThread(LPVOID param) |
| 247 { | 261 { |
| 248 std::auto_ptr<Communication::Pipe> pipe(static_cast<Communication::Pipe*>(pa
ram)); | 262 std::auto_ptr<Communication::Pipe> pipe(static_cast<Communication::Pipe*>(pa
ram)); |
| 249 | 263 |
| 250 try | 264 try |
| 251 { | 265 { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 } | 357 } |
| 344 catch (std::runtime_error e) | 358 catch (std::runtime_error e) |
| 345 { | 359 { |
| 346 DebugException(e); | 360 DebugException(e); |
| 347 return 1; | 361 return 1; |
| 348 } | 362 } |
| 349 } | 363 } |
| 350 | 364 |
| 351 return 0; | 365 return 0; |
| 352 } | 366 } |
| OLD | NEW |