| 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 0af23c1239af8a3cf3429ed00250c51ddd63d4be..eb7f8263a7717598c0bf93fa6f8ecb9dc38322b9 100644
|
| --- a/content/browser/service_worker/service_worker_provider_host.h
|
| +++ b/content/browser/service_worker/service_worker_provider_host.h
|
| @@ -51,15 +51,15 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
|
| using GetRegistrationForReadyCallback =
|
| base::Callback<void(ServiceWorkerRegistration* reigstration)>;
|
|
|
| - // If |render_frame_id| is MSG_ROUTING_NONE, this provider host works for the
|
| - // worker context, i.e. ServiceWorker or SharedWorker.
|
| - // |provider_type| gives additional information whether the provider is
|
| - // created for controller (ServiceWorker) or controllee (Document or
|
| - // SharedWorker).
|
| + // When the provider is created for ServiceWorker, both |render_frame_id| and
|
| + // |shared_worker_route_id| are MSG_ROUTING_NONE. When the provider is created
|
| + // for Document context, |render_frame_id| is not MSG_ROUTING_NONE. When the
|
| + // provider is created for SharedWorker context, |shared_worker_route_id| is
|
| + // not MSG_ROUTING_NONE.
|
| ServiceWorkerProviderHost(int render_process_id,
|
| int render_frame_id,
|
| + int shared_worker_route_id,
|
| int provider_id,
|
| - ServiceWorkerProviderType provider_type,
|
| base::WeakPtr<ServiceWorkerContextCore> context,
|
| ServiceWorkerDispatcherHost* dispatcher_host);
|
| virtual ~ServiceWorkerProviderHost();
|
| @@ -68,6 +68,7 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
|
| int process_id() const { return render_process_id_; }
|
| int provider_id() const { return provider_id_; }
|
| int frame_id() const { return render_frame_id_; }
|
| + int shared_worker_route_id() const { return shared_worker_route_id_; }
|
|
|
| bool IsHostToRunningServiceWorker() {
|
| return running_hosted_version_.get() != NULL;
|
| @@ -283,6 +284,7 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
|
| std::string client_uuid_;
|
| int render_process_id_;
|
| int render_frame_id_;
|
| + int shared_worker_route_id_;
|
| int render_thread_id_;
|
| int provider_id_;
|
| ServiceWorkerProviderType provider_type_;
|
|
|