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

Unified Diff: content/browser/loader/resource_request_info_impl.h

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/loader/resource_request_info_impl.h
diff --git a/content/browser/loader/resource_request_info_impl.h b/content/browser/loader/resource_request_info_impl.h
index 29f0d71aefd17d87edaf243db7617a7bba4395fe..afc30fff60f001720b3c58b476df6da8f2a84726 100644
--- a/content/browser/loader/resource_request_info_impl.h
+++ b/content/browser/loader/resource_request_info_impl.h
@@ -43,6 +43,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
int process_type,
int child_id,
int route_id,
+ int frame_tree_node_id,
int origin_pid,
int request_id,
int render_frame_id,
@@ -93,6 +94,11 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const;
GlobalRoutingID GetGlobalRoutingID() const;
+ // PlzNavigate
+ // The id of the FrameTreeNode that initiated this request (for a navigation
+ // request).
+ int frame_tree_node_id() const { return frame_tree_node_id_; }
+
// May be NULL (e.g., if process dies during a transfer).
ResourceMessageFilter* filter() const {
return filter_.get();
@@ -185,6 +191,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
int process_type_;
int child_id_;
int route_id_;
+ const int64 frame_tree_node_id_;
int origin_pid_;
int request_id_;
int render_frame_id_;
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/browser/loader/resource_request_info_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698