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

Delta Between Two Patch Sets: include/AdblockPlus/JsEngine.h

Issue 29377570: Issue 4931 - add possibility to not send data depending on connection properties (Closed)
Left Patch Set: Created Feb. 28, 2017, 2:22 p.m.
Right Patch Set: rebase Created March 16, 2017, 4:02 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « include/AdblockPlus/FilterEngine.h ('k') | lib/prefs.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 #ifndef ADBLOCK_PLUS_JS_ENGINE_H 18 #ifndef ADBLOCK_PLUS_JS_ENGINE_H
19 #define ADBLOCK_PLUS_JS_ENGINE_H 19 #define ADBLOCK_PLUS_JS_ENGINE_H
20 20
21 #include <functional> 21 #include <functional>
22 #include <map> 22 #include <map>
23 #include <stdexcept> 23 #include <stdexcept>
24 #include <stdint.h> 24 #include <stdint.h>
25 #include <string> 25 #include <string>
26 #include <mutex>
26 #include <AdblockPlus/AppInfo.h> 27 #include <AdblockPlus/AppInfo.h>
27 #include <AdblockPlus/LogSystem.h> 28 #include <AdblockPlus/LogSystem.h>
28 #include <AdblockPlus/FileSystem.h> 29 #include <AdblockPlus/FileSystem.h>
29 #include <AdblockPlus/JsValue.h> 30 #include <AdblockPlus/JsValue.h>
30 #include <AdblockPlus/WebRequest.h> 31 #include <AdblockPlus/WebRequest.h>
31 32
32 namespace v8 33 namespace v8
33 { 34 {
34 class Arguments; 35 class Arguments;
35 class Isolate; 36 class Isolate;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 277
277 /// Isolate must be disposed only after disposing of all objects which are 278 /// Isolate must be disposed only after disposing of all objects which are
278 /// using it. 279 /// using it.
279 ScopedV8IsolatePtr isolate; 280 ScopedV8IsolatePtr isolate;
280 281
281 FileSystemPtr fileSystem; 282 FileSystemPtr fileSystem;
282 WebRequestPtr webRequest; 283 WebRequestPtr webRequest;
283 LogSystemPtr logSystem; 284 LogSystemPtr logSystem;
284 std::unique_ptr<v8::Persistent<v8::Context>> context; 285 std::unique_ptr<v8::Persistent<v8::Context>> context;
285 EventMap eventCallbacks; 286 EventMap eventCallbacks;
287 std::mutex isConnectionAllowedMutex;
286 IsConnectionAllowedCallback isConnectionAllowed; 288 IsConnectionAllowedCallback isConnectionAllowed;
287 }; 289 };
288 } 290 }
289 291
290 #endif 292 #endif
LEFTRIGHT

Powered by Google App Engine
This is Rietveld