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

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

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_factory.h
diff --git a/content/browser/download/download_file_factory.h b/content/browser/download/download_file_factory.h
index 2600e3f845520b26fc83679450ddd726bd063f45..200bf278157d086c4b8bd43be03ce55729cf99ce 100644
--- a/content/browser/download/download_file_factory.h
+++ b/content/browser/download/download_file_factory.h
@@ -14,6 +14,7 @@
namespace net {
class BoundNetLog;
+class FileStream;
}
namespace content {
@@ -29,12 +30,13 @@ class CONTENT_EXPORT DownloadFileFactory {
virtual ~DownloadFileFactory();
virtual DownloadFile* CreateFile(
- scoped_ptr<DownloadSaveInfo> save_info,
+ const DownloadSaveInfo& save_info,
const base::FilePath& default_downloads_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,
base::WeakPtr<DownloadDestinationObserver> observer);
};

Powered by Google App Engine
This is Rietveld 408576698