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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 */ | 268 */ |
269 JsValueList ConvertArguments(const v8::FunctionCallbackInfo<v8::Value>& argu
ments); | 269 JsValueList ConvertArguments(const v8::FunctionCallbackInfo<v8::Value>& argu
ments); |
270 | 270 |
271 /** | 271 /** |
272 * Private functionality. | 272 * Private functionality. |
273 * @return The asynchronous IFileSystem implementation. | 273 * @return The asynchronous IFileSystem implementation. |
274 */ | 274 */ |
275 FileSystemPtr GetAsyncFileSystem() const; | 275 FileSystemPtr GetAsyncFileSystem() const; |
276 | 276 |
277 /** | 277 /** |
278 * Sets the synchronous `FileSystem` implementation used for all | |
279 * file I/O. Setting this is optional, the engine will use the | |
280 * implementation created by `CreateDefaultFileSystem()` by | |
281 * default, which might be sufficient. | |
282 * @param The `FileSystem` instance to use. | |
283 */ | |
284 void SetFileSystem(const FileSystemSyncPtr& val); | |
285 | |
286 /** | |
287 * Private functionality. | 278 * Private functionality. |
288 * @return The LogSystem implementation. | 279 * @return The LogSystem implementation. |
289 */ | 280 */ |
290 LogSystem& GetLogSystem(); | 281 LogSystem& GetLogSystem(); |
291 | 282 |
292 /** | 283 /** |
293 * Sets a global property that can be accessed by all the scripts. | 284 * Sets a global property that can be accessed by all the scripts. |
294 * @param name Name of the property to set. | 285 * @param name Name of the property to set. |
295 * @param value Value of the property to set. | 286 * @param value Value of the property to set. |
296 */ | 287 */ |
(...skipping 29 matching lines...) Expand all Loading... |
326 EventMap eventCallbacks; | 317 EventMap eventCallbacks; |
327 std::mutex eventCallbacksMutex; | 318 std::mutex eventCallbacksMutex; |
328 JsWeakValuesLists jsWeakValuesLists; | 319 JsWeakValuesLists jsWeakValuesLists; |
329 std::mutex jsWeakValuesListsMutex; | 320 std::mutex jsWeakValuesListsMutex; |
330 TimerPtr timer; | 321 TimerPtr timer; |
331 WebRequestPtr webRequest; | 322 WebRequestPtr webRequest; |
332 }; | 323 }; |
333 } | 324 } |
334 | 325 |
335 #endif | 326 #endif |
OLD | NEW |