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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType, | 49 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType, |
50 blink::WebServiceWorkerClientTypeLast) | 50 blink::WebServiceWorkerClientTypeLast) |
51 | 51 |
52 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType, | 52 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType, |
53 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) | 53 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) |
54 | 54 |
55 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchType, | 55 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchType, |
56 content::ServiceWorkerFetchType::LAST) | 56 content::ServiceWorkerFetchType::LAST) |
57 | 57 |
| 58 IPC_STRUCT_TRAITS_BEGIN(content::ExtendableMessageEventSource) |
| 59 IPC_STRUCT_TRAITS_MEMBER(client_info) |
| 60 IPC_STRUCT_TRAITS_MEMBER(service_worker_info) |
| 61 IPC_STRUCT_TRAITS_END() |
| 62 |
58 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) | 63 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) |
59 IPC_STRUCT_TRAITS_MEMBER(mode) | 64 IPC_STRUCT_TRAITS_MEMBER(mode) |
60 IPC_STRUCT_TRAITS_MEMBER(is_main_resource_load) | 65 IPC_STRUCT_TRAITS_MEMBER(is_main_resource_load) |
61 IPC_STRUCT_TRAITS_MEMBER(request_context_type) | 66 IPC_STRUCT_TRAITS_MEMBER(request_context_type) |
62 IPC_STRUCT_TRAITS_MEMBER(frame_type) | 67 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
63 IPC_STRUCT_TRAITS_MEMBER(url) | 68 IPC_STRUCT_TRAITS_MEMBER(url) |
64 IPC_STRUCT_TRAITS_MEMBER(method) | 69 IPC_STRUCT_TRAITS_MEMBER(method) |
65 IPC_STRUCT_TRAITS_MEMBER(headers) | 70 IPC_STRUCT_TRAITS_MEMBER(headers) |
66 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) | 71 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) |
67 IPC_STRUCT_TRAITS_MEMBER(blob_size) | 72 IPC_STRUCT_TRAITS_MEMBER(blob_size) |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 int /* thread_id */, | 182 int /* thread_id */, |
178 int /* request_id */, | 183 int /* request_id */, |
179 int /* provider_id */) | 184 int /* provider_id */) |
180 | 185 |
181 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, | 186 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, |
182 int /* thread_id */, | 187 int /* thread_id */, |
183 int /* request_id */, | 188 int /* request_id */, |
184 int /* provider_id */) | 189 int /* provider_id */) |
185 | 190 |
186 // Sends ExtendableMessageEvent to a service worker (renderer->browser). | 191 // Sends ExtendableMessageEvent to a service worker (renderer->browser). |
187 IPC_MESSAGE_CONTROL3( | 192 IPC_MESSAGE_CONTROL4( |
188 ServiceWorkerHostMsg_PostMessageToWorker, | 193 ServiceWorkerHostMsg_PostMessageToWorker, |
189 int /* handle_id */, | 194 int /* handle_id */, |
| 195 int /* provider_id */, |
190 base::string16 /* message */, | 196 base::string16 /* message */, |
191 std::vector<content::TransferredMessagePort> /* sent_message_ports */) | 197 std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
192 | 198 |
193 // Sends MessageEvent to a service worker (renderer->browser). | 199 // Sends MessageEvent to a service worker (renderer->browser). |
194 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by | 200 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by |
195 // default (crbug.com/543198). | 201 // default (crbug.com/543198). |
196 IPC_MESSAGE_CONTROL3( | 202 IPC_MESSAGE_CONTROL3( |
197 ServiceWorkerHostMsg_DeprecatedPostMessageToWorker, | 203 ServiceWorkerHostMsg_DeprecatedPostMessageToWorker, |
198 int /* handle_id */, | 204 int /* handle_id */, |
199 base::string16 /* message */, | 205 base::string16 /* message */, |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 467 |
462 // Sends MessageEvent to a client document (browser->renderer). | 468 // Sends MessageEvent to a client document (browser->renderer). |
463 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, | 469 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, |
464 ServiceWorkerMsg_MessageToDocument_Params) | 470 ServiceWorkerMsg_MessageToDocument_Params) |
465 | 471 |
466 // Sent via EmbeddedWorker to dispatch events. | 472 // Sent via EmbeddedWorker to dispatch events. |
467 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, | 473 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, |
468 int /* request_id */) | 474 int /* request_id */) |
469 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 475 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
470 int /* request_id */) | 476 int /* request_id */) |
471 IPC_MESSAGE_CONTROL4( | 477 IPC_MESSAGE_CONTROL5( |
472 ServiceWorkerMsg_ExtendableMessageEvent, | 478 ServiceWorkerMsg_ExtendableMessageEvent, |
473 int /* request_id */, | 479 int /* request_id */, |
474 base::string16 /* message */, | 480 base::string16 /* message */, |
475 std::vector<content::TransferredMessagePort> /* sent_message_ports */, | 481 std::vector<content::TransferredMessagePort> /* sent_message_ports */, |
476 std::vector<int> /* new_routing_ids */) | 482 std::vector<int> /* new_routing_ids */, |
| 483 content::ExtendableMessageEventSource) |
477 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, | 484 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
478 int /* request_id */, | 485 int /* request_id */, |
479 content::ServiceWorkerFetchRequest) | 486 content::ServiceWorkerFetchRequest) |
480 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_NotificationClickEvent, | 487 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_NotificationClickEvent, |
481 int /* request_id */, | 488 int /* request_id */, |
482 int64_t /* persistent_notification_id */, | 489 int64_t /* persistent_notification_id */, |
483 content::PlatformNotificationData /* notification_data */, | 490 content::PlatformNotificationData /* notification_data */, |
484 int /* action_index */) | 491 int /* action_index */) |
485 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NotificationCloseEvent, | 492 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NotificationCloseEvent, |
486 int /* request_id */, | 493 int /* request_id */, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 555 |
549 // Sent via EmbeddedWorker as a response of NavigateClient. | 556 // Sent via EmbeddedWorker as a response of NavigateClient. |
550 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 557 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
551 int /* request_id */, | 558 int /* request_id */, |
552 content::ServiceWorkerClientInfo /* client */) | 559 content::ServiceWorkerClientInfo /* client */) |
553 | 560 |
554 // Sent via EmbeddedWorker as an error response of NavigateClient. | 561 // Sent via EmbeddedWorker as an error response of NavigateClient. |
555 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 562 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
556 int /* request_id */, | 563 int /* request_id */, |
557 GURL /* url */) | 564 GURL /* url */) |
OLD | NEW |