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

Unified Diff: content/common/navigation_params.cc

Issue 2378393002: Pass the user_gesture context in the IPC message FrameMsg_CommitNavigation to the renderer. (Closed)
Patch Set: Address review comments. Define the has_user_gesture flag in the RequestNavigationParams structure. Created 4 years, 3 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 bbb431bf3559cbaa08440d3225a2cb4d98fc076b..290008a08a1115011a3d60678de92ef2f7a26a9e 100644
--- a/content/common/navigation_params.cc
+++ b/content/common/navigation_params.cc
@@ -148,7 +148,8 @@ RequestNavigationParams::RequestNavigationParams()
is_view_source(false),
should_clear_history_list(false),
should_create_service_worker(false),
- service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
+ service_worker_provider_id(kInvalidServiceWorkerProviderId),
+ has_user_gesture(false) {}
RequestNavigationParams::RequestNavigationParams(
bool is_overriding_user_agent,
@@ -167,7 +168,8 @@ RequestNavigationParams::RequestNavigationParams(
int current_history_list_offset,
int current_history_list_length,
bool is_view_source,
- bool should_clear_history_list)
+ bool should_clear_history_list,
+ bool has_user_gesture)
: is_overriding_user_agent(is_overriding_user_agent),
redirects(redirects),
can_load_local_resources(can_load_local_resources),
@@ -186,7 +188,8 @@ RequestNavigationParams::RequestNavigationParams(
is_view_source(is_view_source),
should_clear_history_list(should_clear_history_list),
should_create_service_worker(false),
- service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
+ service_worker_provider_id(kInvalidServiceWorkerProviderId),
+ has_user_gesture(has_user_gesture) {}
RequestNavigationParams::RequestNavigationParams(
const RequestNavigationParams& other) = default;

Powered by Google App Engine
This is Rietveld 408576698