1 // Copyright 2022 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef BASE_FEATURES_H_
6 #define BASE_FEATURES_H_
8 #include "base/base_export.h"
9 #include "base/feature_list.h"
10 #include "base/metrics/field_trial_params.h"
12 namespace base::features {
14 // All features in alphabetical order. The features should be documented
15 // alongside the definition of their values in the .cc file.
18 BASE_EXPORT BASE_DECLARE_FEATURE(kEnforceNoExecutableFileHandles);
20 BASE_EXPORT BASE_DECLARE_FEATURE(kNotReachedIsFatal);
22 BASE_EXPORT BASE_DECLARE_FEATURE(kOptimizeDataUrls);
24 BASE_EXPORT BASE_DECLARE_FEATURE(kUseRustJsonParser);
26 BASE_EXPORT BASE_DECLARE_FEATURE(kJsonNegativeZero);
28 #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_CHROMEOS)
29 BASE_EXPORT BASE_DECLARE_FEATURE(kPartialLowEndModeOn3GbDevices);
30 BASE_EXPORT BASE_DECLARE_FEATURE(kPartialLowEndModeOnMidRangeDevices);
33 #if BUILDFLAG(IS_ANDROID)
34 BASE_EXPORT BASE_DECLARE_FEATURE(kCollectAndroidFrameTimelineMetrics);
37 } // namespace base::features
39 #endif // BASE_FEATURES_H_