OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |