Index: Source/bindings/core/v8/ScriptPromise.h |
diff --git a/Source/bindings/core/v8/ScriptPromise.h b/Source/bindings/core/v8/ScriptPromise.h |
index ff77ee04794079333926a4d4132616d6ceed9e14..a19373560caed8d69fbb147fa6e72597a487f887 100644 |
--- a/Source/bindings/core/v8/ScriptPromise.h |
+++ b/Source/bindings/core/v8/ScriptPromise.h |
@@ -50,12 +50,16 @@ class DOMException; |
class CORE_EXPORT ScriptPromise final { |
public: |
// Constructs an empty promise. |
- ScriptPromise() { } |
+ ScriptPromise(); |
// Constructs a ScriptPromise from |promise|. |
// If |promise| is not a Promise object, throws a v8 TypeError. |
ScriptPromise(ScriptState*, v8::Local<v8::Value> promise); |
+ ScriptPromise(const ScriptPromise&); |
+ |
+ ~ScriptPromise(); |
+ |
ScriptPromise then(v8::Local<v8::Function> onFulfilled, v8::Local<v8::Function> onRejected = v8::Local<v8::Function>()); |
bool isObject() const |
@@ -127,6 +131,8 @@ public: |
static v8::Local<v8::Promise> rejectRaw(ScriptState*, v8::Local<v8::Value>); |
+ static unsigned instanceCount() { return s_instanceCount; } |
+ |
// This is a utility class intended to be used internally. |
// ScriptPromiseResolver is for general purpose. |
class CORE_EXPORT InternalResolver final { |
@@ -145,6 +151,8 @@ public: |
private: |
RefPtr<ScriptState> m_scriptState; |
ScriptValue m_promise; |
+ |
+ static unsigned s_instanceCount; |
}; |
} // namespace blink |