| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 content::SERVICE_WORKER_FETCH_EVENT_LAST) | 85 content::SERVICE_WORKER_FETCH_EVENT_LAST) |
| 86 | 86 |
| 87 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse) | 87 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse) |
| 88 IPC_STRUCT_TRAITS_MEMBER(url_list) | 88 IPC_STRUCT_TRAITS_MEMBER(url_list) |
| 89 IPC_STRUCT_TRAITS_MEMBER(status_code) | 89 IPC_STRUCT_TRAITS_MEMBER(status_code) |
| 90 IPC_STRUCT_TRAITS_MEMBER(status_text) | 90 IPC_STRUCT_TRAITS_MEMBER(status_text) |
| 91 IPC_STRUCT_TRAITS_MEMBER(response_type) | 91 IPC_STRUCT_TRAITS_MEMBER(response_type) |
| 92 IPC_STRUCT_TRAITS_MEMBER(headers) | 92 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 93 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) | 93 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) |
| 94 IPC_STRUCT_TRAITS_MEMBER(blob_size) | 94 IPC_STRUCT_TRAITS_MEMBER(blob_size) |
| 95 IPC_STRUCT_TRAITS_MEMBER(stream_url) | |
| 96 IPC_STRUCT_TRAITS_MEMBER(error) | 95 IPC_STRUCT_TRAITS_MEMBER(error) |
| 97 IPC_STRUCT_TRAITS_MEMBER(response_time) | 96 IPC_STRUCT_TRAITS_MEMBER(response_time) |
| 98 IPC_STRUCT_TRAITS_MEMBER(is_in_cache_storage) | 97 IPC_STRUCT_TRAITS_MEMBER(is_in_cache_storage) |
| 99 IPC_STRUCT_TRAITS_MEMBER(cache_storage_cache_name) | 98 IPC_STRUCT_TRAITS_MEMBER(cache_storage_cache_name) |
| 100 IPC_STRUCT_TRAITS_MEMBER(cors_exposed_header_names) | 99 IPC_STRUCT_TRAITS_MEMBER(cors_exposed_header_names) |
| 101 IPC_STRUCT_TRAITS_END() | 100 IPC_STRUCT_TRAITS_END() |
| 102 | 101 |
| 103 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) | 102 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) |
| 104 IPC_STRUCT_TRAITS_MEMBER(handle_id) | 103 IPC_STRUCT_TRAITS_MEMBER(handle_id) |
| 105 IPC_STRUCT_TRAITS_MEMBER(url) | 104 IPC_STRUCT_TRAITS_MEMBER(url) |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 int /* handle_id */) | 237 int /* handle_id */) |
| 239 | 238 |
| 240 // Informs the browser that event handling has finished. | 239 // Informs the browser that event handling has finished. |
| 241 // Routed to the target ServiceWorkerVersion. | 240 // Routed to the target ServiceWorkerVersion. |
| 242 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_InstallEventFinished, | 241 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_InstallEventFinished, |
| 243 int /* request_id */, | 242 int /* request_id */, |
| 244 blink::WebServiceWorkerEventResult, | 243 blink::WebServiceWorkerEventResult, |
| 245 bool /* has_fetch_event_handler */, | 244 bool /* has_fetch_event_handler */, |
| 246 base::Time /* dispatch_event_time */) | 245 base::Time /* dispatch_event_time */) |
| 247 | 246 |
| 248 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_FetchEventResponse, | 247 // Returns the response as the result of fetch event. This is used only for blob |
| 248 // to keep the IPC ordering. Mojo IPC is used when the response body is a stream |
| 249 // or is empty, and for the fallback-to-network response. |
| 250 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventResponse, |
| 249 int /* fetch_event_id */, | 251 int /* fetch_event_id */, |
| 250 content::ServiceWorkerFetchEventResult, | |
| 251 content::ServiceWorkerResponse, | 252 content::ServiceWorkerResponse, |
| 252 base::Time /* dispatch_event_time */) | 253 base::Time /* dispatch_event_time */) |
| 253 | 254 |
| 254 // Asks the browser to retrieve client of the sender ServiceWorker. | 255 // Asks the browser to retrieve client of the sender ServiceWorker. |
| 255 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient, | 256 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient, |
| 256 int /* request_id */, | 257 int /* request_id */, |
| 257 std::string /* client_uuid */) | 258 std::string /* client_uuid */) |
| 258 | 259 |
| 259 // Asks the browser to retrieve clients of the sender ServiceWorker. | 260 // Asks the browser to retrieve clients of the sender ServiceWorker. |
| 260 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, | 261 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClients, |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 | 514 |
| 514 // Sent via EmbeddedWorker as a response of NavigateClient. | 515 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 515 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 516 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 516 int /* request_id */, | 517 int /* request_id */, |
| 517 content::ServiceWorkerClientInfo /* client */) | 518 content::ServiceWorkerClientInfo /* client */) |
| 518 | 519 |
| 519 // Sent via EmbeddedWorker as an error response of NavigateClient. | 520 // Sent via EmbeddedWorker as an error response of NavigateClient. |
| 520 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 521 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
| 521 int /* request_id */, | 522 int /* request_id */, |
| 522 GURL /* url */) | 523 GURL /* url */) |
| OLD | NEW |