diff options
Diffstat (limited to 'chromium/components/download/database/in_progress')
-rw-r--r-- | chromium/components/download/database/in_progress/in_progress_info.cc | 3 | ||||
-rw-r--r-- | chromium/components/download/database/in_progress/in_progress_info.h | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/chromium/components/download/database/in_progress/in_progress_info.cc b/chromium/components/download/database/in_progress/in_progress_info.cc index 7cb0c20fc9b..61a7afbd023 100644 --- a/chromium/components/download/database/in_progress/in_progress_info.cc +++ b/chromium/components/download/database/in_progress/in_progress_info.cc @@ -30,7 +30,8 @@ bool InProgressInfo::operator==(const InProgressInfo& other) const { danger_type == other.danger_type && interrupt_reason == other.interrupt_reason && paused == other.paused && metered == other.metered && bytes_wasted == other.bytes_wasted && - auto_resume_count == other.auto_resume_count; + auto_resume_count == other.auto_resume_count && + download_schedule == other.download_schedule; } } // namespace download diff --git a/chromium/components/download/database/in_progress/in_progress_info.h b/chromium/components/download/database/in_progress/in_progress_info.h index 3f7b5fac15e..2b67686c04c 100644 --- a/chromium/components/download/database/in_progress/in_progress_info.h +++ b/chromium/components/download/database/in_progress/in_progress_info.h @@ -8,8 +8,10 @@ #include <string> #include <vector> +#include "base/optional.h" #include "components/download/public/common/download_danger_type.h" #include "components/download/public/common/download_item.h" +#include "components/download/public/common/download_schedule.h" #include "components/download/public/common/download_url_parameters.h" #include "url/gurl.h" @@ -118,8 +120,12 @@ struct InProgressInfo { // triggered resumption. int32_t auto_resume_count = 0; - // Whether the download is initiated on a metered network + // Whether the download is initiated on a metered network. If false, download + // can ony be resumed on WIFI. bool metered = false; + + // When to start the download. Used by download later feature. + base::Optional<DownloadSchedule> download_schedule; }; } // namespace download |