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

Unified Diff: content/browser/frame_host/navigation_request.cc

Issue 2776523005: Plumbing devtools agent host id and request id between processes (Closed)
Patch Set: Rebased Created 3 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/frame_host/navigation_request.cc
diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
index 6c343e60154f80e5b98e4d919150d79f18940337..40d558ff9fe311ab4b8e61880a6e8635e6bd5fe3 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -753,6 +753,12 @@ void NavigationRequest::OnStartChecksComplete(
bool report_raw_headers =
RenderFrameDevToolsAgentHost::IsNetworkHandlerEnabled(frame_tree_node_);
+ std::string devtools_agent_host_id;
+ if (report_raw_headers) {
+ devtools_agent_host_id =
+ RenderFrameDevToolsAgentHost::GetAgentHostId(frame_tree_node_);
+ }
+
loader_ = NavigationURLLoader::Create(
browser_context->GetResourceContext(), partition,
base::MakeUnique<NavigationRequestInfo>(
@@ -760,7 +766,8 @@ void NavigationRequest::OnStartChecksComplete(
frame_tree_node_->IsMainFrame(), parent_is_main_frame,
IsSecureFrame(frame_tree_node_->parent()),
frame_tree_node_->frame_tree_node_id(), is_for_guests_only,
- report_raw_headers, navigating_frame_host->GetVisibilityState()),
+ report_raw_headers, navigating_frame_host->GetVisibilityState(),
+ devtools_agent_host_id, request_params_.devtools_request_id),
std::move(navigation_ui_data),
navigation_handle_->service_worker_handle(),
navigation_handle_->appcache_handle(), this);
« no previous file with comments | « content/browser/devtools/render_frame_devtools_agent_host.cc ('k') | content/browser/frame_host/navigation_request_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698