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

Unified Diff: public/platform/WebServiceWorker.h

Issue 247263010: ServiceWorker: Wait for registration promise to resolve before changing states. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: yhirano comments 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
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerError.h ('k') | public/platform/WebServiceWorkerProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorker.h
diff --git a/public/platform/WebServiceWorker.h b/public/platform/WebServiceWorker.h
index 56d1557b3458330a62ae0611738a5bb3b47627c7..cd31d7e899f6730c1d34b558902a1ccce54bf8dc 100644
--- a/public/platform/WebServiceWorker.h
+++ b/public/platform/WebServiceWorker.h
@@ -53,6 +53,9 @@ public:
// WebServiceWorker.
virtual void setProxy(WebServiceWorkerProxy*) { }
+ // Sets the state. This should only be called by the WebServiceWorkerProxy.
+ virtual void setState(blink::WebServiceWorkerState) { }
michaeln1 2014/04/24 21:15:08 This webkit api is kinda convoluted? The proxy has
falken 2014/04/25 01:13:11 Good idea, things would be clearer this way and I
+
virtual WebURL scope() const { return WebURL(); }
virtual WebURL url() const { return WebURL(); }
virtual WebServiceWorkerState state() const { return WebServiceWorkerStateUnknown; }
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerError.h ('k') | public/platform/WebServiceWorkerProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698