| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 int /* thread_id */, | 181 int /* thread_id */, |
| 177 int /* request_id */, | 182 int /* request_id */, |
| 178 int /* provider_id */) | 183 int /* provider_id */) |
| 179 | 184 |
| 180 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, | 185 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, |
| 181 int /* thread_id */, | 186 int /* thread_id */, |
| 182 int /* request_id */, | 187 int /* request_id */, |
| 183 int /* provider_id */) | 188 int /* provider_id */) |
| 184 | 189 |
| 185 // Sends ExtendableMessageEvent to a service worker (renderer->browser). | 190 // Sends ExtendableMessageEvent to a service worker (renderer->browser). |
| 186 IPC_MESSAGE_CONTROL3( | 191 IPC_MESSAGE_CONTROL4( |
| 187 ServiceWorkerHostMsg_PostMessageToWorker, | 192 ServiceWorkerHostMsg_PostMessageToWorker, |
| 188 int /* handle_id */, | 193 int /* handle_id */, |
| 194 int /* provider_id */, |
| 189 base::string16 /* message */, | 195 base::string16 /* message */, |
| 190 std::vector<content::TransferredMessagePort> /* sent_message_ports */) | 196 std::vector<content::TransferredMessagePort> /* sent_message_ports */) |
| 191 | 197 |
| 192 // Sends MessageEvent to a service worker (renderer->browser). | 198 // Sends MessageEvent to a service worker (renderer->browser). |
| 193 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by | 199 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by |
| 194 // default (crbug.com/543198). | 200 // default (crbug.com/543198). |
| 195 IPC_MESSAGE_CONTROL3( | 201 IPC_MESSAGE_CONTROL3( |
| 196 ServiceWorkerHostMsg_DeprecatedPostMessageToWorker, | 202 ServiceWorkerHostMsg_DeprecatedPostMessageToWorker, |
| 197 int /* handle_id */, | 203 int /* handle_id */, |
| 198 base::string16 /* message */, | 204 base::string16 /* message */, |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 | 466 |
| 461 // Sends MessageEvent to a client document (browser->renderer). | 467 // Sends MessageEvent to a client document (browser->renderer). |
| 462 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, | 468 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, |
| 463 ServiceWorkerMsg_MessageToDocument_Params) | 469 ServiceWorkerMsg_MessageToDocument_Params) |
| 464 | 470 |
| 465 // Sent via EmbeddedWorker to dispatch events. | 471 // Sent via EmbeddedWorker to dispatch events. |
| 466 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, | 472 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, |
| 467 int /* request_id */) | 473 int /* request_id */) |
| 468 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 474 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
| 469 int /* request_id */) | 475 int /* request_id */) |
| 470 IPC_MESSAGE_CONTROL4( | 476 IPC_MESSAGE_CONTROL5( |
| 471 ServiceWorkerMsg_ExtendableMessageEvent, | 477 ServiceWorkerMsg_ExtendableMessageEvent, |
| 472 int /* request_id */, | 478 int /* request_id */, |
| 473 base::string16 /* message */, | 479 base::string16 /* message */, |
| 474 std::vector<content::TransferredMessagePort> /* sent_message_ports */, | 480 std::vector<content::TransferredMessagePort> /* sent_message_ports */, |
| 475 std::vector<int> /* new_routing_ids */) | 481 std::vector<int> /* new_routing_ids */, |
| 482 content::ExtendableMessageEventSource) |
| 476 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, | 483 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FetchEvent, |
| 477 int /* request_id */, | 484 int /* request_id */, |
| 478 content::ServiceWorkerFetchRequest) | 485 content::ServiceWorkerFetchRequest) |
| 479 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_NotificationClickEvent, | 486 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_NotificationClickEvent, |
| 480 int /* request_id */, | 487 int /* request_id */, |
| 481 int64_t /* persistent_notification_id */, | 488 int64_t /* persistent_notification_id */, |
| 482 content::PlatformNotificationData /* notification_data */, | 489 content::PlatformNotificationData /* notification_data */, |
| 483 int /* action_index */) | 490 int /* action_index */) |
| 484 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NotificationCloseEvent, | 491 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_NotificationCloseEvent, |
| 485 int /* request_id */, | 492 int /* request_id */, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 | 554 |
| 548 // Sent via EmbeddedWorker as a response of NavigateClient. | 555 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 549 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 556 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 550 int /* request_id */, | 557 int /* request_id */, |
| 551 content::ServiceWorkerClientInfo /* client */) | 558 content::ServiceWorkerClientInfo /* client */) |
| 552 | 559 |
| 553 // Sent via EmbeddedWorker as an error response of NavigateClient. | 560 // Sent via EmbeddedWorker as an error response of NavigateClient. |
| 554 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 561 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
| 555 int /* request_id */, | 562 int /* request_id */, |
| 556 GURL /* url */) | 563 GURL /* url */) |
| OLD | NEW |