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

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

Issue 2727253002: Added DownloadItem::Observer to JobController. (Closed)
Patch Set: Added TODO 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_job_data.cc
diff --git a/content/browser/background_fetch/background_fetch_job_data.cc b/content/browser/background_fetch/background_fetch_job_data.cc
index 0d0f30a6ca2d413129ab968ff8547af5b6b9691e..005780c31e05c08a3b7bb04d40bc274e3025a2fe 100644
--- a/content/browser/background_fetch/background_fetch_job_data.cc
+++ b/content/browser/background_fetch/background_fetch_job_data.cc
@@ -54,4 +54,11 @@ bool BackgroundFetchJobData::HasRequestsRemaining() const {
return next_request_info_ != request_infos_.size();
}
+void BackgroundFetchJobData::SetRequestDownloadGuid(
+ const std::string& request_guid,
+ const std::string& download_guid) {
+ auto index_iter = request_info_index_.find(request_guid);
+ DCHECK(index_iter != request_info_index_.end());
+ request_infos_[index_iter->second].set_download_guid(download_guid);
+}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698