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

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

Issue 2496593002: Adding an experimental flag to block autoplay with sound in cross-origin iframes (Closed)
Patch Set: nits 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
« no previous file with comments | « content/public/common/content_features.h ('k') | content/public/common/web_preferences.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 const base::Feature kServiceWorkerPaymentApps{ 247 const base::Feature kServiceWorkerPaymentApps{
248 "ServiceWorkerPaymentApps", 248 "ServiceWorkerPaymentApps",
249 base::FEATURE_DISABLED_BY_DEFAULT}; 249 base::FEATURE_DISABLED_BY_DEFAULT};
250 250
251 // The JavaScript API for payments on the web. 251 // The JavaScript API for payments on the web.
252 const base::Feature kWebPayments{"WebPayments", 252 const base::Feature kWebPayments{"WebPayments",
253 base::FEATURE_ENABLED_BY_DEFAULT}; 253 base::FEATURE_ENABLED_BY_DEFAULT};
254 254
255 #endif 255 #endif
256 256
257 #if !defined(OS_ANDROID)
258 // Controls whether media playback in cross-origin iframes is enabled. The
259 // feature overrides |kDisableGestureRequirementForMediaPlayback|.
260 const base::Feature kCrossOriginMediaPlaybackRequiresUserGesture{
261 "CrossOriginMediaPlaybackRequiresUserGesture",
262 base::FEATURE_DISABLED_BY_DEFAULT};
263 #endif // !defined(OS_ANDROID)
264
257 #if defined(OS_WIN) 265 #if defined(OS_WIN)
258 // Emergency "off switch" for new Windows sandbox security mitigation, 266 // Emergency "off switch" for new Windows sandbox security mitigation,
259 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 267 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
260 const base::Feature kWinSboxDisableExtensionPoints{ 268 const base::Feature kWinSboxDisableExtensionPoints{
261 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 269 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
262 #endif 270 #endif
263 271
264 } // namespace features 272 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | content/public/common/web_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698