Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_types.mojom"; | 7 import "content/common/service_worker/service_worker_provider.mojom"; |
| 8 | 8 |
| 9 // Per-process browser-side interface bound to ServiceWorkerDispatcherHost. | 9 // Per-process browser-side interface bound to ServiceWorkerDispatcherHost. |
| 10 // Each InterfacePtrs on the same render process will be bound to the same | 10 // Each InterfacePtrs on the same render process will be bound to the same |
| 11 // ServiceWorkerDispatcherHost. | 11 // ServiceWorkerDispatcherHost. |
| 12 interface ServiceWorkerDispatcherHost { | 12 interface ServiceWorkerDispatcherHost { |
| 13 OnProviderCreated(int32 provider_id, | 13 // Informs the browser of a new ServiceWorkerProvider in the child process, |
| 14 int32 route_id, | 14 // |provider_id| is unique within its child process. When this provider is |
|
horo
2017/01/26 02:40:23
These comments should be in service_worker_provide
shimazu
2017/01/26 09:27:23
Acknowledged.
shimazu
2017/02/07 08:47:02
Done.
| |
| 15 ServiceWorkerProviderType provider_type, | 15 // created for a document, |route_id| is the frame ID of it. When this |
| 16 bool is_parent_frame_secure); | 16 // provider is created for a Shared Worker, |route_id| is the Shared Worker |
| 17 // route ID. When this provider is created for a Service Worker, |route_id| is | |
| 18 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for | |
| 19 // Service Worker controllees (documents and Shared Workers) or for | |
| 20 // controllers (Service Workers). | |
| 21 // | |
| 22 // |is_parent_frame_secure| is false if the provider is created for a | |
| 23 // document whose parent frame is not secure from the point of view of the | |
| 24 // document; that is, blink::WebFrame::canHaveSecureChild() returns false. | |
| 25 // This doesn't mean the document is necessarily an insecure context, | |
| 26 // because the document may have a URL whose scheme is granted an exception | |
| 27 // that allows bypassing the ancestor secure context check. See the | |
| 28 // comment in blink::Document::isSecureContextImpl for more details. | |
| 29 // If the provider is not created for a document, or the document does not | |
| 30 // have a parent frame, |is_parent_frame_secure| is true. | |
| 31 OnProviderCreated(ServiceWorkerProviderHostInfo provider_info); | |
| 17 OnProviderDestroyed(int32 provider_id); | 32 OnProviderDestroyed(int32 provider_id); |
| 18 // Make relationship between the network provider and the service worker | 33 |
| 34 // Informs the browser that a service worker is starting up in a provider. | |
| 35 // |provider_id| identifies the ServiceWorkerProviderHost hosting the service | |
| 36 // worker. |version_id| identifies the ServiceWorkerVersion and | |
| 37 // |embedded_worker_id| identifies the EmbeddedWorkerInstance. | |
| 19 OnSetHostedVersionId(int32 provider_id, | 38 OnSetHostedVersionId(int32 provider_id, |
| 20 int64 version_id, | 39 int64 version_id, |
| 21 int32 embedded_worker_id); | 40 int32 embedded_worker_id); |
| 22 }; | 41 }; |
| OLD | NEW |