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

Unified Diff: content/common/navigation_params.cc

Issue 2776523005: Plumbing devtools agent host id and request id between processes (Closed)
Patch Set: Full plumbing Created 3 years, 9 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/common/navigation_params.cc
diff --git a/content/common/navigation_params.cc b/content/common/navigation_params.cc
index 16ddaf7c060b672da7795f08ee98a4cfa88d4ca3..dc8489f4367df9b1b1995d42811f2f3db9e206aa 100644
--- a/content/common/navigation_params.cc
+++ b/content/common/navigation_params.cc
@@ -156,6 +156,7 @@ RequestNavigationParams::RequestNavigationParams()
: is_overriding_user_agent(false),
can_load_local_resources(false),
nav_entry_id(0),
+ devtools_request_id(0),
is_history_navigation_in_new_child(false),
has_committed_real_load(false),
intended_as_new_entry(false),
@@ -167,8 +168,7 @@ RequestNavigationParams::RequestNavigationParams()
should_create_service_worker(false),
service_worker_provider_id(kInvalidServiceWorkerProviderId),
appcache_host_id(kAppCacheNoHostId),
- has_user_gesture(false) {
-}
+ has_user_gesture(false) {}
RequestNavigationParams::RequestNavigationParams(
bool is_overriding_user_agent,
@@ -195,6 +195,7 @@ RequestNavigationParams::RequestNavigationParams(
can_load_local_resources(can_load_local_resources),
page_state(page_state),
nav_entry_id(nav_entry_id),
+ devtools_request_id(nav_entry_id * 2 + 1),
is_history_navigation_in_new_child(is_history_navigation_in_new_child),
subframe_unique_names(subframe_unique_names),
has_committed_real_load(has_committed_real_load),

Powered by Google App Engine
This is Rietveld 408576698