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

Unified Diff: public/platform/WebServiceWorkerRegistration.h

Issue 1185483003: ServiceWorker: Route unregister() through WebServiceWorkerRegistration for refactoring (1) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove ifdef Created 5 years, 6 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 2cf1a27311ae3dacfc2f4dd2710c6e1b89b5bdb6..c21feeeaae5b3d39fbec1f33d14a4cb5e8732684 100644
--- a/public/platform/WebServiceWorkerRegistration.h
+++ b/public/platform/WebServiceWorkerRegistration.h
@@ -5,23 +5,28 @@
#ifndef WebServiceWorkerRegistration_h
#define WebServiceWorkerRegistration_h
+#include "public/platform/WebCallbacks.h"
#include "public/platform/WebURL.h"
namespace blink {
class WebServiceWorkerProvider;
class WebServiceWorkerRegistrationProxy;
+struct WebServiceWorkerError;
class WebServiceWorkerRegistration {
public:
virtual ~WebServiceWorkerRegistration() { }
+ using WebServiceWorkerUnregistrationCallbacks = WebCallbacks<bool, WebServiceWorkerError>;
+
virtual void setProxy(WebServiceWorkerRegistrationProxy*) { }
virtual WebServiceWorkerRegistrationProxy* proxy() { return nullptr; }
virtual void proxyStopped() { }
virtual WebURL scope() const { return WebURL(); }
virtual void update(WebServiceWorkerProvider*) { }
+ virtual void unregister(WebServiceWorkerProvider*, WebServiceWorkerUnregistrationCallbacks*) { }
};
} // 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