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

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: Added binary files based on c#37 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_manager_impl.h
diff --git a/content/browser/download/download_manager_impl.h b/content/browser/download/download_manager_impl.h
index d5a3c9d4f459cd99cfe308fd479aa6df12b05db5..73d26b23727927bd876c5d657d34ddc2a3148dd7 100644
--- a/content/browser/download/download_manager_impl.h
+++ b/content/browser/download/download_manager_impl.h
@@ -65,14 +65,17 @@ 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,
+ DownloadDangerType danger_type,
+ DownloadInterruptReason interrupt_reason,
bool opened) OVERRIDE;
virtual int InProgressCount() const OVERRIDE;
virtual BrowserContext* GetBrowserContext() const OVERRIDE;
@@ -100,8 +103,8 @@ class CONTENT_EXPORT DownloadManagerImpl : public DownloadManager,
virtual ~DownloadManagerImpl();
// Retrieves the download item corresponding to the passed
- // DownloadCreateInfo. This will create the download item
- // if this is a new download (common case) or retrieve an
+ // DownloadCreateInfo (generated on the IO thread). This will create
+ // the download item if this is a new download (common case) or retrieve an
// existing download item if this is a resuming download.
virtual DownloadItemImpl* GetOrCreateDownloadItem(DownloadCreateInfo* info);

Powered by Google App Engine
This is Rietveld 408576698