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

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

Issue 1399363004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Kinuko's comments Created 5 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // size of the session history list. 278 // size of the session history list.
279 int current_history_list_offset; 279 int current_history_list_offset;
280 int current_history_list_length; 280 int current_history_list_length;
281 281
282 // Whether session history should be cleared. In that case, the RenderView 282 // Whether session history should be cleared. In that case, the RenderView
283 // needs to notify the browser that the clearing was succesful when the 283 // needs to notify the browser that the clearing was succesful when the
284 // navigation commits. 284 // navigation commits.
285 bool should_clear_history_list; 285 bool should_clear_history_list;
286 286
287 // PlzNavigate 287 // PlzNavigate
288 // The ServiceWorkerProviderHost ID used for navigations. 288 // Whether a ServiceWorkerProviderHost should be created for the window.
289 // Set to kInvalidServiceWorkerProviderId for sandboxed frames and sync loads. 289 bool should_create_service_worker;
290 // This parameter is not used in the current navigation architecture, where it 290
291 // will always be equal to kInvalidServiceWorkerProviderId. 291 // PlzNavigate
292 // The ServiceWorkerProviderHost ID used for navigations, if it was already
293 // created by the browser. Set to kInvalidServiceWorkerProviderId otherwise.
294 // This parameter is not used in the current navigation architecture, where
295 // it will always be equal to kInvalidServiceWorkerProviderId.
292 int service_worker_provider_id; 296 int service_worker_provider_id;
293 }; 297 };
294 298
295 // Helper struct keeping track in one place of all the parameters the browser 299 // Helper struct keeping track in one place of all the parameters the browser
296 // needs to provide to the renderer. 300 // needs to provide to the renderer.
297 struct NavigationParams { 301 struct NavigationParams {
298 NavigationParams(const CommonNavigationParams& common_params, 302 NavigationParams(const CommonNavigationParams& common_params,
299 const StartNavigationParams& start_params, 303 const StartNavigationParams& start_params,
300 const RequestNavigationParams& request_params); 304 const RequestNavigationParams& request_params);
301 ~NavigationParams(); 305 ~NavigationParams();
302 306
303 CommonNavigationParams common_params; 307 CommonNavigationParams common_params;
304 StartNavigationParams start_params; 308 StartNavigationParams start_params;
305 RequestNavigationParams request_params; 309 RequestNavigationParams request_params;
306 }; 310 };
307 311
308 } // namespace content 312 } // namespace content
309 313
310 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ 314 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698