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 <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 int /* provider_id */) | 146 int /* provider_id */) |
147 | 147 |
148 // Sends a 'message' event to a service worker (renderer->browser). | 148 // Sends a 'message' event to a service worker (renderer->browser). |
149 IPC_MESSAGE_CONTROL3( | 149 IPC_MESSAGE_CONTROL3( |
150 ServiceWorkerHostMsg_PostMessageToWorker, | 150 ServiceWorkerHostMsg_PostMessageToWorker, |
151 int /* handle_id */, | 151 int /* handle_id */, |
152 base::string16 /* message */, | 152 base::string16 /* message */, |
153 std::vector<content::TransferredMessagePort> /* sent_message_ports */) | 153 std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
154 | 154 |
155 // Informs the browser of a new ServiceWorkerProvider in the child process, | 155 // Informs the browser of a new ServiceWorkerProvider in the child process, |
156 // |provider_id| is unique within its child process. | 156 // |provider_id| is unique within its child process. When this provider is |
157 // |render_frame_id| identifies the frame associated with the provider, it will | 157 // created for a document, |route_id| is the frame ID of it. When this provider |
158 // it will be MSG_ROUTING_NONE if the context is a worker instead of a document. | 158 // is created for a Shared Worker, |route_id| is the Shared Worker route ID. |
159 // |provider_type| identifies whether this provider is for ServiceWorker | 159 // When this provider is created for a Service Worker, |route_id| is |
160 // controllees (documents and SharedWorkers) or for controllers | 160 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for |
161 // (ServiceWorkers). | 161 // Service Worker controllees (documents and Shared Workers) or for controllers |
| 162 // (Service Workers). |
162 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, | 163 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_ProviderCreated, |
163 int /* provider_id */, | 164 int /* provider_id */, |
164 int /* render_frame_id */, | 165 int /* route_id */, |
165 content::ServiceWorkerProviderType /* provider_type */) | 166 content::ServiceWorkerProviderType /* provider_type */) |
166 | 167 |
167 // Informs the browser of a ServiceWorkerProvider being destroyed. | 168 // Informs the browser of a ServiceWorkerProvider being destroyed. |
168 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, | 169 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, |
169 int /* provider_id */) | 170 int /* provider_id */) |
170 | 171 |
171 // Increments and decrements the ServiceWorker object's reference | 172 // Increments and decrements the ServiceWorker object's reference |
172 // counting in the browser side. The ServiceWorker object is created | 173 // counting in the browser side. The ServiceWorker object is created |
173 // with ref-count==1 initially. | 174 // with ref-count==1 initially. |
174 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, | 175 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementServiceWorkerRefCount, |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 470 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
470 int /* request_id */, | 471 int /* request_id */, |
471 content::ServiceWorkerClientInfo /* client */) | 472 content::ServiceWorkerClientInfo /* client */) |
472 | 473 |
473 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. | 474 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. |
474 IPC_MESSAGE_CONTROL3( | 475 IPC_MESSAGE_CONTROL3( |
475 ServiceWorkerMsg_SendStashedMessagePorts, | 476 ServiceWorkerMsg_SendStashedMessagePorts, |
476 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, | 477 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, |
477 std::vector<int> /* new_routing_ids */, | 478 std::vector<int> /* new_routing_ids */, |
478 std::vector<base::string16> /* port_names */) | 479 std::vector<base::string16> /* port_names */) |
OLD | NEW |