OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <map> | 5 #include <map> |
6 #include <set> | 6 #include <set> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 IPC_MESSAGE_ROUTED3(ViewMsg_Find, | 318 IPC_MESSAGE_ROUTED3(ViewMsg_Find, |
319 int /* request_id */, | 319 int /* request_id */, |
320 string16 /* search_text */, | 320 string16 /* search_text */, |
321 WebKit::WebFindOptions) | 321 WebKit::WebFindOptions) |
322 | 322 |
323 // Send from the renderer to the browser to return the script running result. | 323 // Send from the renderer to the browser to return the script running result. |
324 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteCodeFinished, | 324 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteCodeFinished, |
325 int, /* request id */ | 325 int, /* request id */ |
326 bool /* whether the script ran successfully */) | 326 bool /* whether the script ran successfully */) |
327 | 327 |
328 // Sent when the headers are available for a resource request. | |
329 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, | |
330 int /* request_id */, | |
331 ResourceResponseHead) | |
332 | |
333 // Sent when cached metadata from a resource request is ready. | |
334 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedCachedMetadata, | |
335 int /* request_id */, | |
336 std::vector<char> /* data */) | |
337 | |
338 // Sent as upload progress is being made. | |
339 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_UploadProgress, | |
340 int /* request_id */, | |
341 int64 /* position */, | |
342 int64 /* size */) | |
343 | |
344 // Sent when the request has been redirected. The receiver is expected to | |
345 // respond with either a FollowRedirect message (if the redirect is to be | |
346 // followed) or a CancelRequest message (if it should not be followed). | |
347 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_ReceivedRedirect, | |
348 int /* request_id */, | |
349 GURL /* new_url */, | |
350 ResourceResponseHead) | |
351 | |
352 // Sent when some data from a resource request is ready. The handle should | |
353 // already be mapped into the process that receives this message. | |
354 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_DataReceived, | |
355 int /* request_id */, | |
356 base::SharedMemoryHandle /* data */, | |
357 int /* data_len */) | |
358 | |
359 // Sent when some data from a resource request has been downloaded to | |
360 // file. This is only called in the 'download_to_file' case and replaces | |
361 // ViewMsg_Resource_DataReceived in the call sequence in that case. | |
362 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_DataDownloaded, | |
363 int /* request_id */, | |
364 int /* data_len */) | |
365 | |
366 // Sent when the request has been completed. | |
367 IPC_MESSAGE_ROUTED4(ViewMsg_Resource_RequestComplete, | |
368 int /* request_id */, | |
369 net::URLRequestStatus /* status */, | |
370 std::string /* security info */, | |
371 base::Time /* completion_time */) | |
372 | |
373 // Sent when user prompting is required before a ViewHostMsg_GetCookies | 328 // Sent when user prompting is required before a ViewHostMsg_GetCookies |
374 // message can complete. This message indicates that the renderer should | 329 // message can complete. This message indicates that the renderer should |
375 // pump messages while waiting for cookies. | 330 // pump messages while waiting for cookies. |
376 IPC_MESSAGE_CONTROL0(ViewMsg_SignalCookiePromptEvent) | 331 IPC_MESSAGE_CONTROL0(ViewMsg_SignalCookiePromptEvent) |
377 | 332 |
378 // Request for the renderer to evaluate an xpath to a frame and execute a | 333 // Request for the renderer to evaluate an xpath to a frame and execute a |
379 // javascript: url in that frame's context. The message is completely | 334 // javascript: url in that frame's context. The message is completely |
380 // asynchronous and no corresponding response message is sent back. | 335 // asynchronous and no corresponding response message is sent back. |
381 // | 336 // |
382 // frame_xpath contains the modified xpath notation to identify an inner | 337 // frame_xpath contains the modified xpath notation to identify an inner |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1272 // coordinates) for the string found. If |final_update| is false, it signals | 1227 // coordinates) for the string found. If |final_update| is false, it signals |
1273 // that this is not the last Find_Reply message - more will be sent as the | 1228 // that this is not the last Find_Reply message - more will be sent as the |
1274 // scoping effort continues. | 1229 // scoping effort continues. |
1275 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply, | 1230 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply, |
1276 int /* request_id */, | 1231 int /* request_id */, |
1277 int /* number of matches */, | 1232 int /* number of matches */, |
1278 gfx::Rect /* selection_rect */, | 1233 gfx::Rect /* selection_rect */, |
1279 int /* active_match_ordinal */, | 1234 int /* active_match_ordinal */, |
1280 bool /* final_update */) | 1235 bool /* final_update */) |
1281 | 1236 |
1282 // Makes a resource request via the browser. | |
1283 IPC_MESSAGE_ROUTED2(ViewHostMsg_RequestResource, | |
1284 int /* request_id */, | |
1285 ViewHostMsg_Resource_Request) | |
1286 | |
1287 // Cancels a resource request with the ID given as the parameter. | |
1288 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelRequest, | |
1289 int /* request_id */) | |
1290 | |
1291 // Follows a redirect that occured for the resource request with the ID given | |
1292 // as the parameter. | |
1293 IPC_MESSAGE_ROUTED3(ViewHostMsg_FollowRedirect, | |
1294 int /* request_id */, | |
1295 bool /* has_new_first_party_for_cookies */, | |
1296 GURL /* new_first_party_for_cookies */) | |
1297 | |
1298 // Makes a synchronous resource request via the browser. | |
1299 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_SyncLoad, | |
1300 int /* request_id */, | |
1301 ViewHostMsg_Resource_Request, | |
1302 SyncLoadResult) | |
1303 | |
1304 // Used to set a cookie. The cookie is set asynchronously, but will be | 1237 // Used to set a cookie. The cookie is set asynchronously, but will be |
1305 // available to a subsequent ViewHostMsg_GetCookies request. | 1238 // available to a subsequent ViewHostMsg_GetCookies request. |
1306 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetCookie, | 1239 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetCookie, |
1307 GURL /* url */, | 1240 GURL /* url */, |
1308 GURL /* first_party_for_cookies */, | 1241 GURL /* first_party_for_cookies */, |
1309 std::string /* cookie */) | 1242 std::string /* cookie */) |
1310 | 1243 |
1311 // Used to get cookies for the given URL. This may block waiting for a | 1244 // Used to get cookies for the given URL. This may block waiting for a |
1312 // previous SetCookie message to be processed. | 1245 // previous SetCookie message to be processed. |
1313 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetCookies, | 1246 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetCookies, |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1836 int /* Identifier of the request */, | 1769 int /* Identifier of the request */, |
1837 GURL /* URL of the image */, | 1770 GURL /* URL of the image */, |
1838 bool /* true if there was a network error */, | 1771 bool /* true if there was a network error */, |
1839 SkBitmap /* image_data */) | 1772 SkBitmap /* image_data */) |
1840 | 1773 |
1841 // Get the CPBrowsingContext associated with the renderer sending this | 1774 // Get the CPBrowsingContext associated with the renderer sending this |
1842 // message. | 1775 // message. |
1843 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPBrowsingContext, | 1776 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPBrowsingContext, |
1844 uint32 /* context */) | 1777 uint32 /* context */) |
1845 | 1778 |
1846 // Sent when the renderer process is done processing a DataReceived | |
1847 // message. | |
1848 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, | |
1849 int /* request_id */) | |
1850 | |
1851 IPC_MESSAGE_CONTROL1(ViewHostMsg_RevealFolderInOS, | 1779 IPC_MESSAGE_CONTROL1(ViewHostMsg_RevealFolderInOS, |
1852 FilePath /* path */) | 1780 FilePath /* path */) |
1853 | 1781 |
1854 // Sent when the renderer has processed a DataDownloaded message. | |
1855 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataDownloaded_ACK, | |
1856 int /* request_id */) | |
1857 | |
1858 // Sent when the renderer process deletes a resource loader. | |
1859 IPC_MESSAGE_CONTROL1(ViewHostMsg_ReleaseDownloadedFile, | |
1860 int /* request_id */) | |
1861 | |
1862 // Sent when a provisional load on the main frame redirects. | 1782 // Sent when a provisional load on the main frame redirects. |
1863 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad, | 1783 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad, |
1864 int /* page_id */, | 1784 int /* page_id */, |
1865 GURL /* last url */, | 1785 GURL /* last url */, |
1866 GURL /* url redirected to */) | 1786 GURL /* url redirected to */) |
1867 | 1787 |
1868 // Sent by the renderer process to acknowledge receipt of a | |
1869 // UploadProgress message. | |
1870 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK, | |
1871 int /* request_id */) | |
1872 | |
1873 // Sent when the renderer changes the zoom level for a particular url, so the | 1788 // Sent when the renderer changes the zoom level for a particular url, so the |
1874 // browser can update its records. If remember is true, then url is used to | 1789 // browser can update its records. If remember is true, then url is used to |
1875 // update the zoom level for all pages in that site. Otherwise, the render | 1790 // update the zoom level for all pages in that site. Otherwise, the render |
1876 // view's id is used so that only the menu is updated. | 1791 // view's id is used so that only the menu is updated. |
1877 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, | 1792 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, |
1878 double /* zoom_level */, | 1793 double /* zoom_level */, |
1879 bool /* remember */, | 1794 bool /* remember */, |
1880 GURL /* url */) | 1795 GURL /* url */) |
1881 | 1796 |
1882 #if defined(OS_WIN) | 1797 #if defined(OS_WIN) |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2494 // while performing stress testing. | 2409 // while performing stress testing. |
2495 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 2410 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
2496 int /* cmd */, | 2411 int /* cmd */, |
2497 int /* param */) | 2412 int /* param */) |
2498 | 2413 |
2499 // Register a new handler for URL requests with the given scheme. | 2414 // Register a new handler for URL requests with the given scheme. |
2500 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, | 2415 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, |
2501 std::string /* scheme */, | 2416 std::string /* scheme */, |
2502 GURL /* url */, | 2417 GURL /* url */, |
2503 string16 /* title */) | 2418 string16 /* title */) |
OLD | NEW |