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; |
}; |
} |