Index: include/AdblockPlus/JsValue.h |
=================================================================== |
--- a/include/AdblockPlus/JsValue.h |
+++ b/include/AdblockPlus/JsValue.h |
@@ -18,18 +18,11 @@ |
#ifndef ADBLOCK_PLUS_JS_VALUE_H |
#define ADBLOCK_PLUS_JS_VALUE_H |
-#include <stdint.h> |
+#include <cstdint> |
#include <string> |
#include <vector> |
#include "tr1_memory.h" |
-#include "V8ValueHolder.h" |
- |
-namespace v8 |
-{ |
- class Value; |
- template<class T> class Handle; |
- template<class T> class Local; |
-} |
+#include <v8.h> |
namespace AdblockPlus |
{ |
@@ -67,7 +60,7 @@ |
}; |
protected: |
typedef Private::CtrArg PrivateCtrArg; |
- JsValue(const JsValuePtr& value); |
+ JsValue(JsValue&& src); |
public: |
JsValue(const JsEnginePtr& jsEngine, const v8::Handle<v8::Value> value, PrivateCtrArg); |
virtual ~JsValue(); |
@@ -143,7 +136,7 @@ |
protected: |
JsEnginePtr jsEngine; |
private: |
- V8ValueHolder<v8::Value> value; |
+ v8::UniquePersistent<v8::Value> value; |
}; |
} |