Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module content.mojom; | 5 module content.mojom; |
| 6 | 6 |
| 7 import "content/common/service_worker/service_worker_provider_interfaces.mojom"; | 7 import "content/common/service_worker/service_worker_provider_interfaces.mojom"; |
| 8 import "content/common/service_worker/service_worker_types.mojom"; | 8 import "content/common/service_worker/service_worker_types.mojom"; |
| 9 import "content/common/url_loader_factory.mojom"; | |
| 9 | 10 |
| 10 // A container object carried from the browser to the renderer process. | 11 // A container object carried from the browser to the renderer process. |
| 11 // This contains the params for the constructor of ServiceWorkerNetworkProvider. | 12 // This contains the params for the constructor of ServiceWorkerNetworkProvider. |
| 12 // This is passed on launching a service worker. | 13 // This is passed on launching a service worker. |
| 13 struct ServiceWorkerProviderClientInfo { | 14 struct ServiceWorkerProviderClientInfo { |
| 14 int32 provider_id; | 15 int32 provider_id; |
| 15 ServiceWorkerProviderType type; | 16 ServiceWorkerProviderType type; |
| 16 bool is_parent_frame_secure; | 17 bool is_parent_frame_secure; |
| 17 // |registration| and |attributes| are information about the registration | 18 // |registration| and |attributes| are information about the registration |
| 18 // currently to be launched. | 19 // currently to be launched. |
| 19 ServiceWorkerRegistrationObjectInfo registration; | 20 ServiceWorkerRegistrationObjectInfo registration; |
| 20 ServiceWorkerVersionAttributes attributes; | 21 ServiceWorkerVersionAttributes attributes; |
| 21 | 22 |
| 22 associated ServiceWorkerProviderHost host_ptr_info; | 23 associated ServiceWorkerProviderHost host_ptr_info; |
| 23 associated ServiceWorkerProvider& client_request; | 24 associated ServiceWorkerProvider& client_request; |
| 25 associated URLLoaderFactory script_loader_factory_ptr_info; | |
|
shimazu
2017/06/16 04:45:07
Should it be associated with EmbeddedWorkerInstanc
kinuko
2017/06/16 09:15:15
At some point I think we can make this independent
| |
| 24 }; | 26 }; |
| 25 | 27 |
| 26 // A container object carried from the renderer to the browser process. | 28 // A container object carried from the renderer to the browser process. |
| 27 // This contains the parameters to specify the provider on the browser side. | 29 // This contains the parameters to specify the provider on the browser side. |
| 28 // See also comments in | 30 // See also comments in |
| 29 // content/common/service_worker/service_worker_provider_host_info.h. | 31 // content/common/service_worker/service_worker_provider_host_info.h. |
| 30 struct ServiceWorkerProviderHostInfo { | 32 struct ServiceWorkerProviderHostInfo { |
| 31 int32 provider_id; | 33 int32 provider_id; |
| 32 int32 route_id; | 34 int32 route_id; |
| 33 ServiceWorkerProviderType type; | 35 ServiceWorkerProviderType type; |
| 34 bool is_parent_frame_secure; | 36 bool is_parent_frame_secure; |
| 35 associated ServiceWorkerProviderHost& host_request; | 37 associated ServiceWorkerProviderHost& host_request; |
| 36 associated ServiceWorkerProvider client_ptr_info; | 38 associated ServiceWorkerProvider client_ptr_info; |
| 37 }; | 39 }; |
| OLD | NEW |