Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: include/AdblockPlus/JsEngine.h

Issue 29498586: Issue 4832 - remove API allowing changing of FileSystem after Initialization of JsEngine (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created July 26, 2017, 2:46 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/JsEngine.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/JsEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld