| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 291 |
| 292 // Whether session history should be cleared. In that case, the RenderView | 292 // Whether session history should be cleared. In that case, the RenderView |
| 293 // needs to notify the browser that the clearing was succesful when the | 293 // needs to notify the browser that the clearing was succesful when the |
| 294 // navigation commits. | 294 // navigation commits. |
| 295 bool should_clear_history_list; | 295 bool should_clear_history_list; |
| 296 | 296 |
| 297 // PlzNavigate | 297 // PlzNavigate |
| 298 // Whether a ServiceWorkerProviderHost should be created for the window. | 298 // Whether a ServiceWorkerProviderHost should be created for the window. |
| 299 bool should_create_service_worker; | 299 bool should_create_service_worker; |
| 300 | 300 |
| 301 // PlzNavigate | |
| 302 // The ServiceWorkerProviderHost ID used for navigations, if it was already | |
| 303 // created by the browser. Set to kInvalidServiceWorkerProviderId otherwise. | |
| 304 // This parameter is not used in the current navigation architecture, where | |
| 305 // it will always be equal to kInvalidServiceWorkerProviderId. | |
| 306 int service_worker_provider_id; | |
| 307 | |
| 308 #if defined(OS_ANDROID) | 301 #if defined(OS_ANDROID) |
| 309 // The real content of the data: URL. Only used in Android WebView for | 302 // The real content of the data: URL. Only used in Android WebView for |
| 310 // implementing LoadDataWithBaseUrl API method to circumvent the restriction | 303 // implementing LoadDataWithBaseUrl API method to circumvent the restriction |
| 311 // on the GURL max length in the IPC layer. Short data: URLs can still be | 304 // on the GURL max length in the IPC layer. Short data: URLs can still be |
| 312 // passed in the |CommonNavigationParams::url| field. | 305 // passed in the |CommonNavigationParams::url| field. |
| 313 std::string data_url_as_string; | 306 std::string data_url_as_string; |
| 314 #endif | 307 #endif |
| 315 }; | 308 }; |
| 316 | 309 |
| 317 // Helper struct keeping track in one place of all the parameters the browser | 310 // Helper struct keeping track in one place of all the parameters the browser |
| 318 // needs to provide to the renderer. | 311 // needs to provide to the renderer. |
| 319 struct NavigationParams { | 312 struct NavigationParams { |
| 320 NavigationParams(const CommonNavigationParams& common_params, | 313 NavigationParams(const CommonNavigationParams& common_params, |
| 321 const StartNavigationParams& start_params, | 314 const StartNavigationParams& start_params, |
| 322 const RequestNavigationParams& request_params); | 315 const RequestNavigationParams& request_params); |
| 323 ~NavigationParams(); | 316 ~NavigationParams(); |
| 324 | 317 |
| 325 CommonNavigationParams common_params; | 318 CommonNavigationParams common_params; |
| 326 StartNavigationParams start_params; | 319 StartNavigationParams start_params; |
| 327 RequestNavigationParams request_params; | 320 RequestNavigationParams request_params; |
| 328 }; | 321 }; |
| 329 | 322 |
| 330 } // namespace content | 323 } // namespace content |
| 331 | 324 |
| 332 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 325 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |