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

Unified Diff: content/browser/download/download_file_impl.cc

Issue 148133007: [Downloads] Always call DM::StartDownload() for explicit downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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_file_impl.cc
diff --git a/content/browser/download/download_file_impl.cc b/content/browser/download/download_file_impl.cc
index 0efd0a2a36065c6f1a2f24285bda6d96c994a4a5..b94709c56f5a5a1db04668bbc348a0ca422939ee 100644
--- a/content/browser/download/download_file_impl.cc
+++ b/content/browser/download/download_file_impl.cc
@@ -29,25 +29,26 @@ const int kMaxTimeBlockingFileThreadMs = 1000;
int DownloadFile::number_active_objects_ = 0;
DownloadFileImpl::DownloadFileImpl(
- scoped_ptr<DownloadSaveInfo> save_info,
+ const DownloadSaveInfo& save_info,
const base::FilePath& default_download_directory,
const GURL& url,
const GURL& referrer_url,
bool calculate_hash,
- scoped_ptr<ByteStreamReader> stream,
+ scoped_ptr<net::FileStream> file_stream,
+ scoped_ptr<ByteStreamReader> byte_stream,
const net::BoundNetLog& bound_net_log,
scoped_ptr<PowerSaveBlocker> power_save_blocker,
base::WeakPtr<DownloadDestinationObserver> observer)
- : file_(save_info->file_path,
+ : file_(save_info.file_path,
url,
referrer_url,
- save_info->offset,
+ save_info.offset,
calculate_hash,
- save_info->hash_state,
- save_info->file_stream.Pass(),
+ save_info.hash_state,
+ file_stream.Pass(),
bound_net_log),
default_download_directory_(default_download_directory),
- stream_reader_(stream.Pass()),
+ stream_reader_(byte_stream.Pass()),
bytes_seen_(0),
bound_net_log_(bound_net_log),
observer_(observer),

Powered by Google App Engine
This is Rietveld 408576698