OLD | NEW |
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 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 5 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 struct CONTENT_EXPORT RequestNavigationParams { | 163 struct CONTENT_EXPORT RequestNavigationParams { |
164 RequestNavigationParams(); | 164 RequestNavigationParams(); |
165 RequestNavigationParams(bool is_overriding_user_agent, | 165 RequestNavigationParams(bool is_overriding_user_agent, |
166 base::TimeTicks navigation_start, | 166 base::TimeTicks navigation_start, |
167 const std::vector<GURL>& redirects, | 167 const std::vector<GURL>& redirects, |
168 bool can_load_local_resources, | 168 bool can_load_local_resources, |
169 const std::string& frame_to_navigate, | 169 const std::string& frame_to_navigate, |
170 base::Time request_time, | 170 base::Time request_time, |
171 const PageState& page_state, | 171 const PageState& page_state, |
172 int32 page_id, | 172 int32 page_id, |
| 173 int nav_entry_id, |
| 174 bool intended_as_new_entry, |
173 int pending_history_list_offset, | 175 int pending_history_list_offset, |
174 int current_history_list_offset, | 176 int current_history_list_offset, |
175 int current_history_list_length, | 177 int current_history_list_length, |
176 bool should_clear_history_list); | 178 bool should_clear_history_list); |
177 ~RequestNavigationParams(); | 179 ~RequestNavigationParams(); |
178 | 180 |
179 // Whether or not the user agent override string should be used. | 181 // Whether or not the user agent override string should be used. |
180 bool is_overriding_user_agent; | 182 bool is_overriding_user_agent; |
181 | 183 |
182 // The navigationStart time to expose through the Navigation Timing API to JS. | 184 // The navigationStart time to expose through the Navigation Timing API to JS. |
(...skipping 17 matching lines...) Expand all Loading... |
200 | 202 |
201 // Opaque history state (received by ViewHostMsg_UpdateState). | 203 // Opaque history state (received by ViewHostMsg_UpdateState). |
202 PageState page_state; | 204 PageState page_state; |
203 | 205 |
204 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 206 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
205 // Forward, and Reload navigations should have a valid page_id. If the load | 207 // Forward, and Reload navigations should have a valid page_id. If the load |
206 // succeeds, then this page_id will be reflected in the resultant | 208 // succeeds, then this page_id will be reflected in the resultant |
207 // FrameHostMsg_DidCommitProvisionalLoad message. | 209 // FrameHostMsg_DidCommitProvisionalLoad message. |
208 int32 page_id; | 210 int32 page_id; |
209 | 211 |
| 212 // For browser-initiated navigations, this is the unique id of the |
| 213 // NavigationEntry being navigated to. (For renderer-initiated navigations it |
| 214 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in |
| 215 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. |
| 216 int nav_entry_id; |
| 217 |
| 218 // For browser-initiated navigations, this is true if this is a new entry |
| 219 // being navigated to. This is false otherwise. TODO(avi): Remove this when |
| 220 // the pending entry situation is made sane and the browser keeps them around |
| 221 // long enough to match them via nav_entry_id, above. |
| 222 bool intended_as_new_entry; |
| 223 |
210 // For history navigations, this is the offset in the history list of the | 224 // For history navigations, this is the offset in the history list of the |
211 // pending load. For non-history navigations, this will be ignored. | 225 // pending load. For non-history navigations, this will be ignored. |
212 int pending_history_list_offset; | 226 int pending_history_list_offset; |
213 | 227 |
214 // Where its current page contents reside in session history and the total | 228 // Where its current page contents reside in session history and the total |
215 // size of the session history list. | 229 // size of the session history list. |
216 int current_history_list_offset; | 230 int current_history_list_offset; |
217 int current_history_list_length; | 231 int current_history_list_length; |
218 | 232 |
219 // Whether session history should be cleared. In that case, the RenderView | 233 // Whether session history should be cleared. In that case, the RenderView |
(...skipping 11 matching lines...) Expand all Loading... |
231 ~NavigationParams(); | 245 ~NavigationParams(); |
232 | 246 |
233 CommonNavigationParams common_params; | 247 CommonNavigationParams common_params; |
234 StartNavigationParams start_params; | 248 StartNavigationParams start_params; |
235 RequestNavigationParams request_params; | 249 RequestNavigationParams request_params; |
236 }; | 250 }; |
237 | 251 |
238 } // namespace content | 252 } // namespace content |
239 | 253 |
240 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 254 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
OLD | NEW |