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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo) | 149 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo) |
150 IPC_STRUCT_TRAITS_MEMBER(request_time) | 150 IPC_STRUCT_TRAITS_MEMBER(request_time) |
151 IPC_STRUCT_TRAITS_MEMBER(response_time) | 151 IPC_STRUCT_TRAITS_MEMBER(response_time) |
152 IPC_STRUCT_TRAITS_MEMBER(headers) | 152 IPC_STRUCT_TRAITS_MEMBER(headers) |
153 IPC_STRUCT_TRAITS_MEMBER(mime_type) | 153 IPC_STRUCT_TRAITS_MEMBER(mime_type) |
154 IPC_STRUCT_TRAITS_MEMBER(charset) | 154 IPC_STRUCT_TRAITS_MEMBER(charset) |
155 IPC_STRUCT_TRAITS_MEMBER(security_info) | 155 IPC_STRUCT_TRAITS_MEMBER(security_info) |
156 IPC_STRUCT_TRAITS_MEMBER(has_major_certificate_errors) | 156 IPC_STRUCT_TRAITS_MEMBER(has_major_certificate_errors) |
157 IPC_STRUCT_TRAITS_MEMBER(content_length) | 157 IPC_STRUCT_TRAITS_MEMBER(content_length) |
158 IPC_STRUCT_TRAITS_MEMBER(encoded_data_length) | 158 IPC_STRUCT_TRAITS_MEMBER(encoded_data_length) |
| 159 IPC_STRUCT_TRAITS_MEMBER(encoded_body_length) |
159 IPC_STRUCT_TRAITS_MEMBER(appcache_id) | 160 IPC_STRUCT_TRAITS_MEMBER(appcache_id) |
160 IPC_STRUCT_TRAITS_MEMBER(appcache_manifest_url) | 161 IPC_STRUCT_TRAITS_MEMBER(appcache_manifest_url) |
161 IPC_STRUCT_TRAITS_MEMBER(load_timing) | 162 IPC_STRUCT_TRAITS_MEMBER(load_timing) |
162 IPC_STRUCT_TRAITS_MEMBER(devtools_info) | 163 IPC_STRUCT_TRAITS_MEMBER(devtools_info) |
163 IPC_STRUCT_TRAITS_MEMBER(download_file_path) | 164 IPC_STRUCT_TRAITS_MEMBER(download_file_path) |
164 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_spdy) | 165 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_spdy) |
165 IPC_STRUCT_TRAITS_MEMBER(was_npn_negotiated) | 166 IPC_STRUCT_TRAITS_MEMBER(was_npn_negotiated) |
166 IPC_STRUCT_TRAITS_MEMBER(was_alternate_protocol_available) | 167 IPC_STRUCT_TRAITS_MEMBER(was_alternate_protocol_available) |
167 IPC_STRUCT_TRAITS_MEMBER(connection_info) | 168 IPC_STRUCT_TRAITS_MEMBER(connection_info) |
168 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_proxy) | 169 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_proxy) |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // | 294 // |
294 IPC_MESSAGE_CONTROL4(ResourceMsg_SetDataBuffer, | 295 IPC_MESSAGE_CONTROL4(ResourceMsg_SetDataBuffer, |
295 int /* request_id */, | 296 int /* request_id */, |
296 base::SharedMemoryHandle /* shm_handle */, | 297 base::SharedMemoryHandle /* shm_handle */, |
297 int /* shm_size */, | 298 int /* shm_size */, |
298 base::ProcessId /* renderer_pid */) | 299 base::ProcessId /* renderer_pid */) |
299 | 300 |
300 // Sent when a chunk of data from a resource request is ready, and the resource | 301 // Sent when a chunk of data from a resource request is ready, and the resource |
301 // is expected to be small enough to fit in the inlined buffer. | 302 // is expected to be small enough to fit in the inlined buffer. |
302 // The data is sent as a part of IPC message. | 303 // The data is sent as a part of IPC message. |
303 IPC_MESSAGE_CONTROL3(ResourceMsg_InlinedDataChunkReceived, | 304 IPC_MESSAGE_CONTROL4(ResourceMsg_InlinedDataChunkReceived, |
304 int /* request_id */, | 305 int /* request_id */, |
305 std::vector<char> /* data */, | 306 std::vector<char> /* data */, |
306 int /* encoded_data_length */) | 307 int /* encoded_data_length */, |
| 308 int /* encoded_body_length */) |
307 | 309 |
308 // Sent when some data from a resource request is ready. The data offset and | 310 // Sent when some data from a resource request is ready. The data offset and |
309 // length specify a byte range into the shared memory buffer provided by the | 311 // length specify a byte range into the shared memory buffer provided by the |
310 // SetDataBuffer message. | 312 // SetDataBuffer message. |
311 IPC_MESSAGE_CONTROL4(ResourceMsg_DataReceived, | 313 IPC_MESSAGE_CONTROL5(ResourceMsg_DataReceived, |
312 int /* request_id */, | 314 int /* request_id */, |
313 int /* data_offset */, | 315 int /* data_offset */, |
314 int /* data_length */, | 316 int /* data_length */, |
315 int /* encoded_data_length */) | 317 int /* encoded_data_length */, |
| 318 int /* encoded_body_length */) |
316 | 319 |
317 // Sent when some data from a resource request has been downloaded to | 320 // Sent when some data from a resource request has been downloaded to |
318 // file. This is only called in the 'download_to_file' case and replaces | 321 // file. This is only called in the 'download_to_file' case and replaces |
319 // ResourceMsg_DataReceived in the call sequence in that case. | 322 // ResourceMsg_DataReceived in the call sequence in that case. |
320 IPC_MESSAGE_CONTROL3(ResourceMsg_DataDownloaded, | 323 IPC_MESSAGE_CONTROL3(ResourceMsg_DataDownloaded, |
321 int /* request_id */, | 324 int /* request_id */, |
322 int /* data_len */, | 325 int /* data_len */, |
323 int /* encoded_data_length */) | 326 int /* encoded_data_length */) |
324 | 327 |
325 // Sent when the request has been completed. | 328 // Sent when the request has been completed. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 | 369 |
367 // Sent when the renderer process deletes a resource loader. | 370 // Sent when the renderer process deletes a resource loader. |
368 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 371 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
369 int /* request_id */) | 372 int /* request_id */) |
370 | 373 |
371 // Sent by the renderer when a resource request changes priority. | 374 // Sent by the renderer when a resource request changes priority. |
372 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 375 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
373 int /* request_id */, | 376 int /* request_id */, |
374 net::RequestPriority, | 377 net::RequestPriority, |
375 int /* intra_priority_value */) | 378 int /* intra_priority_value */) |
OLD | NEW |