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

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

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed ordering of target_path and current_path everywhere to match that of DownloadItemImpl. Created 8 years 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_manager_impl.h
diff --git a/content/browser/download/download_manager_impl.h b/content/browser/download/download_manager_impl.h
index 0e6d6ba1d0ca1b9d44c65e9bd86a934e02d6b2af..69592f712a4e17ed7fec3d0848f0d85df6d1299f 100644
--- a/content/browser/download/download_manager_impl.h
+++ b/content/browser/download/download_manager_impl.h
@@ -64,14 +64,16 @@ class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager,
virtual void AddObserver(Observer* observer) OVERRIDE;
virtual void RemoveObserver(Observer* observer) OVERRIDE;
virtual content::DownloadItem* CreateDownloadItem(
- const FilePath& path,
- const GURL& url,
+ const FilePath& current_path,
+ const FilePath& target_path,
+ const std::vector<GURL>& url_chain,
const GURL& referrer_url,
const base::Time& start_time,
const base::Time& end_time,
int64 received_bytes,
int64 total_bytes,
content::DownloadItem::DownloadState state,
+ DownloadInterruptReason interrupt_reason,
bool opened) OVERRIDE;
virtual int InProgressCount() const OVERRIDE;
virtual BrowserContext* GetBrowserContext() const OVERRIDE;
@@ -98,8 +100,9 @@ class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager,
virtual ~DownloadManagerImpl();
- // Creates the download item. Must be called on the UI thread.
- virtual DownloadItemImpl* CreateDownloadItem(
+ // Creates the download item based on a DownloadCreateInfo from the IO
+ // thread. Must be called on the UI thread.
+ virtual DownloadItemImpl* CreateDownloadItemInternal(
DownloadCreateInfo* info, const net::BoundNetLog& bound_net_log);
// Get next download id.

Powered by Google App Engine
This is Rietveld 408576698