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

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: Fix compile failures 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..fcf253974918e1846efb2b394e85fb71e8c9691b 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -357,9 +357,6 @@ IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::StartNavigationParams)
IPC_STRUCT_TRAITS_MEMBER(extra_headers)
-#if defined(OS_ANDROID)
- IPC_STRUCT_TRAITS_MEMBER(has_user_gesture)
-#endif
IPC_STRUCT_TRAITS_MEMBER(transferred_request_child_id)
IPC_STRUCT_TRAITS_MEMBER(transferred_request_request_id)
IPC_STRUCT_TRAITS_END()
@@ -391,6 +388,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 +898,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