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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp

Issue 2843603002: Move ScriptWrappable and dependencies to platform/bindings (Closed)
Patch Set: Rebase and try again 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
Index: third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp
deleted file mode 100644
index 785946eb7b06d53d2fbf06268b2f6cc449659049..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "bindings/core/v8/V8PrivateProperty.h"
-
-#include "bindings/core/v8/ScriptState.h"
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "bindings/core/v8/V8Binding.h"
-#include "bindings/core/v8/V8BindingMacros.h"
-
-namespace blink {
-
-v8::Local<v8::Value> V8PrivateProperty::Symbol::GetFromMainWorld(
- ScriptWrappable* script_wrappable) {
- v8::Local<v8::Object> wrapper = script_wrappable->MainWorldWrapper(isolate_);
- return wrapper.IsEmpty() ? v8::Local<v8::Value>() : GetOrEmpty(wrapper);
-}
-
-v8::Local<v8::Private> V8PrivateProperty::CreateV8Private(v8::Isolate* isolate,
- const char* symbol) {
- return v8::Private::New(isolate, V8String(isolate, symbol));
-}
-
-v8::Local<v8::Private> V8PrivateProperty::CreateCachedV8Private(
- v8::Isolate* isolate,
- const char* symbol) {
- // Use ForApi() to get the same Private symbol which is not cached in Chrome.
- return v8::Private::ForApi(isolate, V8String(isolate, symbol));
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698