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

Unified Diff: chrome/common/resource_dispatcher.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, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/common/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/resource_dispatcher.h
===================================================================
--- chrome/common/resource_dispatcher.h (revision 60837)
+++ chrome/common/resource_dispatcher.h (working copy)
@@ -82,6 +82,10 @@
};
typedef base::hash_map<int, PendingRequestInfo> PendingRequestList;
+ // Helper to lookup the info based on the request_id.
+ // May return NULL if the request as been canceled from the client side.
+ PendingRequestInfo* GetPendingRequestInfo(int request_id);
+
// Message response handlers, called by the message handler for this process.
void OnUploadProgress(
const IPC::Message& message,
@@ -100,6 +104,10 @@
int request_id,
base::SharedMemoryHandle data,
int data_len);
+ void OnDownloadedData(
+ const IPC::Message& message,
+ int request_id,
+ int data_len);
void OnRequestComplete(
int request_id,
const URLRequestStatus& status,
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/common/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698