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 <map> | 10 #include <map> |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 // Timing of navigation events. | 318 // Timing of navigation events. |
319 NavigationTiming navigation_timing; | 319 NavigationTiming navigation_timing; |
320 | 320 |
321 // PlzNavigate | 321 // PlzNavigate |
322 // The ServiceWorkerProviderHost ID used for navigations, if it was already | 322 // The ServiceWorkerProviderHost ID used for navigations, if it was already |
323 // created by the browser. Set to kInvalidServiceWorkerProviderId otherwise. | 323 // created by the browser. Set to kInvalidServiceWorkerProviderId otherwise. |
324 // This parameter is not used in the current navigation architecture, where | 324 // This parameter is not used in the current navigation architecture, where |
325 // it will always be equal to kInvalidServiceWorkerProviderId. | 325 // it will always be equal to kInvalidServiceWorkerProviderId. |
326 int service_worker_provider_id; | 326 int service_worker_provider_id; |
327 | 327 |
| 328 // PlzNavigate |
| 329 // The AppCache host id to be used to identify this navigation. |
| 330 int appcache_host_id; |
| 331 |
328 // True if the navigation originated due to a user gesture. | 332 // True if the navigation originated due to a user gesture. |
329 bool has_user_gesture; | 333 bool has_user_gesture; |
330 | 334 |
331 #if defined(OS_ANDROID) | 335 #if defined(OS_ANDROID) |
332 // The real content of the data: URL. Only used in Android WebView for | 336 // The real content of the data: URL. Only used in Android WebView for |
333 // implementing LoadDataWithBaseUrl API method to circumvent the restriction | 337 // implementing LoadDataWithBaseUrl API method to circumvent the restriction |
334 // on the GURL max length in the IPC layer. Short data: URLs can still be | 338 // on the GURL max length in the IPC layer. Short data: URLs can still be |
335 // passed in the |CommonNavigationParams::url| field. | 339 // passed in the |CommonNavigationParams::url| field. |
336 std::string data_url_as_string; | 340 std::string data_url_as_string; |
337 #endif | 341 #endif |
338 }; | 342 }; |
339 | 343 |
340 // Helper struct keeping track in one place of all the parameters the browser | 344 // Helper struct keeping track in one place of all the parameters the browser |
341 // needs to provide to the renderer. | 345 // needs to provide to the renderer. |
342 struct NavigationParams { | 346 struct NavigationParams { |
343 NavigationParams(const CommonNavigationParams& common_params, | 347 NavigationParams(const CommonNavigationParams& common_params, |
344 const StartNavigationParams& start_params, | 348 const StartNavigationParams& start_params, |
345 const RequestNavigationParams& request_params); | 349 const RequestNavigationParams& request_params); |
346 ~NavigationParams(); | 350 ~NavigationParams(); |
347 | 351 |
348 CommonNavigationParams common_params; | 352 CommonNavigationParams common_params; |
349 StartNavigationParams start_params; | 353 StartNavigationParams start_params; |
350 RequestNavigationParams request_params; | 354 RequestNavigationParams request_params; |
351 }; | 355 }; |
352 | 356 |
353 } // namespace content | 357 } // namespace content |
354 | 358 |
355 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 359 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
OLD | NEW |