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

Unified Diff: src/JsEngineInternal.h

Issue 29369479: Issue #4694 - Add mutex protection to JS event handling
Patch Set: Created Dec. 21, 2016, 7:35 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/Event.cpp ('K') | « src/JsEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/JsEngineInternal.h
===================================================================
--- a/src/JsEngineInternal.h
+++ b/src/JsEngineInternal.h
@@ -6,6 +6,7 @@
#include <v8.h>
#include <array>
#include "AllocatedArray.h"
+#include "Event.h"
#include "V8Upgrade.h"
class PersistentValueArray
@@ -67,10 +68,20 @@
: public AdblockPlus::JsEngine
{
/**
+ * Allows implementations of public API functions to access internal members.
+ */
+ friend class AdblockPlus::JsEngine;
+
+ /**
* Unique context associated with this isolate.
*/
v8::Persistent<v8::Context> context;
+ /**
+ * Event manager provides implementation of event set, remove, and trigger.
+ */
+ EventManager eventMan;
sergei 2017/03/15 12:17:21 what about "ager"?
+
public:
JsEngineInternal(const AdblockPlus::ScopedV8IsolatePtr& isolate);
« src/Event.cpp ('K') | « src/JsEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld