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

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

Issue 2640823004: Allow origin trials to be enabled by script (Closed)
Patch Set: Address nit Created 3 years, 11 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/V8PerContextData.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
index dd345df3a033686b8a8a49f20ed2d21f5974f2d0..ec82fc13888fbe0c225831d6b434717bef026da2 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
@@ -87,6 +87,15 @@ class CORE_EXPORT V8PerContextData final {
v8::Local<v8::Object> prototypeForType(const WrapperTypeInfo*);
+ // Gets the constructor and prototype for a type, if they have already been
+ // created. Returns true if they exist, and sets the existing values in
+ // |prototypeObject| and |interfaceObject|. Otherwise, returns false, and the
+ // values are set to empty objects (non-null).
+ bool getExistingConstructorAndPrototypeForType(
+ const WrapperTypeInfo*,
+ v8::Local<v8::Object>* prototypeObject,
+ v8::Local<v8::Function>* interfaceObject);
+
void addCustomElementBinding(std::unique_ptr<V0CustomElementBinding>);
V8DOMActivityLogger* activityLogger() const { return m_activityLogger; }

Powered by Google App Engine
This is Rietveld 408576698