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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 IPC_STRUCT_TRAITS_MEMBER(url) | 99 IPC_STRUCT_TRAITS_MEMBER(url) |
100 IPC_STRUCT_TRAITS_MEMBER(frame_type) | 100 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
101 IPC_STRUCT_TRAITS_MEMBER(client_type) | 101 IPC_STRUCT_TRAITS_MEMBER(client_type) |
102 IPC_STRUCT_TRAITS_END() | 102 IPC_STRUCT_TRAITS_END() |
103 | 103 |
104 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) | 104 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientQueryOptions) |
105 IPC_STRUCT_TRAITS_MEMBER(client_type) | 105 IPC_STRUCT_TRAITS_MEMBER(client_type) |
106 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) | 106 IPC_STRUCT_TRAITS_MEMBER(include_uncontrolled) |
107 IPC_STRUCT_TRAITS_END() | 107 IPC_STRUCT_TRAITS_END() |
108 | 108 |
| 109 IPC_STRUCT_BEGIN(ServiceWorkerMsg_MessageToDocument_Params) |
| 110 IPC_STRUCT_MEMBER(int, thread_id) |
| 111 IPC_STRUCT_MEMBER(int, provider_id) |
| 112 IPC_STRUCT_MEMBER(content::ServiceWorkerObjectInfo, service_worker_info) |
| 113 IPC_STRUCT_MEMBER(base::string16, message) |
| 114 IPC_STRUCT_MEMBER(std::vector<content::TransferredMessagePort>, message_ports) |
| 115 IPC_STRUCT_MEMBER(std::vector<int>, new_routing_ids) |
| 116 IPC_STRUCT_END() |
| 117 |
109 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, | 118 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebGeofencingEventType, |
110 blink::WebGeofencingEventTypeLast) | 119 blink::WebGeofencingEventTypeLast) |
111 | 120 |
112 //--------------------------------------------------------------------------- | 121 //--------------------------------------------------------------------------- |
113 // Messages sent from the child process to the browser. | 122 // Messages sent from the child process to the browser. |
114 | 123 |
115 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, | 124 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, |
116 int /* thread_id */, | 125 int /* thread_id */, |
117 int /* request_id */, | 126 int /* request_id */, |
118 int /* provider_id */, | 127 int /* provider_id */, |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 366 |
358 // Tells the child process to set the controller ServiceWorker for the given | 367 // Tells the child process to set the controller ServiceWorker for the given |
359 // provider. | 368 // provider. |
360 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetControllerServiceWorker, | 369 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetControllerServiceWorker, |
361 int /* thread_id */, | 370 int /* thread_id */, |
362 int /* provider_id */, | 371 int /* provider_id */, |
363 content::ServiceWorkerObjectInfo, | 372 content::ServiceWorkerObjectInfo, |
364 bool /* should_notify_controllerchange */) | 373 bool /* should_notify_controllerchange */) |
365 | 374 |
366 // Sends a 'message' event to a client document (browser->renderer). | 375 // Sends a 'message' event to a client document (browser->renderer). |
367 IPC_MESSAGE_CONTROL5( | 376 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, |
368 ServiceWorkerMsg_MessageToDocument, | 377 ServiceWorkerMsg_MessageToDocument_Params) |
369 int /* thread_id */, | |
370 int /* provider_id */, | |
371 base::string16 /* message */, | |
372 std::vector<content::TransferredMessagePort> /* sent_message_ports */, | |
373 std::vector<int> /* new_routing_ids */) | |
374 | 378 |
375 // Sent via EmbeddedWorker to dispatch events. | 379 // Sent via EmbeddedWorker to dispatch events. |
376 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, | 380 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, |
377 int /* request_id */) | 381 int /* request_id */) |
378 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 382 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
379 int /* request_id */) | 383 int /* request_id */) |
380 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, | 384 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
381 int /* request_id */, | 385 int /* request_id */, |
382 content::ServiceWorkerFetchRequest) | 386 content::ServiceWorkerFetchRequest) |
383 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, | 387 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 | 436 |
433 // Sent via EmbeddedWorker as an error response of OpenWindow. | 437 // Sent via EmbeddedWorker as an error response of OpenWindow. |
434 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, | 438 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, |
435 int /* request_id */, | 439 int /* request_id */, |
436 std::string /* message */ ) | 440 std::string /* message */ ) |
437 | 441 |
438 // Sent via EmbeddedWorker as a response of FocusClient. | 442 // Sent via EmbeddedWorker as a response of FocusClient. |
439 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, | 443 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, |
440 int /* request_id */, | 444 int /* request_id */, |
441 content::ServiceWorkerClientInfo /* client */) | 445 content::ServiceWorkerClientInfo /* client */) |
OLD | NEW |