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

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

Issue 23696002: Propagate the encoded data length through OnDownloadData delegate method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 months 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
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 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // SetDataBuffer message. 248 // SetDataBuffer message.
249 IPC_MESSAGE_ROUTED4(ResourceMsg_DataReceived, 249 IPC_MESSAGE_ROUTED4(ResourceMsg_DataReceived,
250 int /* request_id */, 250 int /* request_id */,
251 int /* data_offset */, 251 int /* data_offset */,
252 int /* data_length */, 252 int /* data_length */,
253 int /* encoded_data_length */) 253 int /* encoded_data_length */)
254 254
255 // Sent when some data from a resource request has been downloaded to 255 // Sent when some data from a resource request has been downloaded to
256 // file. This is only called in the 'download_to_file' case and replaces 256 // file. This is only called in the 'download_to_file' case and replaces
257 // ResourceMsg_DataReceived in the call sequence in that case. 257 // ResourceMsg_DataReceived in the call sequence in that case.
258 IPC_MESSAGE_ROUTED2(ResourceMsg_DataDownloaded, 258 IPC_MESSAGE_ROUTED3(ResourceMsg_DataDownloaded,
259 int /* request_id */, 259 int /* request_id */,
260 int /* data_len */) 260 int /* data_len */,
261 int /* encoded_data_length */)
261 262
262 // Sent when the request has been completed. 263 // Sent when the request has been completed.
263 IPC_MESSAGE_ROUTED5(ResourceMsg_RequestComplete, 264 IPC_MESSAGE_ROUTED5(ResourceMsg_RequestComplete,
264 int /* request_id */, 265 int /* request_id */,
265 int /* error_code */, 266 int /* error_code */,
266 bool /* was_ignored_by_handler */, 267 bool /* was_ignored_by_handler */,
267 std::string /* security info */, 268 std::string /* security info */,
268 base::TimeTicks /* completion_time */) 269 base::TimeTicks /* completion_time */)
269 270
270 // Resource messages sent from the renderer to the browser. 271 // Resource messages sent from the renderer to the browser.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 int /* request_id */) 307 int /* request_id */)
307 308
308 // Sent when the renderer process deletes a resource loader. 309 // Sent when the renderer process deletes a resource loader.
309 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 310 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
310 int /* request_id */) 311 int /* request_id */)
311 312
312 // Sent by the renderer when a resource request changes priority. 313 // Sent by the renderer when a resource request changes priority.
313 IPC_MESSAGE_ROUTED2(ResourceHostMsg_DidChangePriority, 314 IPC_MESSAGE_ROUTED2(ResourceHostMsg_DidChangePriority,
314 int /* request_id */, 315 int /* request_id */,
315 net::RequestPriority) 316 net::RequestPriority)
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/renderer/media/buffered_resource_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698