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

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: cleanup test 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: 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) { }
+
virtual WebURL scope() const { return WebURL(); }
virtual WebURL url() const { return WebURL(); }
virtual WebServiceWorkerState state() const { return WebServiceWorkerStateUnknown; }

Powered by Google App Engine
This is Rietveld 408576698