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

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

Issue 10912173: Replace the DownloadFileManager with direct ownership of DownloadFileImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to LKGR (r162700) Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/download_file.h ('k') | content/browser/download/download_file_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 149dc17763132b9a5cef76056632311c82f1b095..1c03221a5ae681a48b5f9f0d55688d81ed9078f0 100644
--- a/content/browser/download/download_file_factory.h
+++ b/content/browser/download/download_file_factory.h
@@ -5,11 +5,11 @@
#ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_
#define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_
+#include "base/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "content/common/content_export.h"
-#include "content/browser/download/download_create_info.h"
#include "googleurl/src/gurl.h"
namespace net {
@@ -22,17 +22,22 @@ class ByteStreamReader;
class DownloadDestinationObserver;
class DownloadFile;
class DownloadManager;
+struct DownloadSaveInfo;
class CONTENT_EXPORT DownloadFileFactory {
public:
virtual ~DownloadFileFactory();
- virtual content::DownloadFile* CreateFile(
- scoped_ptr<DownloadCreateInfo> info,
- scoped_ptr<content::ByteStreamReader> stream,
- DownloadManager* download_manager,
+ virtual DownloadFile* CreateFile(
+ scoped_ptr<DownloadSaveInfo> save_info,
+ const FilePath& default_downloads_directory,
+ const GURL& url,
+ const GURL& referrer_url,
+ int64 received_bytes,
bool calculate_hash,
- const net::BoundNetLog& bound_net_log);
+ scoped_ptr<ByteStreamReader> stream,
+ const net::BoundNetLog& bound_net_log,
+ base::WeakPtr<DownloadDestinationObserver> observer);
};
} // namespace content
« no previous file with comments | « content/browser/download/download_file.h ('k') | content/browser/download/download_file_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698