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

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
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index 2b80d7f710d22df2592799951aa5592d4b5b8892..6c9011007e308591230732608bfe87f18653facc 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -155,7 +155,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;
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698