Index: include/AdblockPlus/JsValue.h |
diff --git a/include/AdblockPlus/JsValue.h b/include/AdblockPlus/JsValue.h |
index 44535f92711382aa905576c59a283a82e3e4c490..6b3f97c504d7bc11e4c0d186d7e44573ae1af507 100644 |
--- a/include/AdblockPlus/JsValue.h |
+++ b/include/AdblockPlus/JsValue.h |
@@ -22,13 +22,13 @@ |
#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; |
+ template<class T> class Persistent; |
} |
namespace AdblockPlus |
@@ -56,6 +56,7 @@ namespace AdblockPlus |
{ |
friend class JsEngine; |
public: |
+ JsValue(JsValue&& src); |
virtual ~JsValue(); |
bool IsUndefined() const; |
@@ -125,12 +126,11 @@ namespace AdblockPlus |
v8::Local<v8::Value> UnwrapValue() const; |
protected: |
- JsValue(JsValuePtr value); |
JsEnginePtr jsEngine; |
private: |
JsValue(JsEnginePtr jsEngine, v8::Handle<v8::Value> value); |
void SetProperty(const std::string& name, v8::Handle<v8::Value> val); |
- V8ValueHolder<v8::Value> value; |
+ std::unique_ptr<v8::Persistent<v8::Value>> value; |
}; |
} |