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

Unified Diff: content/browser/download/download_resource_handler.cc

Issue 1079163008: PlzNavigate: provide the FrameTreeNode ID to the network stack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-unittests
Patch Set: Rebase + addressed Nasko's comments Created 5 years, 7 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/download/download_resource_handler.cc
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc
index 6850e1dad46c314ead790a44521f5f22266d76f3..c28db786fe6d673e7c365c0d6737af98b8e6f5ef 100644
--- a/content/browser/download/download_resource_handler.cc
+++ b/content/browser/download/download_resource_handler.cc
@@ -128,13 +128,12 @@ DownloadResourceHandler::DownloadResourceHandler(
// PostTask()
const ResourceRequestInfoImpl* request_info = GetRequestInfo();
BrowserThread::PostTask(
- BrowserThread::UI,
- FROM_HERE,
+ BrowserThread::UI, FROM_HERE,
base::Bind(&InitializeDownloadTabInfoOnUIThread,
- DownloadRequestHandle(AsWeakPtr(),
- request_info->GetChildID(),
+ DownloadRequestHandle(AsWeakPtr(), request_info->GetChildID(),
request_info->GetRouteID(),
- request_info->GetRequestID()),
+ request_info->GetRequestID(),
+ request_info->frame_tree_node_id()),
tab_info_.get()));
power_save_blocker_ = PowerSaveBlocker::Create(
PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension,
@@ -208,10 +207,9 @@ bool DownloadResourceHandler::OnResponseStarted(
RecordDownloadMimeType(info->mime_type);
RecordDownloadContentDisposition(info->content_disposition);
- info->request_handle =
- DownloadRequestHandle(AsWeakPtr(), request_info->GetChildID(),
- request_info->GetRouteID(),
- request_info->GetRequestID());
+ info->request_handle = DownloadRequestHandle(
+ AsWeakPtr(), request_info->GetChildID(), request_info->GetRouteID(),
+ request_info->GetRequestID(), request_info->frame_tree_node_id());
// Get the last modified time and etag.
const net::HttpResponseHeaders* headers = request()->response_headers();
« no previous file with comments | « content/browser/download/download_request_handle.cc ('k') | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698