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

Unified Diff: public/platform/WebServiceWorkerProviderClient.h

Issue 476043002: ServiceWorker: Make '.ready' return a promise to be resolved with ServiceWorkerRegistration (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase on 478693005 (Ship Oilpan for serviceworkers/) Created 6 years, 3 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/ServiceWorkerRegistration.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorkerProviderClient.h
diff --git a/public/platform/WebServiceWorkerProviderClient.h b/public/platform/WebServiceWorkerProviderClient.h
index 43eea2a9504279332a8dd3e48cc2ff70d4dd2ce5..d6d83ce31e937b4d8b1749387123ef9fc7c880fd 100644
--- a/public/platform/WebServiceWorkerProviderClient.h
+++ b/public/platform/WebServiceWorkerProviderClient.h
@@ -36,6 +36,7 @@
namespace blink {
class WebServiceWorker;
+class WebServiceWorkerRegistration;
class WebString;
// This class is the interface for embedders to talk to
@@ -44,14 +45,17 @@ class WebServiceWorkerProviderClient {
public:
virtual ~WebServiceWorkerProviderClient() { }
- virtual void setActive(WebServiceWorker*) = 0;
- virtual void setController(WebServiceWorker*) = 0;
+ // FIXME: Remove these unnecessary interfaces (http://crbug.com/404982).
virtual void setInstalling(WebServiceWorker*) = 0;
virtual void setWaiting(WebServiceWorker*) = 0;
+ virtual void setActive(WebServiceWorker*) = 0;
+
+ virtual void setController(WebServiceWorker*) = 0;
+ virtual void setReadyRegistration(WebServiceWorkerRegistration*) = 0;
virtual void dispatchMessageEvent(const WebString& message, const WebMessagePortChannelArray&) = 0;
};
-};
+} // namespace blink
#endif // WebServiceWorkerProviderClient_h
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerRegistration.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698