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

Unified Diff: content/child/service_worker/service_worker_dispatcher.h

Issue 1181973004: ServiceWorker: Route unregister() through WebServiceWorkerRegistration for refactoring (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
Index: content/child/service_worker/service_worker_dispatcher.h
diff --git a/content/child/service_worker/service_worker_dispatcher.h b/content/child/service_worker/service_worker_dispatcher.h
index 4f33a600b4237e570dd1c9e68672f7c5e34482a5..ac573ca5cb50a2e5441844cd8ca63c9b99b1d13e 100644
--- a/content/child/service_worker/service_worker_dispatcher.h
+++ b/content/child/service_worker/service_worker_dispatcher.h
@@ -46,8 +46,7 @@ class CONTENT_EXPORT ServiceWorkerDispatcher
public:
typedef blink::WebServiceWorkerProvider::WebServiceWorkerRegistrationCallbacks
WebServiceWorkerRegistrationCallbacks;
- typedef
- blink::WebServiceWorkerProvider::WebServiceWorkerUnregistrationCallbacks
+ typedef blink::WebCallbacks<bool, blink::WebServiceWorkerError>
WebServiceWorkerUnregistrationCallbacks;
typedef
blink::WebServiceWorkerProvider::WebServiceWorkerGetRegistrationCallbacks
@@ -74,10 +73,16 @@ class CONTENT_EXPORT ServiceWorkerDispatcher
// Corresponds to ServiceWorkerRegistration.update().
void UpdateServiceWorker(int provider_id, int64 registration_id);
// Corresponds to ServiceWorkerRegistration.unregister().
- void UnregisterServiceWorker(
+ // TODO(nhiroki): Remove a deprecated version after http://crbug.com/500404 is
+ // fixed.
+ void DeprecatedUnregisterServiceWorker(
int provider_id,
const GURL& pattern,
WebServiceWorkerUnregistrationCallbacks* callbacks);
+ void UnregisterServiceWorker(
+ int provider_id,
+ int64 registration_id,
+ WebServiceWorkerUnregistrationCallbacks* callbacks);
// Corresponds to navigator.serviceWorker.getRegistration().
void GetRegistration(
int provider_id,

Powered by Google App Engine
This is Rietveld 408576698