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

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

Issue 14957002: [Resumption 7/11] Add a CanResume() method to DownloadItem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with r200532 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') | 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 3af164e2d24d35c46d23351d39f5ac3591e63bb4..ddc79f5ae63fb62186855ec1cb6076e1b87c99b7 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -158,6 +158,11 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
virtual bool IsPaused() const = 0;
virtual bool IsTemporary() const = 0;
+ // Returns true if the download can be resumed. A download can be resumed if
+ // an in-progress download was paused or if an interrupted download requires
+ // user-interaction to resume.
+ virtual bool CanResume() const = 0;
+
// Convenience routines for accessing GetState() results conceptually -----
// Returns true if the download needs more data.
« 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