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 #if defined(OS_ANDROID) | 332 #if defined(OS_ANDROID) |
329 // The real content of the data: URL. Only used in Android WebView for | 333 // The real content of the data: URL. Only used in Android WebView for |
330 // implementing LoadDataWithBaseUrl API method to circumvent the restriction | 334 // implementing LoadDataWithBaseUrl API method to circumvent the restriction |
331 // on the GURL max length in the IPC layer. Short data: URLs can still be | 335 // on the GURL max length in the IPC layer. Short data: URLs can still be |
332 // passed in the |CommonNavigationParams::url| field. | 336 // passed in the |CommonNavigationParams::url| field. |
333 std::string data_url_as_string; | 337 std::string data_url_as_string; |
334 #endif | 338 #endif |
335 }; | 339 }; |
336 | 340 |
337 // Helper struct keeping track in one place of all the parameters the browser | 341 // Helper struct keeping track in one place of all the parameters the browser |
338 // needs to provide to the renderer. | 342 // needs to provide to the renderer. |
339 struct NavigationParams { | 343 struct NavigationParams { |
340 NavigationParams(const CommonNavigationParams& common_params, | 344 NavigationParams(const CommonNavigationParams& common_params, |
341 const StartNavigationParams& start_params, | 345 const StartNavigationParams& start_params, |
342 const RequestNavigationParams& request_params); | 346 const RequestNavigationParams& request_params); |
343 ~NavigationParams(); | 347 ~NavigationParams(); |
344 | 348 |
345 CommonNavigationParams common_params; | 349 CommonNavigationParams common_params; |
346 StartNavigationParams start_params; | 350 StartNavigationParams start_params; |
347 RequestNavigationParams request_params; | 351 RequestNavigationParams request_params; |
348 }; | 352 }; |
349 | 353 |
350 } // namespace content | 354 } // namespace content |
351 | 355 |
352 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 356 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
OLD | NEW |