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 | 9 |
| 10 // A container object carried from the browser to the renderer process. | |
| 11 // This contains the params for the constructor of ServiceWorkerNetworkProvider. | |
| 12 // This is passed on launching a service worker. | |
| 13 struct ServiceWorkerProviderClientInfo { | |
|
falken
2017/06/16 15:44:47
Can you help me understand this terminology?
A Se
shimazu
2017/06/19 03:53:30
I originally thought that "ServiceWorkerProviderCl
falken
2017/06/19 05:21:43
These are great questions. I'm hoping kinuko@ or m
shimazu
2017/06/19 06:00:39
Thanks, ServiceWorkerProviderInfoForStartWorker so
| |
| 14 int32 provider_id; | |
| 15 ServiceWorkerProviderType type; | |
| 16 bool is_parent_frame_secure; | |
|
falken
2017/06/16 15:44:46
I don't think |type| and |is_parent_frame_secure|
shimazu
2017/06/19 03:53:30
Yes, that's right.
Removed.
| |
| 17 // |registration| and |attributes| are information about the registration | |
| 18 // currently to be launched. | |
|
falken
2017/06/16 15:44:47
This terminology is a little inaccurate because th
falken
2017/06/16 15:56:30
And add "used to populate ServiceWorkerGlobalScope
shimazu
2017/06/19 03:53:30
Done.
| |
| 19 ServiceWorkerRegistrationObjectInfo registration; | |
| 20 ServiceWorkerVersionAttributes attributes; | |
| 21 | |
| 22 associated ServiceWorkerProviderHost host_ptr_info; | |
| 23 associated ServiceWorkerProvider& client_request; | |
| 24 }; | |
| 25 | |
| 10 // A container object carried from the renderer to the browser process. | 26 // A container object carried from the renderer to the browser process. |
| 11 // This contains the parameters to specify the provider on the browser side. | 27 // This contains the parameters to specify the provider on the browser side. |
| 12 // See also comments in | 28 // See also comments in |
| 13 // content/common/service_worker/service_worker_provider_host_info.h. | 29 // content/common/service_worker/service_worker_provider_host_info.h. |
| 14 struct ServiceWorkerProviderHostInfo { | 30 struct ServiceWorkerProviderHostInfo { |
| 15 int32 provider_id; | 31 int32 provider_id; |
| 16 int32 route_id; | 32 int32 route_id; |
| 17 ServiceWorkerProviderType type; | 33 ServiceWorkerProviderType type; |
| 18 bool is_parent_frame_secure; | 34 bool is_parent_frame_secure; |
| 19 associated ServiceWorkerProviderHost& host_request; | 35 associated ServiceWorkerProviderHost& host_request; |
| 20 associated ServiceWorkerProvider client_ptr_info; | 36 associated ServiceWorkerProvider client_ptr_info; |
| 21 }; | 37 }; |
| OLD | NEW |