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

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: Now using FTN id or routing ID Created 5 years, 8 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 09de2e627f0fffd3faa835009ff403b9ca0a1ac7..bfb7e3b151d75a3be0cf3849da7a5ac21af80456 100644
--- a/content/browser/download/download_resource_handler.cc
+++ b/content/browser/download/download_resource_handler.cc
@@ -121,13 +121,12 @@ DownloadResourceHandler::DownloadResourceHandler(
const ResourceRequestInfoImpl* request_info = GetRequestInfo();
tab_info_ = new DownloadTabInfo();
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_));
power_save_blocker_ = PowerSaveBlocker::Create(
PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension,
@@ -201,10 +200,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();

Powered by Google App Engine
This is Rietveld 408576698