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

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

Issue 2350423003: [Tentaive patch for discussion] Add Purge+Suspend metrics as UMA.
Patch Set: Fixed misuse of CanPurgeAndSuspend Created 4 years, 2 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // Pointer events support. 118 // Pointer events support.
119 const base::Feature kPointerEvents{"PointerEvent", 119 const base::Feature kPointerEvents{"PointerEvent",
120 base::FEATURE_ENABLED_BY_DEFAULT}; 120 base::FEATURE_ENABLED_BY_DEFAULT};
121 121
122 // Whether pointer event capturing follow v1 spec instead of v2 proposal. 122 // Whether pointer event capturing follow v1 spec instead of v2 proposal.
123 // See https://rawgit.com/w3c/pointerevents/reduce-hit-tests/index.html. 123 // See https://rawgit.com/w3c/pointerevents/reduce-hit-tests/index.html.
124 const base::Feature kPointerEventV1SpecCapturing{ 124 const base::Feature kPointerEventV1SpecCapturing{
125 "PointerEventV1SpecCapturing", base::FEATURE_DISABLED_BY_DEFAULT}; 125 "PointerEventV1SpecCapturing", base::FEATURE_DISABLED_BY_DEFAULT};
126 126
127 // Purge and suspend for background renderers.
128 const base::Feature kPurgeAndSuspend{"PurgeAndSuspend",
129 base::FEATURE_DISABLED_BY_DEFAULT};
130
127 // RAF aligned input events support. 131 // RAF aligned input events support.
128 const base::Feature kRafAlignedInputEvents{"RafAlignedInput", 132 const base::Feature kRafAlignedInputEvents{"RafAlignedInput",
129 base::FEATURE_DISABLED_BY_DEFAULT}; 133 base::FEATURE_DISABLED_BY_DEFAULT};
130 134
131 // If Pepper 3D Image Chromium is allowed, this feature controls whether it is 135 // If Pepper 3D Image Chromium is allowed, this feature controls whether it is
132 // enabled. 136 // enabled.
133 const base::Feature kPepper3DImageChromium{"Pepper3DImageChromium", 137 const base::Feature kPepper3DImageChromium{"Pepper3DImageChromium",
134 base::FEATURE_ENABLED_BY_DEFAULT}; 138 base::FEATURE_ENABLED_BY_DEFAULT};
135 139
136 // Throttle Blink's rendering pipeline based on frame visibility. 140 // Throttle Blink's rendering pipeline based on frame visibility.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 #endif 208 #endif
205 209
206 #if defined(OS_WIN) 210 #if defined(OS_WIN)
207 // Emergency "off switch" for new Windows sandbox security mitigation, 211 // Emergency "off switch" for new Windows sandbox security mitigation,
208 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. 212 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE.
209 const base::Feature kWinSboxDisableExtensionPoints{ 213 const base::Feature kWinSboxDisableExtensionPoints{
210 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; 214 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT};
211 #endif 215 #endif
212 216
213 } // namespace features 217 } // namespace features
OLDNEW
« no previous file with comments | « content/public/common/content_features.h ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698