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

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

Issue 2843143002: Move more files to platform/bindings (Closed)
Patch Set: Move back IDLDictionaryBase Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ToV8.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ToV8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698