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

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

Issue 29527588: Issue 5570 - Make V8 isolate injectable into JsEngine (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Left Patch Set: fix typo Created Aug. 25, 2017, 3:02 p.m.
Right Patch Set: rebase Created Aug. 25, 2017, 3:08 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 | « no previous file | include/AdblockPlus/Platform.h » ('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-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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 */ 87 */
88 typedef std::function<void(JsValueList&& params)> EventCallback; 88 typedef std::function<void(JsValueList&& params)> EventCallback;
89 89
90 /** 90 /**
91 * Maps events to callback functions. 91 * Maps events to callback functions.
92 */ 92 */
93 typedef std::map<std::string, EventCallback> EventMap; 93 typedef std::map<std::string, EventCallback> EventMap;
94 94
95 /** 95 /**
96 * An opaque structure representing ID of stored JsValueList. 96 * An opaque structure representing ID of stored JsValueList.
97 *
98 */ 97 */
99 class JsWeakValuesID 98 class JsWeakValuesID
100 { 99 {
101 friend class JsEngine; 100 friend class JsEngine;
102 JsWeakValuesLists::const_iterator iterator; 101 JsWeakValuesLists::const_iterator iterator;
103 }; 102 };
104 103
105 /** 104 /**
106 * Creates a new JavaScript engine instance. 105 * Creates a new JavaScript engine instance.
107 * 106 *
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 282
284 std::unique_ptr<v8::Global<v8::Context>> context; 283 std::unique_ptr<v8::Global<v8::Context>> context;
285 EventMap eventCallbacks; 284 EventMap eventCallbacks;
286 std::mutex eventCallbacksMutex; 285 std::mutex eventCallbacksMutex;
287 JsWeakValuesLists jsWeakValuesLists; 286 JsWeakValuesLists jsWeakValuesLists;
288 std::mutex jsWeakValuesListsMutex; 287 std::mutex jsWeakValuesListsMutex;
289 }; 288 };
290 } 289 }
291 290
292 #endif 291 #endif
LEFTRIGHT

Powered by Google App Engine
This is Rietveld