| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 int /* encoded_data_length */) | 295 int /* encoded_data_length */) |
| 296 | 296 |
| 297 // Sent when the request has been completed. | 297 // Sent when the request has been completed. |
| 298 IPC_MESSAGE_CONTROL2(ResourceMsg_RequestComplete, | 298 IPC_MESSAGE_CONTROL2(ResourceMsg_RequestComplete, |
| 299 int /* request_id */, | 299 int /* request_id */, |
| 300 ResourceMsg_RequestCompleteData) | 300 ResourceMsg_RequestCompleteData) |
| 301 | 301 |
| 302 // Resource messages sent from the renderer to the browser. | 302 // Resource messages sent from the renderer to the browser. |
| 303 | 303 |
| 304 // Makes a resource request via the browser. | 304 // Makes a resource request via the browser. |
| 305 IPC_MESSAGE_ROUTED2(ResourceHostMsg_RequestResource, | 305 IPC_MESSAGE_CONTROL3(ResourceHostMsg_RequestResource, |
| 306 int /* routing_id */, |
| 306 int /* request_id */, | 307 int /* request_id */, |
| 307 ResourceHostMsg_Request) | 308 ResourceHostMsg_Request) |
| 308 | 309 |
| 309 // Cancels a resource request with the ID given as the parameter. | 310 // Cancels a resource request with the ID given as the parameter. |
| 310 IPC_MESSAGE_CONTROL1(ResourceHostMsg_CancelRequest, | 311 IPC_MESSAGE_CONTROL1(ResourceHostMsg_CancelRequest, |
| 311 int /* request_id */) | 312 int /* request_id */) |
| 312 | 313 |
| 313 // Follows a redirect that occured for the resource request with the ID given | 314 // Follows a redirect that occured for the resource request with the ID given |
| 314 // as the parameter. | 315 // as the parameter. |
| 315 IPC_MESSAGE_CONTROL3(ResourceHostMsg_FollowRedirect, | 316 IPC_MESSAGE_CONTROL3(ResourceHostMsg_FollowRedirect, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 339 | 340 |
| 340 // Sent when the renderer process deletes a resource loader. | 341 // Sent when the renderer process deletes a resource loader. |
| 341 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 342 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 342 int /* request_id */) | 343 int /* request_id */) |
| 343 | 344 |
| 344 // Sent by the renderer when a resource request changes priority. | 345 // Sent by the renderer when a resource request changes priority. |
| 345 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 346 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
| 346 int /* request_id */, | 347 int /* request_id */, |
| 347 net::RequestPriority, | 348 net::RequestPriority, |
| 348 int /* intra_priority_value */) | 349 int /* intra_priority_value */) |
| OLD | NEW |