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

Unified Diff: Source/bindings/v8/ScriptPromiseResolverWithContext.h

Issue 236713003: [ServiceWorker, PushMessaging] Use ScriptPromiseResolverWithContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months 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/v8/ScriptPromiseResolverWithContext.h
diff --git a/Source/bindings/v8/ScriptPromiseResolverWithContext.h b/Source/bindings/v8/ScriptPromiseResolverWithContext.h
index f373fa9f3e1347a6ea148a86c18c3db1f09632ff..92ab7a6b8b0dcd506e8cf1fa98f5d410c44d5471 100644
--- a/Source/bindings/v8/ScriptPromiseResolverWithContext.h
+++ b/Source/bindings/v8/ScriptPromiseResolverWithContext.h
@@ -62,6 +62,8 @@ public:
resolveOrRejectImmediately(&m_timer);
}
+ NewScriptState* scriptState() { return m_scriptState.get(); }
+
// Note that an empty ScriptPromise will be returned after resolve or
// reject is called.
ScriptPromise promise()
@@ -108,7 +110,7 @@ private:
void clear();
ResolutionState m_state;
- RefPtr<NewScriptState> m_scriptState;
+ const RefPtr<NewScriptState> m_scriptState;
Timer<ScriptPromiseResolverWithContext> m_timer;
RefPtr<ScriptPromiseResolver> m_resolver;
ScopedPersistent<v8::Value> m_value;
« no previous file with comments | « Source/bindings/v8/CallbackPromiseAdapter.h ('k') | Source/bindings/v8/ScriptPromiseResolverWithContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698