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

Unified Diff: Source/bindings/core/v8/ScriptPromiseResolver.h

Issue 780793002: Make CryptoResultImpl not to use WeakPtr. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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: 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 {

Powered by Google App Engine
This is Rietveld 408576698