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

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

Issue 29527602: Noissue - remove additional empty line (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created Aug. 25, 2017, 8:39 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 | no next file » | 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-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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld