Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(829)

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 3396029: Flesh out URLLoader's download_to_file function.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 // Get the CPBrowsingContext associated with the renderer sending this 1865 // Get the CPBrowsingContext associated with the renderer sending this
1866 // message. 1866 // message.
1867 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPBrowsingContext, 1867 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPBrowsingContext,
1868 uint32 /* context */) 1868 uint32 /* context */)
1869 1869
1870 // Sent when the renderer process is done processing a DataReceived 1870 // Sent when the renderer process is done processing a DataReceived
1871 // message. 1871 // message.
1872 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, 1872 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK,
1873 int /* request_id */) 1873 int /* request_id */)
1874 1874
1875 // Sent when the renderer has processed a DataDownloaded message.
1876 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataDownloaded_ACK,
1877 int /* request_id */)
1878
1879 // Sent when the renderer process deletes a resource loader.
1880 IPC_MESSAGE_CONTROL1(ViewHostMsg_ReleaseDownloadedFile,
1881 int /* request_id */)
1882
1875 // Sent when a provisional load on the main frame redirects. 1883 // Sent when a provisional load on the main frame redirects.
1876 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad, 1884 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad,
1877 int /* page_id */, 1885 int /* page_id */,
1878 GURL /* last url */, 1886 GURL /* last url */,
1879 GURL /* url redirected to */) 1887 GURL /* url redirected to */)
1880 1888
1881 // Sent by the renderer process to acknowledge receipt of a 1889 // Sent by the renderer process to acknowledge receipt of a
1882 // DownloadProgress message.
1883 IPC_MESSAGE_ROUTED1(ViewHostMsg_DownloadProgress_ACK,
1884 int /* request_id */)
1885
1886 // Sent by the renderer process to acknowledge receipt of a
1887 // UploadProgress message. 1890 // UploadProgress message.
1888 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK, 1891 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK,
1889 int /* request_id */) 1892 int /* request_id */)
1890 1893
1891 // Sent when the renderer changes the zoom level for a particular url, so the 1894 // Sent when the renderer changes the zoom level for a particular url, so the
1892 // browser can update its records. 1895 // browser can update its records.
1893 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidZoomURL, 1896 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidZoomURL,
1894 GURL /* url */, 1897 GURL /* url */,
1895 int /* zoom_level */) 1898 int /* zoom_level */)
1896 1899
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
2886 // Unregister a blob URL. 2889 // Unregister a blob URL.
2887 IPC_MESSAGE_CONTROL1(ViewHostMsg_UnregisterBlobUrl, GURL /* url */) 2890 IPC_MESSAGE_CONTROL1(ViewHostMsg_UnregisterBlobUrl, GURL /* url */)
2888 2891
2889 // Suggest results ----------------------------------------------------------- 2892 // Suggest results -----------------------------------------------------------
2890 2893
2891 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSuggestResult, 2894 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSuggestResult,
2892 int32 /* page_id */, 2895 int32 /* page_id */,
2893 std::string /* suggest */) 2896 std::string /* suggest */)
2894 2897
2895 IPC_END_MESSAGES(ViewHost) 2898 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/sync_resource_handler.cc ('k') | chrome/common/resource_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698