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

Unified Diff: content/browser/download/download_resource_handler.h

Issue 11571025: Initial CL for Downloads resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments. Created 7 years, 11 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
Index: content/browser/download/download_resource_handler.h
diff --git a/content/browser/download/download_resource_handler.h b/content/browser/download/download_resource_handler.h
index f40996453aca4d665c0aa64c169d52deedb7eb54..7eac1e6bdc91e15d94cbb8cb43e16caf485689d9 100644
--- a/content/browser/download/download_resource_handler.h
+++ b/content/browser/download/download_resource_handler.h
@@ -37,7 +37,9 @@ class DownloadResourceHandler
typedef DownloadUrlParameters::OnStartedCallback OnStartedCallback;
// started_cb will be called exactly once on the UI thread.
+ // |id| should be invalid if the id should be automatically assigned.
DownloadResourceHandler(
+ DownloadId id,
net::URLRequest* request,
const OnStartedCallback& started_cb,
scoped_ptr<DownloadSaveInfo> save_info);
@@ -100,6 +102,7 @@ class DownloadResourceHandler
void SetContentDisposition(const std::string& content_disposition);
+ DownloadId download_id_;
GlobalRequestID global_id_;
int render_view_id_;
std::string content_disposition_;

Powered by Google App Engine
This is Rietveld 408576698