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

Unified Diff: public/platform/WebServiceWorkerProviderClient.h

Issue 239973002: Add blink interface (and code) for setting navigator.serviceWorker.current (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainer.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 3a9cac61505ac932c984105a44296668fcc6adaa..c38a9965b045bfd8249ae8ba42f0fffe70c79203 100644
--- a/public/platform/WebServiceWorkerProviderClient.h
+++ b/public/platform/WebServiceWorkerProviderClient.h
@@ -32,17 +32,17 @@
#define WebServiceWorkerProviderClient_h
namespace blink {
+class WebServiceWorker;
class WebString;
-// This class catches any errors that may originate on the browser
-// side and not via a DOM API call, such as errors that occur when
-// loading resources through the service worker.
+// This class provides interface for embedders to talk to
+// ServiceWorkerContainer.
class WebServiceWorkerProviderClient {
public:
- // FIXME: replace this general error handler with more specific error handlers.
- virtual void didFailToStart(const WebString& message) { }
-
virtual ~WebServiceWorkerProviderClient() { }
+
+ // The callee will take ownership of the given WebServiceWorker object.
+ virtual void setCurrentServiceWorker(WebServiceWorker*) = 0;
};
};
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698