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

Unified Diff: content/common/frame_messages.h

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/frame_messages.h
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h
index b9520d9ae87df077d5cedaa5df0eb4ec34f66509..0cb5894cee49112d3fcb3dddcfa96eca6aa8dcb4 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -391,6 +391,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::RequestNavigationParams)
IPC_STRUCT_TRAITS_MEMBER(should_create_service_worker)
IPC_STRUCT_TRAITS_MEMBER(navigation_timing)
IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id)
+ IPC_STRUCT_TRAITS_MEMBER(has_user_gesture)
#if defined(OS_ANDROID)
IPC_STRUCT_TRAITS_MEMBER(data_url_as_string)
#endif
@@ -900,7 +901,7 @@ IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation,
content::ResourceResponseHead, /* response */
GURL, /* stream_url */
content::CommonNavigationParams, /* common_params */
- content::RequestNavigationParams) /* request_params */
+ content::RequestNavigationParams /* request_params */)
// PlzNavigate
// Tells the renderer that a navigation failed with the error code |error_code|

Powered by Google App Engine
This is Rietveld 408576698