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

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

Issue 29499621: Issue 4983 - Get rid of Sleep() in the WebRequest test (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created July 27, 2017, 10:18 a.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 | include/AdblockPlus/Scheduler.h » ('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 13 matching lines...) Expand all
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
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
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
OLDNEW
« no previous file with comments | « no previous file | include/AdblockPlus/Scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld