OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 module content.mojom; | |
6 | |
7 import "content/common/service_worker/service_worker_types.mojom"; | |
8 | |
9 // A container object carried from the renderer to the browser process. | |
10 // This contains the params for the constructor of ServiceWorkerProviderHost. | |
11 // | |
12 // |provider_id| is unique within its child process. When this provider is | |
13 // created for a document, |route_id| is the frame ID of it. When this provider | |
14 // is created for a Shared Worker, |route_id| is the Shared Worker route | |
15 // ID. When this provider is created for a Service Worker, |route_id| is | |
16 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for | |
17 // Service Worker controllees (documents and Shared Workers) or for controllers | |
18 // (Service Workers). |is_parent_frame_secure| is false if the provider is | |
19 // created for a document whose parent frame is not secure from the point of | |
20 // view of the document; that is, blink::WebFrame::canHaveSecureChild() returns | |
21 // false. This doesn't mean the document is necessarily an insecure context, | |
22 // because the document may have a URL whose scheme is granted an exception that | |
23 // allows bypassing the ancestor secure context check. See the comment in | |
24 // blink::Document::isSecureContextImpl for more details. If the provider is not | |
25 // created for a document, or the document does not have a parent frame, | |
26 // |is_parent_frame_secure| is true. | |
falken
2017/02/08 06:53:51
I slightly prefer these comments to be in content
shimazu
2017/02/13 03:25:56
Done.
| |
27 struct ServiceWorkerProviderHostInfo { | |
28 int32 provider_id; | |
29 int32 route_id; | |
30 ServiceWorkerProviderType type; | |
31 bool is_parent_frame_secure; | |
32 }; | |
OLD | NEW |