| 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 | 248 |
| 249 // Sent as upload progress is being made. | 249 // Sent as upload progress is being made. |
| 250 IPC_MESSAGE_CONTROL3(ResourceMsg_UploadProgress, | 250 IPC_MESSAGE_CONTROL3(ResourceMsg_UploadProgress, |
| 251 int /* request_id */, | 251 int /* request_id */, |
| 252 int64 /* position */, | 252 int64 /* position */, |
| 253 int64 /* size */) | 253 int64 /* size */) |
| 254 | 254 |
| 255 // Sent when the request has been redirected. The receiver is expected to | 255 // Sent when the request has been redirected. The receiver is expected to |
| 256 // respond with either a FollowRedirect message (if the redirect is to be | 256 // respond with either a FollowRedirect message (if the redirect is to be |
| 257 // followed) or a CancelRequest message (if it should not be followed). | 257 // followed) or a CancelRequest message (if it should not be followed). |
| 258 IPC_MESSAGE_CONTROL3(ResourceMsg_ReceivedRedirect, | 258 IPC_MESSAGE_CONTROL4(ResourceMsg_ReceivedRedirect, |
| 259 int /* request_id */, | 259 int /* request_id */, |
| 260 GURL /* new_url */, | 260 GURL /* new_url */, |
| 261 GURL /* new_first_party_for_cookies */, |
| 261 content::ResourceResponseHead) | 262 content::ResourceResponseHead) |
| 262 | 263 |
| 263 // Sent to set the shared memory buffer to be used to transmit response data to | 264 // Sent to set the shared memory buffer to be used to transmit response data to |
| 264 // the renderer. Subsequent DataReceived messages refer to byte ranges in the | 265 // the renderer. Subsequent DataReceived messages refer to byte ranges in the |
| 265 // shared memory buffer. The shared memory buffer should be retained by the | 266 // shared memory buffer. The shared memory buffer should be retained by the |
| 266 // renderer until the resource request completes. | 267 // renderer until the resource request completes. |
| 267 // | 268 // |
| 268 // NOTE: The shared memory handle should already be mapped into the process | 269 // NOTE: The shared memory handle should already be mapped into the process |
| 269 // that receives this message. | 270 // that receives this message. |
| 270 // | 271 // |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 IPC_MESSAGE_ROUTED2(ResourceHostMsg_RequestResource, | 306 IPC_MESSAGE_ROUTED2(ResourceHostMsg_RequestResource, |
| 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_CONTROL1(ResourceHostMsg_FollowRedirect, |
| 316 int /* request_id */, | 317 int /* request_id */) |
| 317 bool /* has_new_first_party_for_cookies */, | |
| 318 GURL /* new_first_party_for_cookies */) | |
| 319 | 318 |
| 320 // Makes a synchronous resource request via the browser. | 319 // Makes a synchronous resource request via the browser. |
| 321 IPC_SYNC_MESSAGE_ROUTED2_1(ResourceHostMsg_SyncLoad, | 320 IPC_SYNC_MESSAGE_ROUTED2_1(ResourceHostMsg_SyncLoad, |
| 322 int /* request_id */, | 321 int /* request_id */, |
| 323 ResourceHostMsg_Request, | 322 ResourceHostMsg_Request, |
| 324 content::SyncLoadResult) | 323 content::SyncLoadResult) |
| 325 | 324 |
| 326 // Sent when the renderer process is done processing a DataReceived | 325 // Sent when the renderer process is done processing a DataReceived |
| 327 // message. | 326 // message. |
| 328 IPC_MESSAGE_CONTROL1(ResourceHostMsg_DataReceived_ACK, | 327 IPC_MESSAGE_CONTROL1(ResourceHostMsg_DataReceived_ACK, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 339 | 338 |
| 340 // Sent when the renderer process deletes a resource loader. | 339 // Sent when the renderer process deletes a resource loader. |
| 341 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 340 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 342 int /* request_id */) | 341 int /* request_id */) |
| 343 | 342 |
| 344 // Sent by the renderer when a resource request changes priority. | 343 // Sent by the renderer when a resource request changes priority. |
| 345 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 344 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
| 346 int /* request_id */, | 345 int /* request_id */, |
| 347 net::RequestPriority, | 346 net::RequestPriority, |
| 348 int /* intra_priority_value */) | 347 int /* intra_priority_value */) |
| OLD | NEW |