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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 int /* thread_id */, | 154 int /* thread_id */, |
155 int /* request_id */, | 155 int /* request_id */, |
156 int /* provider_id */) | 156 int /* provider_id */) |
157 | 157 |
158 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, | 158 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, |
159 int /* thread_id */, | 159 int /* thread_id */, |
160 int /* request_id */, | 160 int /* request_id */, |
161 int /* provider_id */) | 161 int /* provider_id */) |
162 | 162 |
163 // Sends a 'message' event to a service worker (renderer->browser). | 163 // Sends a 'message' event to a service worker (renderer->browser). |
164 IPC_MESSAGE_CONTROL3( | 164 IPC_MESSAGE_CONTROL4( |
165 ServiceWorkerHostMsg_PostMessageToWorker, | 165 ServiceWorkerHostMsg_PostMessageToWorker, |
166 int /* handle_id */, | 166 int /* handle_id */, |
| 167 int /* provider_id */, |
167 base::string16 /* message */, | 168 base::string16 /* message */, |
168 std::vector<content::TransferredMessagePort> /* sent_message_ports */) | 169 std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
169 | 170 |
170 // Informs the browser of a new ServiceWorkerProvider in the child process, | 171 // Informs the browser of a new ServiceWorkerProvider in the child process, |
171 // |provider_id| is unique within its child process. When this provider is | 172 // |provider_id| is unique within its child process. When this provider is |
172 // created for a document, |route_id| is the frame ID of it. When this provider | 173 // created for a document, |route_id| is the frame ID of it. When this provider |
173 // is created for a Shared Worker, |route_id| is the Shared Worker route ID. | 174 // is created for a Shared Worker, |route_id| is the Shared Worker route ID. |
174 // When this provider is created for a Service Worker, |route_id| is | 175 // When this provider is created for a Service Worker, |route_id| is |
175 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for | 176 // MSG_ROUTING_NONE. |provider_type| identifies whether this provider is for |
176 // Service Worker controllees (documents and Shared Workers) or for controllers | 177 // Service Worker controllees (documents and Shared Workers) or for controllers |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_NotificationClickEventFinished, | 231 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_NotificationClickEventFinished, |
231 int /* request_id */) | 232 int /* request_id */) |
232 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, | 233 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_PushEventFinished, |
233 int /* request_id */, | 234 int /* request_id */, |
234 blink::WebServiceWorkerEventResult) | 235 blink::WebServiceWorkerEventResult) |
235 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, | 236 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GeofencingEventFinished, |
236 int /* request_id */) | 237 int /* request_id */) |
237 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished, | 238 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CrossOriginConnectEventFinished, |
238 int /* request_id */, | 239 int /* request_id */, |
239 bool /* accept_connection */) | 240 bool /* accept_connection */) |
| 241 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_MessageEventFinished, |
| 242 int /* request_id */) |
240 | 243 |
241 // Responds to a Ping from the browser. | 244 // Responds to a Ping from the browser. |
242 // Routed to the target ServiceWorkerVersion. | 245 // Routed to the target ServiceWorkerVersion. |
243 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) | 246 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) |
244 | 247 |
245 // Asks the browser to retrieve clients of the sender ServiceWorker. | 248 // Asks the browser to retrieve clients of the sender ServiceWorker. |
246 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, | 249 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, |
247 int /* request_id */, | 250 int /* request_id */, |
248 content::ServiceWorkerClientQueryOptions) | 251 content::ServiceWorkerClientQueryOptions) |
249 | 252 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_AssociateRegistration, | 312 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_AssociateRegistration, |
310 int /* thread_id */, | 313 int /* thread_id */, |
311 int /* provider_id */, | 314 int /* provider_id */, |
312 content::ServiceWorkerRegistrationObjectInfo, | 315 content::ServiceWorkerRegistrationObjectInfo, |
313 content::ServiceWorkerVersionAttributes) | 316 content::ServiceWorkerVersionAttributes) |
314 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DisassociateRegistration, | 317 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DisassociateRegistration, |
315 int /* thread_id */, | 318 int /* thread_id */, |
316 int /* provider_id */) | 319 int /* provider_id */) |
317 | 320 |
318 // Response to ServiceWorkerHostMsg_RegisterServiceWorker. | 321 // Response to ServiceWorkerHostMsg_RegisterServiceWorker. |
319 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered, | 322 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_ServiceWorkerRegistered, |
320 int /* thread_id */, | 323 int /* thread_id */, |
321 int /* request_id */, | 324 int /* request_id */, |
| 325 int /* provider_id */, |
322 content::ServiceWorkerRegistrationObjectInfo, | 326 content::ServiceWorkerRegistrationObjectInfo, |
323 content::ServiceWorkerVersionAttributes) | 327 content::ServiceWorkerVersionAttributes) |
324 | 328 |
325 // Response to ServiceWorkerHostMsg_UnregisterServiceWorker. | 329 // Response to ServiceWorkerHostMsg_UnregisterServiceWorker. |
326 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerUnregistered, | 330 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerUnregistered, |
327 int /* thread_id */, | 331 int /* thread_id */, |
328 int /* request_id */, | 332 int /* request_id */, |
329 bool /* is_success */) | 333 bool /* is_success */) |
330 | 334 |
331 // Response to ServiceWorkerHostMsg_GetRegistration. | 335 // Response to ServiceWorkerHostMsg_GetRegistration. |
332 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, | 336 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_DidGetRegistration, |
333 int /* thread_id */, | 337 int /* thread_id */, |
334 int /* request_id */, | 338 int /* request_id */, |
| 339 int /* provider_id */, |
335 content::ServiceWorkerRegistrationObjectInfo, | 340 content::ServiceWorkerRegistrationObjectInfo, |
336 content::ServiceWorkerVersionAttributes) | 341 content::ServiceWorkerVersionAttributes) |
337 | 342 |
338 // Response to ServiceWorkerHostMsg_GetRegistrations. | 343 // Response to ServiceWorkerHostMsg_GetRegistrations. |
339 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrations, | 344 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_DidGetRegistrations, |
340 int /* thread_id */, | 345 int /* thread_id */, |
341 int /* request_id */, | 346 int /* request_id */, |
| 347 int /* provider_id */, |
342 std::vector<content::ServiceWorkerRegistrationObjectInfo>, | 348 std::vector<content::ServiceWorkerRegistrationObjectInfo>, |
343 std::vector<content::ServiceWorkerVersionAttributes>) | 349 std::vector<content::ServiceWorkerVersionAttributes>) |
344 | 350 |
345 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. | 351 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. |
346 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady, | 352 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_DidGetRegistrationForReady, |
347 int /* thread_id */, | 353 int /* thread_id */, |
348 int /* request_id */, | 354 int /* request_id */, |
| 355 int /* provider_id */, |
349 content::ServiceWorkerRegistrationObjectInfo, | 356 content::ServiceWorkerRegistrationObjectInfo, |
350 content::ServiceWorkerVersionAttributes) | 357 content::ServiceWorkerVersionAttributes) |
351 | 358 |
352 // Sent when any kind of registration error occurs during a | 359 // Sent when any kind of registration error occurs during a |
353 // RegisterServiceWorker handler above. | 360 // RegisterServiceWorker handler above. |
354 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 361 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
355 int /* thread_id */, | 362 int /* thread_id */, |
356 int /* request_id */, | 363 int /* request_id */, |
357 blink::WebServiceWorkerError::ErrorType /* code */, | 364 blink::WebServiceWorkerError::ErrorType /* code */, |
358 base::string16 /* message */) | 365 base::string16 /* message */) |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 int /* request_id */, | 438 int /* request_id */, |
432 std::string /* data */) | 439 std::string /* data */) |
433 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent, | 440 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GeofencingEvent, |
434 int /* request_id */, | 441 int /* request_id */, |
435 blink::WebGeofencingEventType /* event_type */, | 442 blink::WebGeofencingEventType /* event_type */, |
436 std::string /* region_id */, | 443 std::string /* region_id */, |
437 blink::WebCircularGeofencingRegion /* region */) | 444 blink::WebCircularGeofencingRegion /* region */) |
438 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CrossOriginConnectEvent, | 445 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CrossOriginConnectEvent, |
439 int /* request_id */, | 446 int /* request_id */, |
440 content::NavigatorConnectClient /* client */) | 447 content::NavigatorConnectClient /* client */) |
441 IPC_MESSAGE_CONTROL3( | 448 IPC_MESSAGE_CONTROL5( |
442 ServiceWorkerMsg_MessageToWorker, | 449 ServiceWorkerMsg_ClientMessageEvent, |
| 450 int /* request_id */, |
| 451 content::ServiceWorkerClientInfo /* client */, |
443 base::string16 /* message */, | 452 base::string16 /* message */, |
444 std::vector<content::TransferredMessagePort> /* sent_message_ports */, | 453 std::vector<content::TransferredMessagePort> /* sent_message_ports */, |
445 std::vector<int> /* new_routing_ids */) | 454 std::vector<int> /* new_routing_ids */) |
| 455 IPC_MESSAGE_CONTROL5( |
| 456 ServiceWorkerMsg_WorkerMessageEvent, |
| 457 int /* request_id */, |
| 458 content::ServiceWorkerObjectInfo /* client */, |
| 459 base::string16 /* message */, |
| 460 std::vector<content::TransferredMessagePort> /* sent_message_ports */, |
| 461 std::vector<int> /* new_routing_ids */) |
446 IPC_MESSAGE_CONTROL4( | 462 IPC_MESSAGE_CONTROL4( |
447 ServiceWorkerMsg_CrossOriginMessageToWorker, | 463 ServiceWorkerMsg_CrossOriginMessageToWorker, |
448 content::NavigatorConnectClient /* client */, | 464 content::NavigatorConnectClient /* client */, |
449 base::string16 /* message */, | 465 base::string16 /* message */, |
450 std::vector<content::TransferredMessagePort> /* sent_message_ports */, | 466 std::vector<content::TransferredMessagePort> /* sent_message_ports */, |
451 std::vector<int> /* new_routing_ids */) | 467 std::vector<int> /* new_routing_ids */) |
452 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, | 468 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, |
453 int /* request_id */) | 469 int /* request_id */) |
454 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, | 470 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, |
455 int /* request_id */) | 471 int /* request_id */) |
(...skipping 24 matching lines...) Expand all Loading... |
480 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 496 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
481 int /* request_id */, | 497 int /* request_id */, |
482 content::ServiceWorkerClientInfo /* client */) | 498 content::ServiceWorkerClientInfo /* client */) |
483 | 499 |
484 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. | 500 // Sent via EmbeddedWorker to transfer a stashed message port to the worker. |
485 IPC_MESSAGE_CONTROL3( | 501 IPC_MESSAGE_CONTROL3( |
486 ServiceWorkerMsg_SendStashedMessagePorts, | 502 ServiceWorkerMsg_SendStashedMessagePorts, |
487 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, | 503 std::vector<content::TransferredMessagePort> /* stashed_message_ports */, |
488 std::vector<int> /* new_routing_ids */, | 504 std::vector<int> /* new_routing_ids */, |
489 std::vector<base::string16> /* port_names */) | 505 std::vector<base::string16> /* port_names */) |
OLD | NEW |