Chromium Code Reviews| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) | 50 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) |
| 51 | 51 |
| 52 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchType, | 52 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchType, |
| 53 content::ServiceWorkerFetchType::LAST) | 53 content::ServiceWorkerFetchType::LAST) |
| 54 | 54 |
| 55 IPC_STRUCT_TRAITS_BEGIN(content::ExtendableMessageEventSource) | 55 IPC_STRUCT_TRAITS_BEGIN(content::ExtendableMessageEventSource) |
| 56 IPC_STRUCT_TRAITS_MEMBER(client_info) | 56 IPC_STRUCT_TRAITS_MEMBER(client_info) |
| 57 IPC_STRUCT_TRAITS_MEMBER(service_worker_info) | 57 IPC_STRUCT_TRAITS_MEMBER(service_worker_info) |
| 58 IPC_STRUCT_TRAITS_END() | 58 IPC_STRUCT_TRAITS_END() |
| 59 | 59 |
| 60 IPC_STRUCT_TRAITS_BEGIN(content::NavigationPreloadState) | |
| 61 IPC_STRUCT_TRAITS_MEMBER(enabled) | |
| 62 IPC_STRUCT_TRAITS_MEMBER(header) | |
| 63 IPC_STRUCT_TRAITS_END() | |
| 64 | |
| 60 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) | 65 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) |
| 61 IPC_STRUCT_TRAITS_MEMBER(mode) | 66 IPC_STRUCT_TRAITS_MEMBER(mode) |
| 62 IPC_STRUCT_TRAITS_MEMBER(is_main_resource_load) | 67 IPC_STRUCT_TRAITS_MEMBER(is_main_resource_load) |
| 63 IPC_STRUCT_TRAITS_MEMBER(request_context_type) | 68 IPC_STRUCT_TRAITS_MEMBER(request_context_type) |
| 64 IPC_STRUCT_TRAITS_MEMBER(frame_type) | 69 IPC_STRUCT_TRAITS_MEMBER(frame_type) |
| 65 IPC_STRUCT_TRAITS_MEMBER(url) | 70 IPC_STRUCT_TRAITS_MEMBER(url) |
| 66 IPC_STRUCT_TRAITS_MEMBER(method) | 71 IPC_STRUCT_TRAITS_MEMBER(method) |
| 67 IPC_STRUCT_TRAITS_MEMBER(headers) | 72 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 68 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) | 73 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) |
| 69 IPC_STRUCT_TRAITS_MEMBER(blob_size) | 74 IPC_STRUCT_TRAITS_MEMBER(blob_size) |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 int64_t /* registration_id */, | 200 int64_t /* registration_id */, |
| 196 bool /* enable */) | 201 bool /* enable */) |
| 197 | 202 |
| 198 // Asks the browser to get navigation preload state for a registration. | 203 // Asks the browser to get navigation preload state for a registration. |
| 199 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetNavigationPreloadState, | 204 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetNavigationPreloadState, |
| 200 int /* thread_id */, | 205 int /* thread_id */, |
| 201 int /* request_id */, | 206 int /* request_id */, |
| 202 int /* provider_id */, | 207 int /* provider_id */, |
| 203 int64_t /* registration_id */) | 208 int64_t /* registration_id */) |
| 204 | 209 |
| 210 // Asks the browser to set navigation preload header value for a registration. | |
| 211 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_SetNavigationPreloadHeader, | |
| 212 int /* thread_id */, | |
| 213 int /* request_id */, | |
| 214 int /* provider_id */, | |
| 215 int64_t /* registration_id */, | |
| 216 std::string /* header_value */) | |
|
Tom Sepez
2016/10/31 20:09:49
Are there any constraints on the values that can b
falken
2016/11/01 00:35:28
Good question. Yes, the current patchset calls net
| |
| 217 | |
| 205 // Sends ExtendableMessageEvent to a service worker (renderer->browser). | 218 // Sends ExtendableMessageEvent to a service worker (renderer->browser). |
| 206 IPC_MESSAGE_CONTROL5( | 219 IPC_MESSAGE_CONTROL5( |
| 207 ServiceWorkerHostMsg_PostMessageToWorker, | 220 ServiceWorkerHostMsg_PostMessageToWorker, |
| 208 int /* handle_id */, | 221 int /* handle_id */, |
| 209 int /* provider_id */, | 222 int /* provider_id */, |
| 210 base::string16 /* message */, | 223 base::string16 /* message */, |
| 211 url::Origin /* source_origin */, | 224 url::Origin /* source_origin */, |
| 212 std::vector<int> /* sent_message_ports */) | 225 std::vector<int> /* sent_message_ports */) |
| 213 | 226 |
| 214 // Informs the browser of a new ServiceWorkerProvider in the child process, | 227 // Informs the browser of a new ServiceWorkerProvider in the child process, |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 494 int /* thread_id */, | 507 int /* thread_id */, |
| 495 int /* request_id */) | 508 int /* request_id */) |
| 496 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_EnableNavigationPreloadError, | 509 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_EnableNavigationPreloadError, |
| 497 int /* thread_id */, | 510 int /* thread_id */, |
| 498 int /* request_id */, | 511 int /* request_id */, |
| 499 blink::WebServiceWorkerError::ErrorType /* code */, | 512 blink::WebServiceWorkerError::ErrorType /* code */, |
| 500 std::string /* message */) | 513 std::string /* message */) |
| 501 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_DidGetNavigationPreloadState, | 514 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_DidGetNavigationPreloadState, |
| 502 int /* thread_id */, | 515 int /* thread_id */, |
| 503 int /* request_id */, | 516 int /* request_id */, |
| 504 bool /* enabled */) | 517 content::NavigationPreloadState /* state */) |
| 505 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GetNavigationPreloadStateError, | 518 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GetNavigationPreloadStateError, |
| 506 int /* thread_id */, | 519 int /* thread_id */, |
| 507 int /* request_id */, | 520 int /* request_id */, |
| 508 blink::WebServiceWorkerError::ErrorType /* code */, | 521 blink::WebServiceWorkerError::ErrorType /* code */, |
| 509 std::string /* message */) | 522 std::string /* message */) |
| 523 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidSetNavigationPreloadHeader, | |
| 524 int /* thread_id */, | |
| 525 int /* request_id */) | |
| 526 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetNavigationPreloadHeaderError, | |
| 527 int /* thread_id */, | |
| 528 int /* request_id */, | |
| 529 blink::WebServiceWorkerError::ErrorType /* code */, | |
| 530 std::string /* message */) | |
| 510 | 531 |
| 511 // Sends MessageEvent to a client document (browser->renderer). | 532 // Sends MessageEvent to a client document (browser->renderer). |
| 512 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, | 533 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, |
| 513 ServiceWorkerMsg_MessageToDocument_Params) | 534 ServiceWorkerMsg_MessageToDocument_Params) |
| 514 | 535 |
| 515 // Sent via EmbeddedWorker to dispatch events. | 536 // Sent via EmbeddedWorker to dispatch events. |
| 516 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, | 537 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, |
| 517 int /* request_id */) | 538 int /* request_id */) |
| 518 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 539 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
| 519 int /* request_id */) | 540 int /* request_id */) |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 573 | 594 |
| 574 // Sent via EmbeddedWorker as a response of NavigateClient. | 595 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 575 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 596 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 576 int /* request_id */, | 597 int /* request_id */, |
| 577 content::ServiceWorkerClientInfo /* client */) | 598 content::ServiceWorkerClientInfo /* client */) |
| 578 | 599 |
| 579 // Sent via EmbeddedWorker as an error response of NavigateClient. | 600 // Sent via EmbeddedWorker as an error response of NavigateClient. |
| 580 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 601 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
| 581 int /* request_id */, | 602 int /* request_id */, |
| 582 GURL /* url */) | 603 GURL /* url */) |
| OLD | NEW |