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

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

Issue 2837023002: Create autoplay policy flag and merge cross-origin autoplay blocking into it. (Closed)
Patch Set: fix tests Created 3 years, 7 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
« no previous file with comments | « content/public/common/content_features.h ('k') | media/base/media_switches.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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // https://w3c.github.io/web-nfc/ 322 // https://w3c.github.io/web-nfc/
323 const base::Feature kWebNfc{"WebNFC", base::FEATURE_DISABLED_BY_DEFAULT}; 323 const base::Feature kWebNfc{"WebNFC", base::FEATURE_DISABLED_BY_DEFAULT};
324 #endif 324 #endif
325 325
326 #if !defined(OS_ANDROID) 326 #if !defined(OS_ANDROID)
327 // The JavaScript API for payments on the web. 327 // The JavaScript API for payments on the web.
328 const base::Feature kWebPayments{"WebPayments", 328 const base::Feature kWebPayments{"WebPayments",
329 base::FEATURE_DISABLED_BY_DEFAULT}; 329 base::FEATURE_DISABLED_BY_DEFAULT};
330 #endif 330 #endif
331 331
332 #if !defined(OS_ANDROID)
333 // Controls whether media playback in cross-origin iframes is enabled. The
334 // feature overrides |kDisableGestureRequirementForMediaPlayback|.
335 const base::Feature kCrossOriginMediaPlaybackRequiresUserGesture{
336 "CrossOriginMediaPlaybackRequiresUserGesture",
337 base::FEATURE_DISABLED_BY_DEFAULT};
338 #endif // !defined(OS_ANDROID)
339
340 #if defined(OS_WIN) 332 #if defined(OS_WIN)
341 // Emergency "off switch" for new Windows sandbox security mitigation, 333 // Emergency "off switch" for new Windows sandbox security mitigation,
342 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 334 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
343 const base::Feature kWinSboxDisableExtensionPoints{ 335 const base::Feature kWinSboxDisableExtensionPoints{
344 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 336 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
345 #endif 337 #endif
346 338
347 } // namespace features 339 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | media/base/media_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698