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

Unified 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, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: content/common/navigation_params.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index 8093623e59a53b8423a23f21a2d91f88905a399b..cf3d89a2cbb2fb9473b23918cecb02e030a3d161 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -285,10 +285,14 @@ struct CONTENT_EXPORT RequestNavigationParams {
bool should_clear_history_list;
// PlzNavigate
- // The ServiceWorkerProviderHost ID used for navigations.
- // Set to kInvalidServiceWorkerProviderId for sandboxed frames and sync loads.
- // This parameter is not used in the current navigation architecture, where it
- // will always be equal to kInvalidServiceWorkerProviderId.
+ // Whether a ServiceWorkerProviderHost should be created for the window.
+ bool should_create_service_worker;
+
+ // PlzNavigate
+ // The ServiceWorkerProviderHost ID used for navigations, if it was already
+ // created by the browser. Set to kInvalidServiceWorkerProviderId otherwise.
+ // This parameter is not used in the current navigation architecture, where
+ // it will always be equal to kInvalidServiceWorkerProviderId.
int service_worker_provider_id;
};

Powered by Google App Engine
This is Rietveld 408576698