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

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: 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/navigation_params.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index f737d0d90e28eb9e16a79445267f0156b3790b6a..e6eb447fd04f743825d9f1308e89c112f855b4ef 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -180,9 +180,6 @@ struct CONTENT_EXPORT BeginNavigationParams {
struct CONTENT_EXPORT StartNavigationParams {
StartNavigationParams();
StartNavigationParams(const std::string& extra_headers,
-#if defined(OS_ANDROID)
- bool has_user_gesture,
-#endif
int transferred_request_child_id,
int transferred_request_request_id);
StartNavigationParams(const StartNavigationParams& other);
@@ -191,10 +188,6 @@ struct CONTENT_EXPORT StartNavigationParams {
// Extra headers (separated by \n) to send during the request.
std::string extra_headers;
-#if defined(OS_ANDROID)
- bool has_user_gesture;
-#endif
-
// The following two members identify a previous request that has been
// created before this navigation is being transferred to a new process.
// This serves the purpose of recycling the old request.
@@ -235,7 +228,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 +328,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;
+
#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

Powered by Google App Engine
This is Rietveld 408576698