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

Unified Diff: Source/bindings/core/v8/ScriptPromise.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/ScriptPromise.h
diff --git a/Source/bindings/core/v8/ScriptPromise.h b/Source/bindings/core/v8/ScriptPromise.h
index 85cdae575f5bd7df07ec097e0b4ae24976f46a97..36e83796d73428675aca3d67968f0b6b62cd38c3 100644
--- a/Source/bindings/core/v8/ScriptPromise.h
+++ b/Source/bindings/core/v8/ScriptPromise.h
@@ -126,6 +126,7 @@ public:
void resolve(v8::Local<v8::Value>);
void reject(v8::Local<v8::Value>);
void clear() { m_resolver.clear(); }
+ bool cleared() const { return m_resolver.isEmpty(); }
private:
ScriptValue m_resolver;
« no previous file with comments | « no previous file | Source/bindings/core/v8/ScriptPromiseResolver.h » ('j') | Source/bindings/core/v8/ScriptPromiseResolver.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698