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

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

Issue 2727253002: Added DownloadItem::Observer to JobController. (Closed)
Patch Set: Cleanup Created 3 years, 10 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 a434d7fd344c8b16d29c0a0f4153c66f5db14828..a8f240c93d8ba3821797af42fb7efd0c9f924874 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