Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: Source/bindings/core/v8/SharedPersistent.h

Issue 351423002: Moved files under Source/bindings/v8 to Source/bindings/core/v8. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « Source/bindings/core/v8/SerializedScriptValue.cpp ('k') | Source/bindings/core/v8/V8AbstractEventListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698