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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 AdblockPlus::JsValuePtr valuePtr = filterEngine->GetPref(name); | 160 AdblockPlus::JsValuePtr valuePtr = filterEngine->GetPref(name); |
161 if ((valuePtr->IsNull()) || (!valuePtr->IsString())) | 161 if ((valuePtr->IsNull()) || (!valuePtr->IsString())) |
162 response << 0; | 162 response << 0; |
163 else | 163 else |
164 { | 164 { |
165 response << 1; | 165 response << 1; |
166 response << valuePtr->AsString(); | 166 response << valuePtr->AsString(); |
167 } | 167 } |
168 break; | 168 break; |
169 } | 169 } |
| 170 case Communication::PROC_GET_IS_FIRST_RUN: |
| 171 { |
| 172 response << filterEngine->IsFirstRun(); |
| 173 break; |
| 174 } |
170 | 175 |
171 } | 176 } |
172 return response; | 177 return response; |
173 } | 178 } |
174 | 179 |
175 DWORD WINAPI ClientThread(LPVOID param) | 180 DWORD WINAPI ClientThread(LPVOID param) |
176 { | 181 { |
177 std::auto_ptr<Communication::Pipe> pipe(static_cast<Communication::Pipe*>(pa
ram)); | 182 std::auto_ptr<Communication::Pipe> pipe(static_cast<Communication::Pipe*>(pa
ram)); |
178 | 183 |
179 try | 184 try |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 } | 277 } |
273 catch (std::runtime_error e) | 278 catch (std::runtime_error e) |
274 { | 279 { |
275 DebugException(e); | 280 DebugException(e); |
276 return 1; | 281 return 1; |
277 } | 282 } |
278 } | 283 } |
279 | 284 |
280 return 0; | 285 return 0; |
281 } | 286 } |
OLD | NEW |