| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // IPC messages for resource loading. | 5 // IPC messages for resource loading. |
| 6 // | 6 // |
| 7 // NOTE: All messages must send an |int request_id| as their first parameter. | 7 // NOTE: All messages must send an |int request_id| as their first parameter. |
| 8 | 8 |
| 9 // Multiply-included message file, hence no include guard. | 9 // Multiply-included message file, hence no include guard. |
| 10 | 10 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo) | 152 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo) |
| 153 IPC_STRUCT_TRAITS_MEMBER(request_time) | 153 IPC_STRUCT_TRAITS_MEMBER(request_time) |
| 154 IPC_STRUCT_TRAITS_MEMBER(response_time) | 154 IPC_STRUCT_TRAITS_MEMBER(response_time) |
| 155 IPC_STRUCT_TRAITS_MEMBER(headers) | 155 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 156 IPC_STRUCT_TRAITS_MEMBER(mime_type) | 156 IPC_STRUCT_TRAITS_MEMBER(mime_type) |
| 157 IPC_STRUCT_TRAITS_MEMBER(charset) | 157 IPC_STRUCT_TRAITS_MEMBER(charset) |
| 158 IPC_STRUCT_TRAITS_MEMBER(security_info) | 158 IPC_STRUCT_TRAITS_MEMBER(security_info) |
| 159 IPC_STRUCT_TRAITS_MEMBER(has_major_certificate_errors) | 159 IPC_STRUCT_TRAITS_MEMBER(has_major_certificate_errors) |
| 160 IPC_STRUCT_TRAITS_MEMBER(content_length) | 160 IPC_STRUCT_TRAITS_MEMBER(content_length) |
| 161 IPC_STRUCT_TRAITS_MEMBER(encoded_data_length) | 161 IPC_STRUCT_TRAITS_MEMBER(encoded_data_length) |
| 162 IPC_STRUCT_TRAITS_MEMBER(encoded_body_length) |
| 162 IPC_STRUCT_TRAITS_MEMBER(appcache_id) | 163 IPC_STRUCT_TRAITS_MEMBER(appcache_id) |
| 163 IPC_STRUCT_TRAITS_MEMBER(appcache_manifest_url) | 164 IPC_STRUCT_TRAITS_MEMBER(appcache_manifest_url) |
| 164 IPC_STRUCT_TRAITS_MEMBER(load_timing) | 165 IPC_STRUCT_TRAITS_MEMBER(load_timing) |
| 165 IPC_STRUCT_TRAITS_MEMBER(devtools_info) | 166 IPC_STRUCT_TRAITS_MEMBER(devtools_info) |
| 166 IPC_STRUCT_TRAITS_MEMBER(download_file_path) | 167 IPC_STRUCT_TRAITS_MEMBER(download_file_path) |
| 167 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_spdy) | 168 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_spdy) |
| 168 IPC_STRUCT_TRAITS_MEMBER(was_npn_negotiated) | 169 IPC_STRUCT_TRAITS_MEMBER(was_npn_negotiated) |
| 169 IPC_STRUCT_TRAITS_MEMBER(was_alternate_protocol_available) | 170 IPC_STRUCT_TRAITS_MEMBER(was_alternate_protocol_available) |
| 170 IPC_STRUCT_TRAITS_MEMBER(connection_info) | 171 IPC_STRUCT_TRAITS_MEMBER(connection_info) |
| 171 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_proxy) | 172 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_proxy) |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 // | 301 // |
| 301 IPC_MESSAGE_CONTROL4(ResourceMsg_SetDataBuffer, | 302 IPC_MESSAGE_CONTROL4(ResourceMsg_SetDataBuffer, |
| 302 int /* request_id */, | 303 int /* request_id */, |
| 303 base::SharedMemoryHandle /* shm_handle */, | 304 base::SharedMemoryHandle /* shm_handle */, |
| 304 int /* shm_size */, | 305 int /* shm_size */, |
| 305 base::ProcessId /* renderer_pid */) | 306 base::ProcessId /* renderer_pid */) |
| 306 | 307 |
| 307 // Sent when a chunk of data from a resource request is ready, and the resource | 308 // Sent when a chunk of data from a resource request is ready, and the resource |
| 308 // is expected to be small enough to fit in the inlined buffer. | 309 // is expected to be small enough to fit in the inlined buffer. |
| 309 // The data is sent as a part of IPC message. | 310 // The data is sent as a part of IPC message. |
| 310 IPC_MESSAGE_CONTROL3(ResourceMsg_InlinedDataChunkReceived, | 311 IPC_MESSAGE_CONTROL4(ResourceMsg_InlinedDataChunkReceived, |
| 311 int /* request_id */, | 312 int /* request_id */, |
| 312 std::vector<char> /* data */, | 313 std::vector<char> /* data */, |
| 313 int /* encoded_data_length */) | 314 int /* encoded_data_length */, |
| 315 int /* encoded_body_length */) |
| 314 | 316 |
| 315 // Sent when some data from a resource request is ready. The data offset and | 317 // Sent when some data from a resource request is ready. The data offset and |
| 316 // length specify a byte range into the shared memory buffer provided by the | 318 // length specify a byte range into the shared memory buffer provided by the |
| 317 // SetDataBuffer message. | 319 // SetDataBuffer message. |
| 318 IPC_MESSAGE_CONTROL4(ResourceMsg_DataReceived, | 320 IPC_MESSAGE_CONTROL5(ResourceMsg_DataReceived, |
| 319 int /* request_id */, | 321 int /* request_id */, |
| 320 int /* data_offset */, | 322 int /* data_offset */, |
| 321 int /* data_length */, | 323 int /* data_length */, |
| 322 int /* encoded_data_length */) | 324 int /* encoded_data_length */, |
| 325 int /* encoded_body_length */) |
| 323 | 326 |
| 324 // Sent when some data from a resource request has been downloaded to | 327 // Sent when some data from a resource request has been downloaded to |
| 325 // file. This is only called in the 'download_to_file' case and replaces | 328 // file. This is only called in the 'download_to_file' case and replaces |
| 326 // ResourceMsg_DataReceived in the call sequence in that case. | 329 // ResourceMsg_DataReceived in the call sequence in that case. |
| 327 IPC_MESSAGE_CONTROL3(ResourceMsg_DataDownloaded, | 330 IPC_MESSAGE_CONTROL3(ResourceMsg_DataDownloaded, |
| 328 int /* request_id */, | 331 int /* request_id */, |
| 329 int /* data_len */, | 332 int /* data_len */, |
| 330 int /* encoded_data_length */) | 333 int /* encoded_data_length */) |
| 331 | 334 |
| 332 // Sent when the request has been completed. | 335 // Sent when the request has been completed. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 376 |
| 374 // Sent when the renderer process deletes a resource loader. | 377 // Sent when the renderer process deletes a resource loader. |
| 375 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 378 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 376 int /* request_id */) | 379 int /* request_id */) |
| 377 | 380 |
| 378 // Sent by the renderer when a resource request changes priority. | 381 // Sent by the renderer when a resource request changes priority. |
| 379 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 382 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
| 380 int /* request_id */, | 383 int /* request_id */, |
| 381 net::RequestPriority, | 384 net::RequestPriority, |
| 382 int /* intra_priority_value */) | 385 int /* intra_priority_value */) |
| OLD | NEW |