Add isPaused and canResume

This commit is contained in:
Cheng Zhao 2016-06-09 20:51:01 +09:00
parent 3f1dba3016
commit dcad25c98c
3 changed files with 26 additions and 0 deletions

View file

@ -27,7 +27,9 @@ class DownloadItem : public mate::TrackableObject<DownloadItem>,
v8::Local<v8::ObjectTemplate> prototype);
void Pause();
bool IsPaused() const;
void Resume();
bool CanResume() const;
void Cancel();
int64_t GetReceivedBytes() const;
int64_t GetTotalBytes() const;
@ -37,6 +39,7 @@ class DownloadItem : public mate::TrackableObject<DownloadItem>,
std::string GetContentDisposition() const;
const GURL& GetURL() const;
content::DownloadItem::DownloadState GetState() const;
bool IsDone() const;
void SetSavePath(const base::FilePath& path);
base::FilePath GetSavePath() const;