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

Side by Side Diff: content/public/common/content_features.cc

Issue 2637763002: Enable ServiceWorkerNavigationPreload by default for Origin-Trial. (Closed)
Patch Set: incorporated kinuko's comment Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "content/public/common/content_features.h" 6 #include "content/public/common/content_features.h"
7 7
8 namespace features { 8 namespace features {
9 9
10 // All features in alphabetical order. 10 // All features in alphabetical order.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 // Throttle Blink's rendering pipeline based on frame visibility. 183 // Throttle Blink's rendering pipeline based on frame visibility.
184 const base::Feature kRenderingPipelineThrottling{ 184 const base::Feature kRenderingPipelineThrottling{
185 "RenderingPipelineThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; 185 "RenderingPipelineThrottling", base::FEATURE_ENABLED_BY_DEFAULT};
186 186
187 // Scrolls to compensate for layout movements (bit.ly/scroll-anchoring). 187 // Scrolls to compensate for layout movements (bit.ly/scroll-anchoring).
188 const base::Feature kScrollAnchoring{"ScrollAnchoring", 188 const base::Feature kScrollAnchoring{"ScrollAnchoring",
189 base::FEATURE_ENABLED_BY_DEFAULT}; 189 base::FEATURE_ENABLED_BY_DEFAULT};
190 190
191 // Navigation preload feature of service workers. 191 // Navigation preload feature of service workers.
192 // TODO(horo): Revise link when this lands in the spec: 192 // Enables this base::Feature by default for Origin-Trial, but enables the
193 // https://github.com/w3c/ServiceWorker/pull/983/files 193 // corresponding blink::WebRuntimeFeatures only when '--enable-features' command
194 // line flag is given. See the comments in runtime_features.cc and
195 // service_worker_version.h for the details.
194 const base::Feature kServiceWorkerNavigationPreload{ 196 const base::Feature kServiceWorkerNavigationPreload{
195 "ServiceWorkerNavigationPreload", base::FEATURE_DISABLED_BY_DEFAULT}; 197 "ServiceWorkerNavigationPreload", base::FEATURE_ENABLED_BY_DEFAULT};
196 198
197 // http://tc39.github.io/ecmascript_sharedmem/shmem.html 199 // http://tc39.github.io/ecmascript_sharedmem/shmem.html
198 const base::Feature kSharedArrayBuffer{"SharedArrayBuffer", 200 const base::Feature kSharedArrayBuffer{"SharedArrayBuffer",
199 base::FEATURE_DISABLED_BY_DEFAULT}; 201 base::FEATURE_DISABLED_BY_DEFAULT};
200 202
201 // Speculatively launches Service Workers on mouse/touch events. 203 // Speculatively launches Service Workers on mouse/touch events.
202 const base::Feature kSpeculativeLaunchServiceWorker{ 204 const base::Feature kSpeculativeLaunchServiceWorker{
203 "SpeculativeLaunchServiceWorker", base::FEATURE_DISABLED_BY_DEFAULT}; 205 "SpeculativeLaunchServiceWorker", base::FEATURE_DISABLED_BY_DEFAULT};
204 206
205 // Enables implementation of the Cache-Control: stale-while-revalidate directive 207 // Enables implementation of the Cache-Control: stale-while-revalidate directive
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 #endif // !defined(OS_ANDROID) 285 #endif // !defined(OS_ANDROID)
284 286
285 #if defined(OS_WIN) 287 #if defined(OS_WIN)
286 // Emergency "off switch" for new Windows sandbox security mitigation, 288 // Emergency "off switch" for new Windows sandbox security mitigation,
287 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 289 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
288 const base::Feature kWinSboxDisableExtensionPoints{ 290 const base::Feature kWinSboxDisableExtensionPoints{
289 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 291 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
290 #endif 292 #endif
291 293
292 } // namespace features 294 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698