| Index: Source/bindings/core/v8/SharedPersistent.h
|
| diff --git a/Source/bindings/v8/SharedPersistent.h b/Source/bindings/core/v8/SharedPersistent.h
|
| similarity index 67%
|
| rename from Source/bindings/v8/SharedPersistent.h
|
| rename to Source/bindings/core/v8/SharedPersistent.h
|
| index 011462cdcfccd6007c6d429f42698919d6811eb3..09e255b2c677fd186005ad49cd4c825b2a942d71 100644
|
| --- a/Source/bindings/v8/SharedPersistent.h
|
| +++ b/Source/bindings/core/v8/SharedPersistent.h
|
| @@ -31,38 +31,38 @@
|
| #ifndef SharedPersistent_h
|
| #define SharedPersistent_h
|
|
|
| -#include "bindings/v8/ScopedPersistent.h"
|
| -#include <v8.h>
|
| +#include "bindings/core/v8/ScopedPersistent.h"
|
| #include "wtf/PassRefPtr.h"
|
| #include "wtf/RefCounted.h"
|
| +#include <v8.h>
|
|
|
| namespace WebCore {
|
|
|
| - template <typename T>
|
| - class SharedPersistent : public RefCounted<SharedPersistent<T> > {
|
| - WTF_MAKE_NONCOPYABLE(SharedPersistent);
|
| - public:
|
| - static PassRefPtr<SharedPersistent<T> > create(v8::Handle<T> value, v8::Isolate* isolate)
|
| - {
|
| - return adoptRef(new SharedPersistent<T>(value, isolate));
|
| - }
|
| +template <typename T>
|
| +class SharedPersistent : public RefCounted<SharedPersistent<T> > {
|
| +WTF_MAKE_NONCOPYABLE(SharedPersistent);
|
| +public:
|
| + static PassRefPtr<SharedPersistent<T> > create(v8::Handle<T> value, v8::Isolate* isolate)
|
| + {
|
| + return adoptRef(new SharedPersistent<T>(value, isolate));
|
| + }
|
|
|
| - v8::Local<T> newLocal(v8::Isolate* isolate) const
|
| - {
|
| - return m_value.newLocal(isolate);
|
| - }
|
| + v8::Local<T> newLocal(v8::Isolate* isolate) const
|
| + {
|
| + return m_value.newLocal(isolate);
|
| + }
|
|
|
| - bool isEmpty() { return m_value.isEmpty(); }
|
| + bool isEmpty() { return m_value.isEmpty(); }
|
|
|
| - bool operator==(const SharedPersistent<T>& other)
|
| - {
|
| - return m_value == other.m_value;
|
| - }
|
| + bool operator==(const SharedPersistent<T>& other)
|
| + {
|
| + return m_value == other.m_value;
|
| + }
|
|
|
| - private:
|
| - explicit SharedPersistent(v8::Handle<T> value, v8::Isolate* isolate) : m_value(isolate, value) { }
|
| - ScopedPersistent<T> m_value;
|
| - };
|
| +private:
|
| + explicit SharedPersistent(v8::Handle<T> value, v8::Isolate* isolate) : m_value(isolate, value) { }
|
| + ScopedPersistent<T> m_value;
|
| +};
|
|
|
| } // namespace WebCore
|
|
|
|
|