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

Unified Diff: content/browser/background_fetch/background_fetch_request_info.cc

Issue 2767373002: Implement GetJobResponse and merge JobData into DataManager. (Closed)
Patch Set: Removed typedef and added DISALLOW_COPY_AND_ASSIGN Created 3 years, 9 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
Index: content/browser/background_fetch/background_fetch_request_info.cc
diff --git a/content/browser/background_fetch/background_fetch_request_info.cc b/content/browser/background_fetch/background_fetch_request_info.cc
index 32cb29538b17f3bac854be7136af324190d3a848..45f63c8a4967fcf681c8fc2174b1e2185f2e5239 100644
--- a/content/browser/background_fetch/background_fetch_request_info.cc
+++ b/content/browser/background_fetch/background_fetch_request_info.cc
@@ -24,8 +24,14 @@ BackgroundFetchRequestInfo::BackgroundFetchRequestInfo(
tag_(request.tag_),
download_guid_(request.download_guid_),
state_(request.state_),
- interrupt_reason_(request.interrupt_reason_) {}
+ interrupt_reason_(request.interrupt_reason_),
+ file_path_(request.file_path_) {}
-BackgroundFetchRequestInfo::~BackgroundFetchRequestInfo() = default;
+BackgroundFetchRequestInfo::~BackgroundFetchRequestInfo() {}
+
+bool BackgroundFetchRequestInfo::IsComplete() const {
+ return (state_ == DownloadItem::DownloadState::COMPLETE ||
+ state_ == DownloadItem::DownloadState::CANCELLED);
+}
} // namespace content
« no previous file with comments | « content/browser/background_fetch/background_fetch_request_info.h ('k') | content/public/test/fake_download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698