| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // Used by FrameMsg_Navigate. Holds the parameters needed by the renderer to | 159 // Used by FrameMsg_Navigate. Holds the parameters needed by the renderer to |
| 160 // start a browser-initiated navigation besides those in CommonNavigationParams. | 160 // start a browser-initiated navigation besides those in CommonNavigationParams. |
| 161 // PlzNavigate: sent to the renderer to make it issue a stream request for a | 161 // PlzNavigate: sent to the renderer to make it issue a stream request for a |
| 162 // navigation that is ready to commit. | 162 // navigation that is ready to commit. |
| 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, | |
| 170 base::Time request_time, | 169 base::Time request_time, |
| 171 const PageState& page_state, | 170 const PageState& page_state, |
| 172 int32 page_id, | 171 int32 page_id, |
| 173 int pending_history_list_offset, | 172 int pending_history_list_offset, |
| 174 int current_history_list_offset, | 173 int current_history_list_offset, |
| 175 int current_history_list_length, | 174 int current_history_list_length, |
| 176 bool should_clear_history_list); | 175 bool should_clear_history_list); |
| 177 ~RequestNavigationParams(); | 176 ~RequestNavigationParams(); |
| 178 | 177 |
| 179 // Whether or not the user agent override string should be used. | 178 // Whether or not the user agent override string should be used. |
| 180 bool is_overriding_user_agent; | 179 bool is_overriding_user_agent; |
| 181 | 180 |
| 182 // The navigationStart time to expose through the Navigation Timing API to JS. | 181 // The navigationStart time to expose through the Navigation Timing API to JS. |
| 183 base::TimeTicks browser_navigation_start; | 182 base::TimeTicks browser_navigation_start; |
| 184 | 183 |
| 185 // Any redirect URLs that occurred before |url|. Useful for cross-process | 184 // Any redirect URLs that occurred before |url|. Useful for cross-process |
| 186 // navigations; defaults to empty. | 185 // navigations; defaults to empty. |
| 187 std::vector<GURL> redirects; | 186 std::vector<GURL> redirects; |
| 188 | 187 |
| 189 // Whether or not this url should be allowed to access local file:// | 188 // Whether or not this url should be allowed to access local file:// |
| 190 // resources. | 189 // resources. |
| 191 bool can_load_local_resources; | 190 bool can_load_local_resources; |
| 192 | 191 |
| 193 // If not empty, which frame to navigate. | |
| 194 std::string frame_to_navigate; | |
| 195 | |
| 196 // The time the request was created. This is used by the old performance | 192 // The time the request was created. This is used by the old performance |
| 197 // infrastructure to set up DocumentState associated with the RenderView. | 193 // infrastructure to set up DocumentState associated with the RenderView. |
| 198 // TODO(ppi): make it go away. | 194 // TODO(ppi): make it go away. |
| 199 base::Time request_time; | 195 base::Time request_time; |
| 200 | 196 |
| 201 // Opaque history state (received by ViewHostMsg_UpdateState). | 197 // Opaque history state (received by ViewHostMsg_UpdateState). |
| 202 PageState page_state; | 198 PageState page_state; |
| 203 | 199 |
| 204 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 200 // 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 | 201 // Forward, and Reload navigations should have a valid page_id. If the load |
| (...skipping 25 matching lines...) Expand all Loading... |
| 231 ~NavigationParams(); | 227 ~NavigationParams(); |
| 232 | 228 |
| 233 CommonNavigationParams common_params; | 229 CommonNavigationParams common_params; |
| 234 StartNavigationParams start_params; | 230 StartNavigationParams start_params; |
| 235 RequestNavigationParams request_params; | 231 RequestNavigationParams request_params; |
| 236 }; | 232 }; |
| 237 | 233 |
| 238 } // namespace content | 234 } // namespace content |
| 239 | 235 |
| 240 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 236 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |