| 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" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/common/frame_message_enums.h" | 13 #include "content/common/frame_message_enums.h" |
| 14 #include "content/public/common/data_reduction_proxy_lofi_user_data.h" |
| 14 #include "content/public/common/page_state.h" | 15 #include "content/public/common/page_state.h" |
| 15 #include "content/public/common/referrer.h" | 16 #include "content/public/common/referrer.h" |
| 16 #include "ui/base/page_transition_types.h" | 17 #include "ui/base/page_transition_types.h" |
| 17 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 18 | 19 |
| 19 namespace base { | 20 namespace base { |
| 20 class RefCountedMemory; | 21 class RefCountedMemory; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace content { | 24 namespace content { |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 251 |
| 251 // Where its current page contents reside in session history and the total | 252 // Where its current page contents reside in session history and the total |
| 252 // size of the session history list. | 253 // size of the session history list. |
| 253 int current_history_list_offset; | 254 int current_history_list_offset; |
| 254 int current_history_list_length; | 255 int current_history_list_length; |
| 255 | 256 |
| 256 // Whether session history should be cleared. In that case, the RenderView | 257 // Whether session history should be cleared. In that case, the RenderView |
| 257 // needs to notify the browser that the clearing was succesful when the | 258 // needs to notify the browser that the clearing was succesful when the |
| 258 // navigation commits. | 259 // navigation commits. |
| 259 bool should_clear_history_list; | 260 bool should_clear_history_list; |
| 261 |
| 262 // Whether or not to request a LoFi version of the document or let the browser |
| 263 // decide. |
| 264 LoFiState lofi_state; |
| 260 }; | 265 }; |
| 261 | 266 |
| 262 // Helper struct keeping track in one place of all the parameters the browser | 267 // Helper struct keeping track in one place of all the parameters the browser |
| 263 // needs to provide to the renderer. | 268 // needs to provide to the renderer. |
| 264 struct NavigationParams { | 269 struct NavigationParams { |
| 265 NavigationParams(const CommonNavigationParams& common_params, | 270 NavigationParams(const CommonNavigationParams& common_params, |
| 266 const StartNavigationParams& start_params, | 271 const StartNavigationParams& start_params, |
| 267 const RequestNavigationParams& request_params); | 272 const RequestNavigationParams& request_params); |
| 268 ~NavigationParams(); | 273 ~NavigationParams(); |
| 269 | 274 |
| 270 CommonNavigationParams common_params; | 275 CommonNavigationParams common_params; |
| 271 StartNavigationParams start_params; | 276 StartNavigationParams start_params; |
| 272 RequestNavigationParams request_params; | 277 RequestNavigationParams request_params; |
| 273 }; | 278 }; |
| 274 | 279 |
| 275 } // namespace content | 280 } // namespace content |
| 276 | 281 |
| 277 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 282 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |