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