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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 20 matching lines...) Expand all Loading... |
31 namespace AdblockPlus | 31 namespace AdblockPlus |
32 { | 32 { |
33 /** | 33 /** |
34 * A factory to construct DefaultTimer. | 34 * A factory to construct DefaultTimer. |
35 */ | 35 */ |
36 TimerPtr CreateDefaultTimer(); | 36 TimerPtr CreateDefaultTimer(); |
37 | 37 |
38 /** | 38 /** |
39 * A factory to construct DefaultFileSystem. | 39 * A factory to construct DefaultFileSystem. |
40 */ | 40 */ |
41 FileSystemPtr CreateDefaultFileSystem(const Scheduler& scheduler); | 41 FileSystemPtr CreateDefaultFileSystem(const Scheduler& scheduler, const std::s
tring& basePath = std::string()); |
42 | 42 |
43 /** | 43 /** |
44 * A factory to construct DefaultWebRequest. | 44 * A factory to construct DefaultWebRequest. |
45 */ | 45 */ |
46 WebRequestPtr CreateDefaultWebRequest(const Scheduler& scheduler); | 46 WebRequestPtr CreateDefaultWebRequest(const Scheduler& scheduler, WebRequestSy
ncPtr syncImpl = nullptr); |
47 | 47 |
48 /** | 48 /** |
49 * A factory to construct LogSystem. | 49 * A factory to construct LogSystem. |
50 */ | 50 */ |
51 LogSystemPtr CreateDefaultLogSystem(); | 51 LogSystemPtr CreateDefaultLogSystem(); |
52 | 52 |
53 class IV8IsolateProvider; | 53 class IV8IsolateProvider; |
54 class JsEngine; | 54 class JsEngine; |
55 | 55 |
56 /** | 56 /** |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 FileSystemPtr fileSystem; | 153 FileSystemPtr fileSystem; |
154 WebRequestPtr webRequest; | 154 WebRequestPtr webRequest; |
155 // used for creation and deletion of modules. | 155 // used for creation and deletion of modules. |
156 std::mutex modulesMutex; | 156 std::mutex modulesMutex; |
157 std::shared_ptr<JsEngine> jsEngine; | 157 std::shared_ptr<JsEngine> jsEngine; |
158 std::shared_future<FilterEnginePtr> filterEngine; | 158 std::shared_future<FilterEnginePtr> filterEngine; |
159 }; | 159 }; |
160 } | 160 } |
161 | 161 |
162 #endif // ADBLOCK_PLUS_PLATFORM_H | 162 #endif // ADBLOCK_PLUS_PLATFORM_H |
OLD | NEW |