| Index: content/public/browser/download_item.h
|
| diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
|
| index 9eaf629612e7ca77f2f89701deba996ac6da7bd2..c731a47687250acd997eb85e238b922d4a1c2b72 100644
|
| --- a/content/public/browser/download_item.h
|
| +++ b/content/public/browser/download_item.h
|
| @@ -27,6 +27,7 @@
|
| #include "content/public/browser/download_danger_type.h"
|
| #include "content/public/browser/download_interrupt_reasons.h"
|
| #include "content/public/common/page_transition_types.h"
|
| +#include "net/base/net_log.h"
|
|
|
| class FilePath;
|
| class GURL;
|
| @@ -122,6 +123,9 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
|
| // Allow the user to temporarily pause a download or resume a paused download.
|
| virtual void TogglePause() = 0;
|
|
|
| + // Resume a download that's been interrupted.
|
| + virtual void ResumeInterruptedDownload() = 0;
|
| +
|
| // Cancel the download operation. We need to distinguish between cancels at
|
| // exit (DownloadManager destructor) from user interface initiated cancels
|
| // because at exit, the history system may not exist, and any updates to it
|
| @@ -157,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 -----
|
| @@ -277,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;
|
|
|
|
|