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 #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 Loading... |
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 Loading... |
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) |
OLD | NEW |