Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Side by Side Diff: content/common/resource_messages.h

Issue 2506363005: Send encoded_body_length to renderer when response completed (3/3) (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // 302 //
303 IPC_MESSAGE_CONTROL4(ResourceMsg_SetDataBuffer, 303 IPC_MESSAGE_CONTROL4(ResourceMsg_SetDataBuffer,
304 int /* request_id */, 304 int /* request_id */,
305 base::SharedMemoryHandle /* shm_handle */, 305 base::SharedMemoryHandle /* shm_handle */,
306 int /* shm_size */, 306 int /* shm_size */,
307 base::ProcessId /* renderer_pid */) 307 base::ProcessId /* renderer_pid */)
308 308
309 // Sent when a chunk of data from a resource request is ready, and the resource 309 // Sent when a chunk of data from a resource request is ready, and the resource
310 // is expected to be small enough to fit in the inlined buffer. 310 // is expected to be small enough to fit in the inlined buffer.
311 // The data is sent as a part of IPC message. 311 // The data is sent as a part of IPC message.
312 IPC_MESSAGE_CONTROL4(ResourceMsg_InlinedDataChunkReceived, 312 IPC_MESSAGE_CONTROL3(ResourceMsg_InlinedDataChunkReceived,
313 int /* request_id */, 313 int /* request_id */,
314 std::vector<char> /* data */, 314 std::vector<char> /* data */,
315 int /* encoded_data_length */, 315 int /* encoded_data_length */)
316 int /* encoded_body_length */)
317 316
318 // 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
319 // 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
320 // SetDataBuffer message. 319 // SetDataBuffer message.
321 IPC_MESSAGE_CONTROL5(ResourceMsg_DataReceived, 320 IPC_MESSAGE_CONTROL4(ResourceMsg_DataReceived,
322 int /* request_id */, 321 int /* request_id */,
323 int /* data_offset */, 322 int /* data_offset */,
324 int /* data_length */, 323 int /* data_length */,
325 int /* encoded_data_length */, 324 int /* encoded_data_length */)
326 int /* encoded_body_length */)
327 325
328 // Sent when some data from a resource request has been downloaded to 326 // Sent when some data from a resource request has been downloaded to
329 // file. This is only called in the 'download_to_file' case and replaces 327 // file. This is only called in the 'download_to_file' case and replaces
330 // ResourceMsg_DataReceived in the call sequence in that case. 328 // ResourceMsg_DataReceived in the call sequence in that case.
331 IPC_MESSAGE_CONTROL3(ResourceMsg_DataDownloaded, 329 IPC_MESSAGE_CONTROL3(ResourceMsg_DataDownloaded,
332 int /* request_id */, 330 int /* request_id */,
333 int /* data_len */, 331 int /* data_len */,
334 int /* encoded_data_length */) 332 int /* encoded_data_length */)
335 333
336 // Sent when the request has been completed. 334 // Sent when the request has been completed.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 371
374 // Sent when the renderer process deletes a resource loader. 372 // Sent when the renderer process deletes a resource loader.
375 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 373 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
376 int /* request_id */) 374 int /* request_id */)
377 375
378 // Sent by the renderer when a resource request changes priority. 376 // Sent by the renderer when a resource request changes priority.
379 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 377 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
380 int /* request_id */, 378 int /* request_id */,
381 net::RequestPriority, 379 net::RequestPriority,
382 int /* intra_priority_value */) 380 int /* intra_priority_value */)
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698