| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // size of the session history list. | 261 // size of the session history list. |
| 262 int current_history_list_offset; | 262 int current_history_list_offset; |
| 263 int current_history_list_length; | 263 int current_history_list_length; |
| 264 | 264 |
| 265 // Whether session history should be cleared. In that case, the RenderView | 265 // Whether session history should be cleared. In that case, the RenderView |
| 266 // needs to notify the browser that the clearing was succesful when the | 266 // needs to notify the browser that the clearing was succesful when the |
| 267 // navigation commits. | 267 // navigation commits. |
| 268 bool should_clear_history_list; | 268 bool should_clear_history_list; |
| 269 | 269 |
| 270 // PlzNavigate | 270 // PlzNavigate |
| 271 // The ServiceWorkerProviderHost ID used for navigations. | 271 // Whether a ServiceWorkerProviderHost should be created for the window. |
| 272 // Set to kInvalidServiceWorkerProviderId for sandboxed frames and sync loads. | 272 bool should_create_service_worker; |
| 273 // This parameter is not used in the current navigation architecture, where it | 273 |
| 274 // will always be equal to kInvalidServiceWorkerProviderId. | 274 // PlzNavigate |
| 275 // The ServiceWorkerProviderHost ID used for navigations, if it was already |
| 276 // created by the browser. Set to kInvalidServiceWorkerProviderId otherwise. |
| 277 // This parameter is not used in the current navigation architecture, where |
| 278 // it will always be equal to kInvalidServiceWorkerProviderId. |
| 275 int service_worker_provider_id; | 279 int service_worker_provider_id; |
| 276 }; | 280 }; |
| 277 | 281 |
| 278 // Helper struct keeping track in one place of all the parameters the browser | 282 // Helper struct keeping track in one place of all the parameters the browser |
| 279 // needs to provide to the renderer. | 283 // needs to provide to the renderer. |
| 280 struct NavigationParams { | 284 struct NavigationParams { |
| 281 NavigationParams(const CommonNavigationParams& common_params, | 285 NavigationParams(const CommonNavigationParams& common_params, |
| 282 const StartNavigationParams& start_params, | 286 const StartNavigationParams& start_params, |
| 283 const RequestNavigationParams& request_params); | 287 const RequestNavigationParams& request_params); |
| 284 ~NavigationParams(); | 288 ~NavigationParams(); |
| 285 | 289 |
| 286 CommonNavigationParams common_params; | 290 CommonNavigationParams common_params; |
| 287 StartNavigationParams start_params; | 291 StartNavigationParams start_params; |
| 288 RequestNavigationParams request_params; | 292 RequestNavigationParams request_params; |
| 289 }; | 293 }; |
| 290 | 294 |
| 291 } // namespace content | 295 } // namespace content |
| 292 | 296 |
| 293 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 297 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |