Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: content/common/navigation_params.h

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Maintain a refcounted instance of ChromeAppCacheService in the AppCacheNavigationHandleCore instanc… Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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;
clamy 2016/11/25 13:32:24 We've talked about introducing a navigation_id in
ananta 2016/11/28 21:36:53 If it ok with you we can look into this for a subs
clamy 2016/11/30 17:40:22 Acknowledged. As I mentioned, I don't feel strongl
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698