Chromium Code Reviews| Index: Source/bindings/core/v8/ScriptPromiseResolver.h |
| diff --git a/Source/bindings/core/v8/ScriptPromiseResolver.h b/Source/bindings/core/v8/ScriptPromiseResolver.h |
| index 143f3ba080d8854438c148fc1e794225cb32b4dd..5ac425f8db1cdf602cbf32c992aadf2f66a4b165 100644 |
| --- a/Source/bindings/core/v8/ScriptPromiseResolver.h |
| +++ b/Source/bindings/core/v8/ScriptPromiseResolver.h |
| @@ -85,11 +85,16 @@ public: |
| // promise is pending and the associated ExecutionContext isn't stopped. |
| void keepAliveWhilePending(); |
| + bool stopped() { return m_resolver.cleared(); } |
|
tasak
2014/12/04 08:08:01
Used for ASSERTION in ~CryptoResultImpl.
|
| + |
| protected: |
| // You need to call suspendIfNeeded after the construction because |
| // this is an ActiveDOMObject. |
| explicit ScriptPromiseResolver(ScriptState*); |
| +protected: |
| + virtual void resolverCleared() { } |
|
tasak
2014/12/04 08:08:01
Invoked in ScriptPromiseResolver::clear().
|
| + |
| private: |
| typedef ScriptPromise::InternalResolver Resolver; |
| enum ResolutionState { |