| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
| 6 // header guard. | 6 // header guard. |
| 7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // Sent when the headers are available for a resource request. | 296 // Sent when the headers are available for a resource request. |
| 297 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, | 297 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, |
| 298 int /* request_id */, | 298 int /* request_id */, |
| 299 ResourceResponseHead) | 299 ResourceResponseHead) |
| 300 | 300 |
| 301 // Sent when cached metadata from a resource request is ready. | 301 // Sent when cached metadata from a resource request is ready. |
| 302 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedCachedMetadata, | 302 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedCachedMetadata, |
| 303 int /* request_id */, | 303 int /* request_id */, |
| 304 std::vector<char> /* data */) | 304 std::vector<char> /* data */) |
| 305 | 305 |
| 306 // Sent as download progress is being made, size of the resource may be | |
| 307 // unknown, in that case |size| is -1. | |
| 308 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_DownloadProgress, | |
| 309 int /* request_id */, | |
| 310 int64 /* position */, | |
| 311 int64 /* size */) | |
| 312 | |
| 313 // Sent as upload progress is being made. | 306 // Sent as upload progress is being made. |
| 314 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_UploadProgress, | 307 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_UploadProgress, |
| 315 int /* request_id */, | 308 int /* request_id */, |
| 316 int64 /* position */, | 309 int64 /* position */, |
| 317 int64 /* size */) | 310 int64 /* size */) |
| 318 | 311 |
| 319 // Sent when the request has been redirected. The receiver is expected to | 312 // Sent when the request has been redirected. The receiver is expected to |
| 320 // respond with either a FollowRedirect message (if the redirect is to be | 313 // respond with either a FollowRedirect message (if the redirect is to be |
| 321 // followed) or a CancelRequest message (if it should not be followed). | 314 // followed) or a CancelRequest message (if it should not be followed). |
| 322 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_ReceivedRedirect, | 315 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_ReceivedRedirect, |
| 323 int /* request_id */, | 316 int /* request_id */, |
| 324 GURL /* new_url */, | 317 GURL /* new_url */, |
| 325 ResourceResponseHead) | 318 ResourceResponseHead) |
| 326 | 319 |
| 327 // Sent when some data from a resource request is ready. The handle should | 320 // Sent when some data from a resource request is ready. The handle should |
| 328 // already be mapped into the process that receives this message. | 321 // already be mapped into the process that receives this message. |
| 329 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_DataReceived, | 322 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_DataReceived, |
| 330 int /* request_id */, | 323 int /* request_id */, |
| 331 base::SharedMemoryHandle /* data */, | 324 base::SharedMemoryHandle /* data */, |
| 332 int /* data_len */) | 325 int /* data_len */) |
| 333 | 326 |
| 327 // Sent when some data from a resource request has been downloaded to |
| 328 // file. This is only called in the 'download_to_file' case and replaces |
| 329 // ViewMsg_Resource_DataReceived in the call sequence in that case. |
| 330 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_DataDownloaded, |
| 331 int /* request_id */, |
| 332 int /* data_len */) |
| 333 |
| 334 // Sent when the request has been completed. | 334 // Sent when the request has been completed. |
| 335 IPC_MESSAGE_ROUTED4(ViewMsg_Resource_RequestComplete, | 335 IPC_MESSAGE_ROUTED4(ViewMsg_Resource_RequestComplete, |
| 336 int /* request_id */, | 336 int /* request_id */, |
| 337 URLRequestStatus /* status */, | 337 URLRequestStatus /* status */, |
| 338 std::string /* security info */, | 338 std::string /* security info */, |
| 339 base::Time /* completion_time */) | 339 base::Time /* completion_time */) |
| 340 | 340 |
| 341 // Sent when user prompting is required before a ViewHostMsg_GetCookies | 341 // Sent when user prompting is required before a ViewHostMsg_GetCookies |
| 342 // message can complete. This message indicates that the renderer should | 342 // message can complete. This message indicates that the renderer should |
| 343 // pump messages while waiting for cookies. | 343 // pump messages while waiting for cookies. |
| (...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1855 // Get the CPBrowsingContext associated with the renderer sending this | 1855 // Get the CPBrowsingContext associated with the renderer sending this |
| 1856 // message. | 1856 // message. |
| 1857 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPBrowsingContext, | 1857 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPBrowsingContext, |
| 1858 uint32 /* context */) | 1858 uint32 /* context */) |
| 1859 | 1859 |
| 1860 // Sent when the renderer process is done processing a DataReceived | 1860 // Sent when the renderer process is done processing a DataReceived |
| 1861 // message. | 1861 // message. |
| 1862 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, | 1862 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, |
| 1863 int /* request_id */) | 1863 int /* request_id */) |
| 1864 | 1864 |
| 1865 // Sent when the renderer has processed a DataDownloaded message. |
| 1866 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataDownloaded_ACK, |
| 1867 int /* request_id */) |
| 1868 |
| 1869 // Sent when the renderer process deletes a resource loader. |
| 1870 IPC_MESSAGE_CONTROL1(ViewHostMsg_ResourceLoaderDeleted, |
| 1871 int /* request_id */) |
| 1872 |
| 1865 // Sent when a provisional load on the main frame redirects. | 1873 // Sent when a provisional load on the main frame redirects. |
| 1866 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad, | 1874 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad, |
| 1867 int /* page_id */, | 1875 int /* page_id */, |
| 1868 GURL /* last url */, | 1876 GURL /* last url */, |
| 1869 GURL /* url redirected to */) | 1877 GURL /* url redirected to */) |
| 1870 | 1878 |
| 1871 // Sent by the renderer process to acknowledge receipt of a | 1879 // Sent by the renderer process to acknowledge receipt of a |
| 1872 // DownloadProgress message. | |
| 1873 IPC_MESSAGE_ROUTED1(ViewHostMsg_DownloadProgress_ACK, | |
| 1874 int /* request_id */) | |
| 1875 | |
| 1876 // Sent by the renderer process to acknowledge receipt of a | |
| 1877 // UploadProgress message. | 1880 // UploadProgress message. |
| 1878 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK, | 1881 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK, |
| 1879 int /* request_id */) | 1882 int /* request_id */) |
| 1880 | 1883 |
| 1881 // Sent when the renderer changes the zoom level for a particular url, so the | 1884 // Sent when the renderer changes the zoom level for a particular url, so the |
| 1882 // browser can update its records. | 1885 // browser can update its records. |
| 1883 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidZoomURL, | 1886 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidZoomURL, |
| 1884 GURL /* url */, | 1887 GURL /* url */, |
| 1885 int /* zoom_level */) | 1888 int /* zoom_level */) |
| 1886 | 1889 |
| (...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2860 // Unregister a blob URL. | 2863 // Unregister a blob URL. |
| 2861 IPC_MESSAGE_CONTROL1(ViewHostMsg_UnregisterBlobUrl, GURL /* url */) | 2864 IPC_MESSAGE_CONTROL1(ViewHostMsg_UnregisterBlobUrl, GURL /* url */) |
| 2862 | 2865 |
| 2863 // Suggest results ----------------------------------------------------------- | 2866 // Suggest results ----------------------------------------------------------- |
| 2864 | 2867 |
| 2865 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSuggestResult, | 2868 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSuggestResult, |
| 2866 int32 /* page_id */, | 2869 int32 /* page_id */, |
| 2867 std::string /* suggest */) | 2870 std::string /* suggest */) |
| 2868 | 2871 |
| 2869 IPC_END_MESSAGES(ViewHost) | 2872 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |