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

Side by Side Diff: content/common/navigation_params.cc

Issue 1243253004: Pass user gesture bit when chrome handles an intent fired by itself (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix findbugs warning Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/navigation_params.h" 5 #include "content/common/navigation_params.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/ref_counted_memory.h" 8 #include "base/memory/ref_counted_memory.h"
9 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 int load_flags, 66 int load_flags,
67 bool has_user_gesture) 67 bool has_user_gesture)
68 : method(method), 68 : method(method),
69 headers(headers), 69 headers(headers),
70 load_flags(load_flags), 70 load_flags(load_flags),
71 has_user_gesture(has_user_gesture) { 71 has_user_gesture(has_user_gesture) {
72 } 72 }
73 73
74 StartNavigationParams::StartNavigationParams() 74 StartNavigationParams::StartNavigationParams()
75 : is_post(false), 75 : is_post(false),
76 #if defined(OS_ANDROID)
77 has_user_gesture(false),
78 #endif
76 transferred_request_child_id(-1), 79 transferred_request_child_id(-1),
77 transferred_request_request_id(-1) { 80 transferred_request_request_id(-1) {
78 } 81 }
79 82
80 StartNavigationParams::StartNavigationParams( 83 StartNavigationParams::StartNavigationParams(
81 bool is_post, 84 bool is_post,
82 const std::string& extra_headers, 85 const std::string& extra_headers,
83 const std::vector<unsigned char>& browser_initiated_post_data, 86 const std::vector<unsigned char>& browser_initiated_post_data,
87 #if defined(OS_ANDROID)
88 bool has_user_gesture,
89 #endif
84 int transferred_request_child_id, 90 int transferred_request_child_id,
85 int transferred_request_request_id) 91 int transferred_request_request_id)
86 : is_post(is_post), 92 : is_post(is_post),
87 extra_headers(extra_headers), 93 extra_headers(extra_headers),
88 browser_initiated_post_data(browser_initiated_post_data), 94 browser_initiated_post_data(browser_initiated_post_data),
95 #if defined(OS_ANDROID)
96 has_user_gesture(has_user_gesture),
97 #endif
89 transferred_request_child_id(transferred_request_child_id), 98 transferred_request_child_id(transferred_request_child_id),
90 transferred_request_request_id(transferred_request_request_id) { 99 transferred_request_request_id(transferred_request_request_id) {
91 } 100 }
92 101
93 StartNavigationParams::~StartNavigationParams() { 102 StartNavigationParams::~StartNavigationParams() {
94 } 103 }
95 104
96 RequestNavigationParams::RequestNavigationParams() 105 RequestNavigationParams::RequestNavigationParams()
97 : is_overriding_user_agent(false), 106 : is_overriding_user_agent(false),
98 browser_navigation_start(base::TimeTicks::Now()), 107 browser_navigation_start(base::TimeTicks::Now()),
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 const RequestNavigationParams& request_params) 160 const RequestNavigationParams& request_params)
152 : common_params(common_params), 161 : common_params(common_params),
153 start_params(start_params), 162 start_params(start_params),
154 request_params(request_params) { 163 request_params(request_params) {
155 } 164 }
156 165
157 NavigationParams::~NavigationParams() { 166 NavigationParams::~NavigationParams() {
158 } 167 }
159 168
160 } // namespace content 169 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698