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

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

Issue 11673003: UI changes associated with downloads resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged from DownloadsResumption; includes CanResumeDownload, which was nuked in the original CL. Created 7 years, 12 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') | content/public/test/mock_download_item.h » ('j') | 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 51a6de3ec10f51993dd97c379fed594654f1a9a7..c731a47687250acd997eb85e238b922d4a1c2b72 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -161,6 +161,7 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
virtual DownloadInterruptReason GetLastReason() const = 0;
virtual bool IsPaused() const = 0;
+ virtual bool CanResumeInterrupted() const = 0;
virtual bool IsTemporary() const = 0;
// Convenience routines for accessing GetState() results conceptually -----
@@ -281,6 +282,9 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// Returns true if it is OK to open the download.
virtual bool CanOpenDownload() = 0;
+ // Returns true if the download is paused or interrupted, and can be resumed.
+ virtual bool CanResumeDownload() const = 0;
+
// Tests if a file type should be opened automatically.
virtual bool ShouldOpenFileBasedOnExtension() = 0;
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | content/public/test/mock_download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698