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

Unified Diff: src/JsContext.h

Issue 29369365: Issue #4692 - Rewrite `SetTimeout` facility to avoid `JsValuePtr` and `JsValueList`
Patch Set: Created Dec. 19, 2016, 10:24 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
Index: src/JsContext.h
===================================================================
--- a/src/JsContext.h
+++ b/src/JsContext.h
@@ -18,8 +18,8 @@
#ifndef ADBLOCK_PLUS_JS_CONTEXT_H
#define ADBLOCK_PLUS_JS_CONTEXT_H
-#include <v8.h>
#include <AdblockPlus/JsEngine.h>
+#include "JsEngineInternal.h"
namespace AdblockPlus
{
@@ -28,17 +28,8 @@
public:
explicit JsContext(const JsEnginePtr jsEngine);
- v8::Local<v8::Context> GetV8Context() const
- {
- return context;
- }
-
private:
- const v8::Locker locker;
- const v8::Isolate::Scope isolateScope;
- const v8::HandleScope handleScope;
- const v8::Local<v8::Context> context;
- const v8::Context::Scope contextScope;
+ const V8ExecutionScope scope;
};
}

Powered by Google App Engine
This is Rietveld