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

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

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Add DCHECKs for PlzNavigate and fix a double Release problem which caused one unit_test to fail wit… Created 4 years, 1 month 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 // PlzNavigate 317 // PlzNavigate
318 // The ServiceWorkerProviderHost ID used for navigations, if it was already 318 // The ServiceWorkerProviderHost ID used for navigations, if it was already
319 // created by the browser. Set to kInvalidServiceWorkerProviderId otherwise. 319 // created by the browser. Set to kInvalidServiceWorkerProviderId otherwise.
320 // This parameter is not used in the current navigation architecture, where 320 // This parameter is not used in the current navigation architecture, where
321 // it will always be equal to kInvalidServiceWorkerProviderId. 321 // it will always be equal to kInvalidServiceWorkerProviderId.
322 int service_worker_provider_id; 322 int service_worker_provider_id;
323 323
324 // True if the navigation originated due to a user gesture. 324 // True if the navigation originated due to a user gesture.
325 bool has_user_gesture; 325 bool has_user_gesture;
326 326
327 // The host id to be used to identify this navigation.
michaeln 2016/11/22 00:17:27 annotate with PlzNavigate, might be nice to put mo
ananta 2016/11/23 04:05:15 Done.
328 int appcache_host_id;
329
327 #if defined(OS_ANDROID) 330 #if defined(OS_ANDROID)
328 // The real content of the data: URL. Only used in Android WebView for 331 // The real content of the data: URL. Only used in Android WebView for
329 // implementing LoadDataWithBaseUrl API method to circumvent the restriction 332 // implementing LoadDataWithBaseUrl API method to circumvent the restriction
330 // on the GURL max length in the IPC layer. Short data: URLs can still be 333 // on the GURL max length in the IPC layer. Short data: URLs can still be
331 // passed in the |CommonNavigationParams::url| field. 334 // passed in the |CommonNavigationParams::url| field.
332 std::string data_url_as_string; 335 std::string data_url_as_string;
333 #endif 336 #endif
334 }; 337 };
335 338
336 // Helper struct keeping track in one place of all the parameters the browser 339 // Helper struct keeping track in one place of all the parameters the browser
337 // needs to provide to the renderer. 340 // needs to provide to the renderer.
338 struct NavigationParams { 341 struct NavigationParams {
339 NavigationParams(const CommonNavigationParams& common_params, 342 NavigationParams(const CommonNavigationParams& common_params,
340 const StartNavigationParams& start_params, 343 const StartNavigationParams& start_params,
341 const RequestNavigationParams& request_params); 344 const RequestNavigationParams& request_params);
342 ~NavigationParams(); 345 ~NavigationParams();
343 346
344 CommonNavigationParams common_params; 347 CommonNavigationParams common_params;
345 StartNavigationParams start_params; 348 StartNavigationParams start_params;
346 RequestNavigationParams request_params; 349 RequestNavigationParams request_params;
347 }; 350 };
348 351
349 } // namespace content 352 } // namespace content
350 353
351 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ 354 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698