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

Unified Diff: content/public/browser/download_item.h

Issue 14640020: [Resumption 9/11] Handle filename determination for resumed downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 7 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/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index b3003ef9e8aa3997c6a4e7691bca6d192dec0f63..f8f3468904c2715afb874761b124b81d67db5452 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -152,7 +152,11 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
virtual DownloadId GetGlobalId() const = 0;
virtual DownloadState GetState() const = 0;
- // Only valid if |GetState() == DownloadItem::INTERRUPTED|.
+ // Returns the most recent interrupt reason for this download. Returns
+ // DOWNLOAD_INTERRUPT_REASON_NONE if there is no previous interrupt reason.
+ // Cancelled downloads return DOWNLOAD_INTERRUPT_REASON_USER_CANCELLED. If
+ // the download was resumed, then the return value is the interrupt reason
+ // prior to resumption.
virtual DownloadInterruptReason GetLastReason() const = 0;
virtual bool IsPaused() const = 0;

Powered by Google App Engine
This is Rietveld 408576698