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 // | 206 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, |
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, | |
217 int /* provider_id */, | 207 int /* provider_id */, |
218 int /* route_id */, | 208 int /* route_id */, |
219 content::ServiceWorkerProviderType /* provider_type */, | 209 content::ServiceWorkerProviderType /* provider_type */) |
220 bool /* is_parent_frame_secure */) | |
221 | 210 |
222 // Informs the browser of a ServiceWorkerProvider being destroyed. | 211 // Informs the browser of a ServiceWorkerProvider being destroyed. |
223 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 212 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
224 int /* provider_id */) | 213 int /* provider_id */) |
225 | 214 |
226 // Increments and decrements the ServiceWorker object's reference | 215 // Increments and decrements the ServiceWorker object's reference |
227 // counting in the browser side. The ServiceWorker object is created | 216 // counting in the browser side. The ServiceWorker object is created |
228 // with ref-count==1 initially. | 217 // with ref-count==1 initially. |
229 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, | 218 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, |
230 int /* handle_id */) | 219 int /* handle_id */) |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 | 521 |
533 // Sent via EmbeddedWorker as a response of NavigateClient. | 522 // Sent via EmbeddedWorker as a response of NavigateClient. |
534 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 523 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
535 int /* request_id */, | 524 int /* request_id */, |
536 content::ServiceWorkerClientInfo /* client */) | 525 content::ServiceWorkerClientInfo /* client */) |
537 | 526 |
538 // Sent via EmbeddedWorker as an error response of NavigateClient. | 527 // Sent via EmbeddedWorker as an error response of NavigateClient. |
539 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 528 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
540 int /* request_id */, | 529 int /* request_id */, |
541 GURL /* url */) | 530 GURL /* url */) |
OLD | NEW |