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

Unified Diff: public/platform/WebServiceWorkerRegistration.h

Issue 897573002: [WONT COMMIT] ServiceWorker: Move unregister function from WebSWProvider to WebSWRegistration (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 | « public/platform/WebServiceWorkerProvider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorkerRegistration.h
diff --git a/public/platform/WebServiceWorkerRegistration.h b/public/platform/WebServiceWorkerRegistration.h
index 908a209ae4560d8ec54147b2675ae4ed01c4b61f..8195fde46cf2cd7f7d67cfc0bd7f0e11fa398a28 100644
--- a/public/platform/WebServiceWorkerRegistration.h
+++ b/public/platform/WebServiceWorkerRegistration.h
@@ -5,14 +5,18 @@
#ifndef WebServiceWorkerRegistration_h
#define WebServiceWorkerRegistration_h
+#include "public/platform/WebCallbacks.h"
#include "public/platform/WebURL.h"
namespace blink {
class WebServiceWorkerRegistrationProxy;
+struct WebServiceWorkerError;
class WebServiceWorkerRegistration {
public:
+ using UnregisterCallbacks = WebCallbacks<bool, WebServiceWorkerError>;
+
virtual ~WebServiceWorkerRegistration() { }
virtual void setProxy(WebServiceWorkerRegistrationProxy*) { }
@@ -20,6 +24,7 @@ public:
virtual void proxyStopped() { }
virtual WebURL scope() const { return WebURL(); }
+ virtual void unregister(UnregisterCallbacks*) { }
};
} // namespace blink
« no previous file with comments | « public/platform/WebServiceWorkerProvider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698