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

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

Issue 2898663002: Implement feature policy checks in the browser process (Closed)
Patch Set: Implement feature policy checks in the browser process Created 3 years, 6 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') | content/public/test/test_renderer_host.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 // Groups all out-of-process iframes to a different process from the process of 247 // Groups all out-of-process iframes to a different process from the process of
248 // the top document. This is a performance isolation mode. Launch bug: 248 // the top document. This is a performance isolation mode. Launch bug:
249 // https://crbug.com/595987. 249 // https://crbug.com/595987.
250 const base::Feature kTopDocumentIsolation{"top-document-isolation", 250 const base::Feature kTopDocumentIsolation{"top-document-isolation",
251 base::FEATURE_DISABLED_BY_DEFAULT}; 251 base::FEATURE_DISABLED_BY_DEFAULT};
252 252
253 // Enables touchpad and wheel scroll latching. 253 // Enables touchpad and wheel scroll latching.
254 const base::Feature kTouchpadAndWheelScrollLatching{ 254 const base::Feature kTouchpadAndWheelScrollLatching{
255 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT}; 255 "TouchpadAndWheelScrollLatching", base::FEATURE_DISABLED_BY_DEFAULT};
256 256
257 // Use Feature Policy to gate the use of permission features like midi,
258 // geolocation, camera, microphone, etc.
259 const base::Feature kUseFeaturePolicyForPermissions{
260 "UseFeaturePolicyForPermissions", base::FEATURE_DISABLED_BY_DEFAULT};
261
257 // Controls whether vibrate requires user gesture. 262 // Controls whether vibrate requires user gesture.
258 const base::Feature kVibrateRequiresUserGesture{ 263 const base::Feature kVibrateRequiresUserGesture{
259 "VibrateRequiresUserGesture", base::FEATURE_ENABLED_BY_DEFAULT}; 264 "VibrateRequiresUserGesture", base::FEATURE_ENABLED_BY_DEFAULT};
260 265
261 // Enables VR UI. 266 // Enables VR UI.
262 const base::Feature kVrShell { 267 const base::Feature kVrShell {
263 "VrShell", 268 "VrShell",
264 #if defined(OS_ANDROID) 269 #if defined(OS_ANDROID)
265 base::FEATURE_ENABLED_BY_DEFAULT 270 base::FEATURE_ENABLED_BY_DEFAULT
266 #else 271 #else
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 #endif 360 #endif
356 361
357 #if defined(OS_WIN) 362 #if defined(OS_WIN)
358 // Emergency "off switch" for new Windows sandbox security mitigation, 363 // Emergency "off switch" for new Windows sandbox security mitigation,
359 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 364 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
360 const base::Feature kWinSboxDisableExtensionPoints{ 365 const base::Feature kWinSboxDisableExtensionPoints{
361 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 366 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
362 #endif 367 #endif
363 368
364 } // namespace features 369 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | content/public/test/test_renderer_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698