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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerContainer.h

Issue 313553002: Add the navigator.serviceWorker.waiting property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring patch to head. Created 6 years, 6 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/modules/serviceworkers/ServiceWorkerContainer.h
diff --git a/Source/modules/serviceworkers/ServiceWorkerContainer.h b/Source/modules/serviceworkers/ServiceWorkerContainer.h
index 253aa4a4fd97cc590ca26e8581aa1d92c4062cfd..d098ff775b1609770014b9f95c5e8ee756da9958 100644
--- a/Source/modules/serviceworkers/ServiceWorkerContainer.h
+++ b/Source/modules/serviceworkers/ServiceWorkerContainer.h
@@ -64,6 +64,7 @@ public:
void detachClient();
+ PassRefPtrWillBeRawPtr<ServiceWorker> waiting() { return m_waiting.get(); }
PassRefPtrWillBeRawPtr<ServiceWorker> controller() { return m_controller.get(); }
ScriptPromise ready(ScriptState*);
@@ -71,6 +72,7 @@ public:
ScriptPromise unregisterServiceWorker(ScriptState*, const String& scope = String());
// WebServiceWorkerProviderClient overrides.
+ virtual void setWaiting(blink::WebServiceWorker*) OVERRIDE;
virtual void setController(blink::WebServiceWorker*) OVERRIDE;
virtual void dispatchMessageEvent(const blink::WebString& message, const blink::WebMessagePortChannelArray&) OVERRIDE;
@@ -81,6 +83,7 @@ private:
explicit ServiceWorkerContainer(ExecutionContext*);
blink::WebServiceWorkerProvider* m_provider;
+ RefPtr<ServiceWorker> m_waiting;
RefPtr<ServiceWorker> m_controller;
};
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorker.cpp ('k') | Source/modules/serviceworkers/ServiceWorkerContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698