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

Side by Side Diff: content/public/browser/navigation_controller.h

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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 bool can_load_local_resources; 170 bool can_load_local_resources;
171 171
172 // Indicates whether this navigation should replace the current 172 // Indicates whether this navigation should replace the current
173 // navigation entry. 173 // navigation entry.
174 bool should_replace_current_entry; 174 bool should_replace_current_entry;
175 175
176 // Used to specify which frame to navigate. If empty, the main frame is 176 // Used to specify which frame to navigate. If empty, the main frame is
177 // navigated. This is currently only used in tests. 177 // navigated. This is currently only used in tests.
178 std::string frame_name; 178 std::string frame_name;
179 179
180 #if defined(OS_ANDROID)
181 // On Android, for a load triggered by an intent, the time Chrome received
182 // the original intent that prompted the load (in milliseconds active time
183 // since boot).
184 int64 intent_received_timestamp;
185
186 // When Chrome launches the intent chooser, user can select Chrome itself to
187 // open the intent. In this case, we should carry over the user gesture.
188 bool has_user_gesture;
189 #endif
190
180 // Indicates that during this navigation, the session history should be 191 // Indicates that during this navigation, the session history should be
181 // cleared such that the resulting page is the first and only entry of the 192 // cleared such that the resulting page is the first and only entry of the
182 // session history. 193 // session history.
183 // 194 //
184 // The clearing is done asynchronously, and completes when this navigation 195 // The clearing is done asynchronously, and completes when this navigation
185 // commits. 196 // commits.
186 bool should_clear_history_list; 197 bool should_clear_history_list;
187 198
188 #if defined(OS_ANDROID)
189 // On Android, for a load triggered by an intent, the time Chrome received
190 // the original intent that prompted the load (in milliseconds active time
191 // since boot).
192 int64 intent_received_timestamp;
193 #endif
194
195 explicit LoadURLParams(const GURL& url); 199 explicit LoadURLParams(const GURL& url);
196 ~LoadURLParams(); 200 ~LoadURLParams();
197 201
198 // Allows copying of LoadURLParams struct. 202 // Allows copying of LoadURLParams struct.
199 LoadURLParams(const LoadURLParams& other); 203 LoadURLParams(const LoadURLParams& other);
200 LoadURLParams& operator=(const LoadURLParams& other); 204 LoadURLParams& operator=(const LoadURLParams& other);
201 }; 205 };
202 206
203 // Disables checking for a repost and prompting the user. This is used during 207 // Disables checking for a repost and prompting the user. This is used during
204 // testing. 208 // testing.
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 467
464 private: 468 private:
465 // This interface should only be implemented inside content. 469 // This interface should only be implemented inside content.
466 friend class NavigationControllerImpl; 470 friend class NavigationControllerImpl;
467 NavigationController() {} 471 NavigationController() {}
468 }; 472 };
469 473
470 } // namespace content 474 } // namespace content
471 475
472 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 476 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698