| Index: content/browser/service_worker/service_worker_context_core.h
|
| diff --git a/content/browser/service_worker/service_worker_context_core.h b/content/browser/service_worker/service_worker_context_core.h
|
| index ecffaca878c414174b0822effb9f8cd1e1c12c04..4748aa965ad551025e9319ad7dfaf6b9985100d0 100644
|
| --- a/content/browser/service_worker/service_worker_context_core.h
|
| +++ b/content/browser/service_worker/service_worker_context_core.h
|
| @@ -58,6 +58,9 @@ class CONTENT_EXPORT ServiceWorkerContextCore
|
| typedef base::Callback<void(ServiceWorkerStatusCode status,
|
| const std::string& status_message,
|
| int64 registration_id)> RegistrationCallback;
|
| + typedef base::Callback<void(ServiceWorkerStatusCode status,
|
| + const std::string& status_message,
|
| + int64 registration_id)> UpdateCallback;
|
| typedef base::Callback<
|
| void(ServiceWorkerStatusCode status)> UnregistrationCallback;
|
| typedef IDMap<ServiceWorkerProviderHost, IDMapOwnPointer> ProviderMap;
|
| @@ -182,6 +185,10 @@ class CONTENT_EXPORT ServiceWorkerContextCore
|
| const UnregistrationCallback& callback);
|
| void UpdateServiceWorker(ServiceWorkerRegistration* registration,
|
| bool force_bypass_cache);
|
| + void UpdateServiceWorker(ServiceWorkerRegistration* registration,
|
| + bool force_bypass_cache,
|
| + ServiceWorkerProviderHost* provider_host,
|
| + const UpdateCallback& callback);
|
|
|
| // This class maintains collections of live instances, this class
|
| // does not own these object or influence their lifetime.
|
| @@ -245,6 +252,11 @@ class CONTENT_EXPORT ServiceWorkerContextCore
|
| const std::string& status_message,
|
| ServiceWorkerRegistration* registration);
|
|
|
| + void UpdateComplete(const UpdateCallback& callback,
|
| + ServiceWorkerStatusCode status,
|
| + const std::string& status_message,
|
| + ServiceWorkerRegistration* registration);
|
| +
|
| void UnregistrationComplete(const GURL& pattern,
|
| const UnregistrationCallback& callback,
|
| int64 registration_id,
|
|
|