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

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

Issue 2830643002: [webnfc] Add WebNFC feature flag (Closed)
Patch Set: Rebased to master Created 3 years, 8 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 // Service worker based payment apps as defined by w3c here: 297 // Service worker based payment apps as defined by w3c here:
298 // https://w3c.github.io/webpayments-payment-apps-api/ 298 // https://w3c.github.io/webpayments-payment-apps-api/
299 const base::Feature kServiceWorkerPaymentApps{ 299 const base::Feature kServiceWorkerPaymentApps{
300 "ServiceWorkerPaymentApps", 300 "ServiceWorkerPaymentApps",
301 base::FEATURE_DISABLED_BY_DEFAULT}; 301 base::FEATURE_DISABLED_BY_DEFAULT};
302 302
303 // The JavaScript API for payments on the web. 303 // The JavaScript API for payments on the web.
304 const base::Feature kWebPayments{"WebPayments", 304 const base::Feature kWebPayments{"WebPayments",
305 base::FEATURE_ENABLED_BY_DEFAULT}; 305 base::FEATURE_ENABLED_BY_DEFAULT};
306 #else 306
307 // Controls whether the WebNFC API is enabled:
308 // https://w3c.github.io/web-nfc/
309 const base::Feature kWebNfc{"WebNFC", base::FEATURE_DISABLED_BY_DEFAULT};
310 #endif
311
312 #if !defined(OS_ANDROID)
307 // The JavaScript API for payments on the web. 313 // The JavaScript API for payments on the web.
308 const base::Feature kWebPayments{"WebPayments", 314 const base::Feature kWebPayments{"WebPayments",
309 base::FEATURE_DISABLED_BY_DEFAULT}; 315 base::FEATURE_DISABLED_BY_DEFAULT};
310 #endif 316 #endif
311 317
312 #if !defined(OS_ANDROID) 318 #if !defined(OS_ANDROID)
313 // Controls whether media playback in cross-origin iframes is enabled. The 319 // Controls whether media playback in cross-origin iframes is enabled. The
314 // feature overrides |kDisableGestureRequirementForMediaPlayback|. 320 // feature overrides |kDisableGestureRequirementForMediaPlayback|.
315 const base::Feature kCrossOriginMediaPlaybackRequiresUserGesture{ 321 const base::Feature kCrossOriginMediaPlaybackRequiresUserGesture{
316 "CrossOriginMediaPlaybackRequiresUserGesture", 322 "CrossOriginMediaPlaybackRequiresUserGesture",
317 base::FEATURE_DISABLED_BY_DEFAULT}; 323 base::FEATURE_DISABLED_BY_DEFAULT};
318 #endif // !defined(OS_ANDROID) 324 #endif // !defined(OS_ANDROID)
319 325
320 #if defined(OS_WIN) 326 #if defined(OS_WIN)
321 // Emergency "off switch" for new Windows sandbox security mitigation, 327 // Emergency "off switch" for new Windows sandbox security mitigation,
322 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 328 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
323 const base::Feature kWinSboxDisableExtensionPoints{ 329 const base::Feature kWinSboxDisableExtensionPoints{
324 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 330 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
325 #endif 331 #endif
326 332
327 } // namespace features 333 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | third_party/WebKit/Source/web/WebRuntimeFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698