OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Message definition file, included multiple times, hence no include guard. | 5 // Message definition file, included multiple times, hence no include guard. |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 std::vector<int> /* sent_message_ports */) | 195 std::vector<int> /* sent_message_ports */) |
196 | 196 |
197 // Informs the browser of a new ServiceWorkerProvider in the child process, | 197 // Informs the browser of a new ServiceWorkerProvider in the child process, |
198 // |provider_id| is unique within its child process. When this provider is | 198 // |provider_id| is unique within its child process. When this provider is |
199 // created for a document, |route_id| is the frame ID of it. When this provider | 199 // created for a document, |route_id| is the frame ID of it. When this provider |
200 // is created for a Shared Worker, |route_id| is the Shared Worker route ID. | 200 // is created for a Shared Worker, |route_id| is the Shared Worker route ID. |
201 // When this provider is created for a Service Worker, |route_id| is | 201 // When this provider is created for a Service Worker, |route_id| is |
202 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for | 202 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for |
203 // Service Worker controllees (documents and Shared Workers) or for controllers | 203 // Service Worker controllees (documents and Shared Workers) or for controllers |
204 // (Service Workers). | 204 // (Service Workers). |
205 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, | 205 // |
| 206 // |is_parent_frame_secure| is false if the provider is created for a |
| 207 // document whose parent frame is not secure from the point of view of the |
| 208 // document; that is, blink::WebFrame::canHaveSecureChild() returns false. |
| 209 // This doesn't mean the document is necessarily an insecure context, |
| 210 // because the document may have a URL whose scheme is granted an exception |
| 211 // that allows bypassing the ancestor secure context check. See the |
| 212 // comment in blink::Document::isSecureContextImpl for more details. |
| 213 // If the provider is not created for a document, or the document does not have |
| 214 // a parent frame, |is_parent_frame_secure| is true. |
| 215 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_ProviderCreated, |
206 int /* provider_id */, | 216 int /* provider_id */, |
207 int /* route_id */, | 217 int /* route_id */, |
208 content::ServiceWorkerProviderType /* provider_type */) | 218 content::ServiceWorkerProviderType /* provider_type */, |
| 219 bool /* is_parent_frame_secure */) |
209 | 220 |
210 // Informs the browser of a ServiceWorkerProvider being destroyed. | 221 // Informs the browser of a ServiceWorkerProvider being destroyed. |
211 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 222 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
212 int /* provider_id */) | 223 int /* provider_id */) |
213 | 224 |
214 // Increments and decrements the ServiceWorker object's reference | 225 // Increments and decrements the ServiceWorker object's reference |
215 // counting in the browser side. The ServiceWorker object is created | 226 // counting in the browser side. The ServiceWorker object is created |
216 // with ref-count==1 initially. | 227 // with ref-count==1 initially. |
217 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, | 228 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, |
218 int /* handle_id */) | 229 int /* handle_id */) |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 | 529 |
519 // Sent via EmbeddedWorker as a response of NavigateClient. | 530 // Sent via EmbeddedWorker as a response of NavigateClient. |
520 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 531 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
521 int /* request_id */, | 532 int /* request_id */, |
522 content::ServiceWorkerClientInfo /* client */) | 533 content::ServiceWorkerClientInfo /* client */) |
523 | 534 |
524 // Sent via EmbeddedWorker as an error response of NavigateClient. | 535 // Sent via EmbeddedWorker as an error response of NavigateClient. |
525 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 536 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
526 int /* request_id */, | 537 int /* request_id */, |
527 GURL /* url */) | 538 GURL /* url */) |
OLD | NEW |