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

Unified Diff: content/common/navigation_params.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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/navigation_params.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index f737d0d90e28eb9e16a79445267f0156b3790b6a..976729c0fc226bd4d719bac17ca2ba6a3f24019d 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -235,7 +235,8 @@ struct CONTENT_EXPORT 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);
RequestNavigationParams(const RequestNavigationParams& other);
~RequestNavigationParams();
@@ -334,6 +335,9 @@ struct CONTENT_EXPORT RequestNavigationParams {
// it will always be equal to kInvalidServiceWorkerProviderId.
int service_worker_provider_id;
+ // True if the navigation originated due to a user gesture.
+ bool has_user_gesture;
jam 2016/09/29 21:40:43 now this can be removed from StartNavigationParams
ananta 2016/09/29 22:07:37 Done.
+
#if defined(OS_ANDROID)
// The real content of the data: URL. Only used in Android WebView for
// implementing LoadDataWithBaseUrl API method to circumvent the restriction
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698