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, | |
173 int pending_history_list_offset, | 174 int pending_history_list_offset, |
174 int current_history_list_offset, | 175 int current_history_list_offset, |
175 int current_history_list_length, | 176 int current_history_list_length, |
176 bool should_clear_history_list); | 177 bool should_clear_history_list); |
177 ~RequestNavigationParams(); | 178 ~RequestNavigationParams(); |
178 | 179 |
179 // Whether or not the user agent override string should be used. | 180 // Whether or not the user agent override string should be used. |
180 bool is_overriding_user_agent; | 181 bool is_overriding_user_agent; |
181 | 182 |
182 // The navigationStart time to expose through the Navigation Timing API to JS. | 183 // The navigationStart time to expose through the Navigation Timing API to JS. |
(...skipping 17 matching lines...) Expand all Loading... | |
200 | 201 |
201 // Opaque history state (received by ViewHostMsg_UpdateState). | 202 // Opaque history state (received by ViewHostMsg_UpdateState). |
202 PageState page_state; | 203 PageState page_state; |
203 | 204 |
204 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 205 // 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 | 206 // 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 | 207 // succeeds, then this page_id will be reflected in the resultant |
207 // FrameHostMsg_DidCommitProvisionalLoad message. | 208 // FrameHostMsg_DidCommitProvisionalLoad message. |
208 int32 page_id; | 209 int32 page_id; |
209 | 210 |
211 // This is the unique id of the NavigationEntry being navigated to. If the | |
212 // load succeeds, then this nav_entry_id will be reflected in the resultant | |
213 // FrameHostMsg_DidCommitProvisionalLoad message. | |
Charlie Reis
2015/04/22 05:27:25
It's 0 for renderer-initiated navigations, right?
Avi (use Gerrit)
2015/04/22 18:31:51
Done.
| |
214 int nav_entry_id; | |
215 | |
210 // For history navigations, this is the offset in the history list of the | 216 // For history navigations, this is the offset in the history list of the |
211 // pending load. For non-history navigations, this will be ignored. | 217 // pending load. For non-history navigations, this will be ignored. |
212 int pending_history_list_offset; | 218 int pending_history_list_offset; |
213 | 219 |
214 // Where its current page contents reside in session history and the total | 220 // Where its current page contents reside in session history and the total |
215 // size of the session history list. | 221 // size of the session history list. |
216 int current_history_list_offset; | 222 int current_history_list_offset; |
217 int current_history_list_length; | 223 int current_history_list_length; |
218 | 224 |
219 // Whether session history should be cleared. In that case, the RenderView | 225 // Whether session history should be cleared. In that case, the RenderView |
(...skipping 11 matching lines...) Expand all Loading... | |
231 ~NavigationParams(); | 237 ~NavigationParams(); |
232 | 238 |
233 CommonNavigationParams common_params; | 239 CommonNavigationParams common_params; |
234 StartNavigationParams start_params; | 240 StartNavigationParams start_params; |
235 RequestNavigationParams request_params; | 241 RequestNavigationParams request_params; |
236 }; | 242 }; |
237 | 243 |
238 } // namespace content | 244 } // namespace content |
239 | 245 |
240 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 246 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
OLD | NEW |