| 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,
|
|
|