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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // | 338 // |
339 IPC_MESSAGE_CONTROL4(ResourceMsg_SetDataBuffer, | 339 IPC_MESSAGE_CONTROL4(ResourceMsg_SetDataBuffer, |
340 int /* request_id */, | 340 int /* request_id */, |
341 base::SharedMemoryHandle /* shm_handle */, | 341 base::SharedMemoryHandle /* shm_handle */, |
342 int /* shm_size */, | 342 int /* shm_size */, |
343 base::ProcessId /* renderer_pid */) | 343 base::ProcessId /* renderer_pid */) |
344 | 344 |
345 // Sent when some data from a resource request is ready. The data offset and | 345 // Sent when some data from a resource request is ready. The data offset and |
346 // length specify a byte range into the shared memory buffer provided by the | 346 // length specify a byte range into the shared memory buffer provided by the |
347 // SetDataBuffer message. | 347 // SetDataBuffer message. |
348 // TODO(erikchen): This dummy variable is temporary and is only intended to be | 348 IPC_MESSAGE_CONTROL4(ResourceMsg_DataReceived, |
349 // present for one Canary release. http://crbug.com/527588. | |
350 IPC_MESSAGE_CONTROL5(ResourceMsg_DataReceived, | |
351 int /* request_id */, | 349 int /* request_id */, |
352 int /* dummy variable */, | |
353 int /* data_offset */, | 350 int /* data_offset */, |
354 int /* data_length */, | 351 int /* data_length */, |
355 int /* encoded_data_length */) | 352 int /* encoded_data_length */) |
356 | 353 |
357 // Sent when some data from a resource request has been downloaded to | 354 // Sent when some data from a resource request has been downloaded to |
358 // file. This is only called in the 'download_to_file' case and replaces | 355 // file. This is only called in the 'download_to_file' case and replaces |
359 // ResourceMsg_DataReceived in the call sequence in that case. | 356 // ResourceMsg_DataReceived in the call sequence in that case. |
360 IPC_MESSAGE_CONTROL3(ResourceMsg_DataDownloaded, | 357 IPC_MESSAGE_CONTROL3(ResourceMsg_DataDownloaded, |
361 int /* request_id */, | 358 int /* request_id */, |
362 int /* data_len */, | 359 int /* data_len */, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 | 403 |
407 // Sent when the renderer process deletes a resource loader. | 404 // Sent when the renderer process deletes a resource loader. |
408 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 405 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
409 int /* request_id */) | 406 int /* request_id */) |
410 | 407 |
411 // Sent by the renderer when a resource request changes priority. | 408 // Sent by the renderer when a resource request changes priority. |
412 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 409 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
413 int /* request_id */, | 410 int /* request_id */, |
414 net::RequestPriority, | 411 net::RequestPriority, |
415 int /* intra_priority_value */) | 412 int /* intra_priority_value */) |
OLD | NEW |