Index: third_party/WebKit/Source/bindings/core/v8/SharedPersistent.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/SharedPersistent.h b/third_party/WebKit/Source/bindings/core/v8/SharedPersistent.h |
index 886275bdfa3833348a77f5e34c4e86ebfd617f54..d50999b24040ad62ab621dbc8ab2f899beeaf0c7 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/SharedPersistent.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/SharedPersistent.h |
@@ -28,42 +28,6 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef SharedPersistent_h |
-#define SharedPersistent_h |
- |
-#include "bindings/core/v8/ScopedPersistent.h" |
-#include "platform/wtf/PassRefPtr.h" |
-#include "platform/wtf/RefCounted.h" |
-#include "v8/include/v8.h" |
- |
-namespace blink { |
- |
-template <typename T> |
-class SharedPersistent : public RefCounted<SharedPersistent<T>> { |
- WTF_MAKE_NONCOPYABLE(SharedPersistent); |
- |
- public: |
- static PassRefPtr<SharedPersistent<T>> Create(v8::Local<T> value, |
- v8::Isolate* isolate) { |
- return AdoptRef(new SharedPersistent<T>(value, isolate)); |
- } |
- |
- v8::Local<T> NewLocal(v8::Isolate* isolate) const { |
- return value_.NewLocal(isolate); |
- } |
- |
- bool IsEmpty() { return value_.IsEmpty(); } |
- |
- bool operator==(const SharedPersistent<T>& other) { |
- return value_ == other.value_; |
- } |
- |
- private: |
- explicit SharedPersistent(v8::Local<T> value, v8::Isolate* isolate) |
- : value_(isolate, value) {} |
- ScopedPersistent<T> value_; |
-}; |
- |
-} // namespace blink |
- |
-#endif // SharedPersistent_h |
+// This file has been moved to platform/bindings/SharedPersistent.h. |
+// TODO(adithyas): Remove this file. |
+#include "platform/bindings/SharedPersistent.h" |