Chromium Code Reviews| Index: content/browser/service_worker/service_worker_provider_host.h |
| diff --git a/content/browser/service_worker/service_worker_provider_host.h b/content/browser/service_worker/service_worker_provider_host.h |
| index 9123014273d400004148f897a6ed999799677d5b..24dc96c6ff00c85887aa0d092794ef59cc54615d 100644 |
| --- a/content/browser/service_worker/service_worker_provider_host.h |
| +++ b/content/browser/service_worker/service_worker_provider_host.h |
| @@ -115,6 +115,13 @@ class CONTENT_EXPORT ServiceWorkerProviderHost |
| base::WeakPtr<storage::BlobStorageContext> blob_storage_context, |
| scoped_refptr<ResourceRequestBody> body); |
| + // Creates a ServiceWorkerHandle to retain |version| and returns a |
| + // ServiceWorkerInfo with a newly created handle ID. The handle is held in |
| + // the dispatcher host until its ref-count becomes zero via |
| + // OnDecrementServiceWorkerRefCount. |
|
kinuko
2015/01/22 06:30:52
nit: 'via OnDecrementServiceWorkerRefCount' part c
nhiroki
2015/01/22 07:05:58
Done.
|
| + ServiceWorkerObjectInfo CreateAndRegisterServiceWorkerHandle( |
| + ServiceWorkerVersion* version); |
| + |
| // Returns true if |registration| can be associated with this provider. |
| bool CanAssociateRegistration(ServiceWorkerRegistration* registration); |
| @@ -155,6 +162,21 @@ class CONTENT_EXPORT ServiceWorkerProviderHost |
| return dispatcher_host_; |
| } |
| + // Called from ServiceWorkerRegistrationHandle. |
| + void SendUpdateFoundMessage( |
| + const ServiceWorkerRegistrationObjectInfo& object_info); |
| + void SendSetVersionAttributesMessage( |
| + int registration_handle_id, |
| + ChangedVersionAttributesMask changed_mask, |
| + ServiceWorkerVersion* installing_version, |
| + ServiceWorkerVersion* waiting_version, |
| + ServiceWorkerVersion* active_version); |
| + |
| + // Called from ServiceWorkerHandle. |
| + void SendServiceWorkerStateChangedMessage( |
| + int worker_handle_id, |
| + blink::WebServiceWorkerState state); |
| + |
| private: |
| friend class ServiceWorkerProviderHostTest; |
| friend class ServiceWorkerWriteToCacheJobTest; |