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; } |