OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include <stdexcept> | 24 #include <stdexcept> |
25 #include <stdint.h> | 25 #include <stdint.h> |
26 #include <string> | 26 #include <string> |
27 #include <mutex> | 27 #include <mutex> |
28 #include <AdblockPlus/AppInfo.h> | 28 #include <AdblockPlus/AppInfo.h> |
29 #include <AdblockPlus/LogSystem.h> | 29 #include <AdblockPlus/LogSystem.h> |
30 #include <AdblockPlus/IFileSystem.h> | 30 #include <AdblockPlus/IFileSystem.h> |
31 #include <AdblockPlus/JsValue.h> | 31 #include <AdblockPlus/JsValue.h> |
32 #include <AdblockPlus/IWebRequest.h> | 32 #include <AdblockPlus/IWebRequest.h> |
33 #include <AdblockPlus/ITimer.h> | 33 #include <AdblockPlus/ITimer.h> |
| 34 #include <AdblockPlus/Scheduler.h> |
34 | 35 |
35 namespace v8 | 36 namespace v8 |
36 { | 37 { |
37 class Isolate; | 38 class Isolate; |
38 class Value; | 39 class Value; |
39 class Context; | 40 class Context; |
40 template<typename T> class FunctionCallbackInfo; | 41 template<typename T> class FunctionCallbackInfo; |
41 typedef void(*FunctionCallback)(const FunctionCallbackInfo<v8::Value>& info); | 42 typedef void(*FunctionCallback)(const FunctionCallbackInfo<v8::Value>& info); |
42 } | 43 } |
43 | 44 |
(...skipping 12 matching lines...) Expand all Loading... |
56 TimerPtr CreateDefaultTimer(); | 57 TimerPtr CreateDefaultTimer(); |
57 | 58 |
58 /** | 59 /** |
59 * A factory to construct DefaultFileSystem. | 60 * A factory to construct DefaultFileSystem. |
60 */ | 61 */ |
61 FileSystemPtr CreateDefaultFileSystem(); | 62 FileSystemPtr CreateDefaultFileSystem(); |
62 | 63 |
63 /** | 64 /** |
64 * A factory to construct DefaultWebRequest. | 65 * A factory to construct DefaultWebRequest. |
65 */ | 66 */ |
66 WebRequestPtr CreateDefaultWebRequest(); | 67 WebRequestPtr CreateDefaultWebRequest(const Scheduler& scheduler); |
67 | 68 |
68 /** | 69 /** |
69 * A factory to construct LogSystem. | 70 * A factory to construct LogSystem. |
70 */ | 71 */ |
71 LogSystemPtr CreateDefaultLogSystem(); | 72 LogSystemPtr CreateDefaultLogSystem(); |
72 | 73 |
73 /** | 74 /** |
74 * Scope based isolate manager. Creates a new isolate instance on | 75 * Scope based isolate manager. Creates a new isolate instance on |
75 * constructing and disposes it on destructing. | 76 * constructing and disposes it on destructing. |
76 */ | 77 */ |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 EventMap eventCallbacks; | 320 EventMap eventCallbacks; |
320 std::mutex eventCallbacksMutex; | 321 std::mutex eventCallbacksMutex; |
321 JsWeakValuesLists jsWeakValuesLists; | 322 JsWeakValuesLists jsWeakValuesLists; |
322 std::mutex jsWeakValuesListsMutex; | 323 std::mutex jsWeakValuesListsMutex; |
323 TimerPtr timer; | 324 TimerPtr timer; |
324 WebRequestPtr webRequest; | 325 WebRequestPtr webRequest; |
325 }; | 326 }; |
326 } | 327 } |
327 | 328 |
328 #endif | 329 #endif |
OLD | NEW |