summaryrefslogtreecommitdiff
path: root/chromium/components/download/database/in_progress
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/components/download/database/in_progress
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/download/database/in_progress')
-rw-r--r--chromium/components/download/database/in_progress/in_progress_info.cc3
-rw-r--r--chromium/components/download/database/in_progress/in_progress_info.h8
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