OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // This file defines all the public base::FeatureList features for the chrome | 5 // This file defines all the public base::FeatureList features for the chrome |
6 // module. | 6 // module. |
7 | 7 |
8 #ifndef CHROME_COMMON_CHROME_FEATURES_H_ | 8 #ifndef CHROME_COMMON_CHROME_FEATURES_H_ |
9 #define CHROME_COMMON_CHROME_FEATURES_H_ | 9 #define CHROME_COMMON_CHROME_FEATURES_H_ |
10 | 10 |
11 #include "base/feature_list.h" | 11 #include "base/feature_list.h" |
12 #include "chrome/common/features.h" | 12 #include "chrome/common/features.h" |
13 #include "extensions/features/features.h" | 13 #include "extensions/features/features.h" |
14 #include "ppapi/features/features.h" | 14 #include "ppapi/features/features.h" |
15 #include "printing/features/features.h" | 15 #include "printing/features/features.h" |
16 | 16 |
17 namespace features { | 17 namespace features { |
18 | 18 |
19 // All features in alphabetical order. The features should be documented | 19 // All features in alphabetical order. The features should be documented |
20 // alongside the definition of their values in the .cc file. | 20 // alongside the definition of their values in the .cc file. |
21 | 21 |
| 22 extern const base::Feature kAdsFeature; |
| 23 |
22 #if defined(OS_ANDROID) | 24 #if defined(OS_ANDROID) |
23 extern const base::Feature kAllowAutoplayUnmutedInWebappManifestScope; | 25 extern const base::Feature kAllowAutoplayUnmutedInWebappManifestScope; |
24 #endif // defined(OS_ANDROID) | 26 #endif // defined(OS_ANDROID) |
25 | 27 |
26 #if defined(OS_MACOSX) | 28 #if defined(OS_MACOSX) |
27 extern const base::Feature kAppleScriptExecuteJavaScript; | 29 extern const base::Feature kAppleScriptExecuteJavaScript; |
28 extern const base::Feature kViewsTaskManager; | 30 extern const base::Feature kViewsTaskManager; |
29 #endif // defined(OS_MACOSX) | 31 #endif // defined(OS_MACOSX) |
30 | 32 |
31 #if !defined(OS_ANDROID) | 33 #if !defined(OS_ANDROID) |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 #endif | 134 #endif |
133 | 135 |
134 extern const base::Feature kOfflinePageDownloadSuggestionsFeature; | 136 extern const base::Feature kOfflinePageDownloadSuggestionsFeature; |
135 | 137 |
136 #if !defined(OS_ANDROID) | 138 #if !defined(OS_ANDROID) |
137 extern const base::Feature kOneGoogleBarOnLocalNtp; | 139 extern const base::Feature kOneGoogleBarOnLocalNtp; |
138 #endif | 140 #endif |
139 | 141 |
140 extern const base::Feature kPermissionsBlacklist; | 142 extern const base::Feature kPermissionsBlacklist; |
141 | 143 |
| 144 extern const base::Feature kPreconnectMore; |
| 145 |
142 #if defined(OS_WIN) | 146 #if defined(OS_WIN) |
143 extern const base::Feature kDisablePostScriptPrinting; | 147 extern const base::Feature kDisablePostScriptPrinting; |
144 #endif | 148 #endif |
145 | 149 |
146 #if BUILDFLAG(ENABLE_PLUGINS) | 150 #if BUILDFLAG(ENABLE_PLUGINS) |
147 extern const base::Feature kPreferHtmlOverPlugins; | 151 extern const base::Feature kPreferHtmlOverPlugins; |
148 #endif | 152 #endif |
149 | 153 |
150 extern const base::Feature kPrefService; | 154 extern const base::Feature kPrefService; |
151 | 155 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 #endif // defined(OS_CHROMEOS) | 214 #endif // defined(OS_CHROMEOS) |
211 | 215 |
212 bool PrefServiceEnabled(); | 216 bool PrefServiceEnabled(); |
213 | 217 |
214 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in | 218 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in |
215 // alphabetical order, or in one of the ifdefs (also in order in each section). | 219 // alphabetical order, or in one of the ifdefs (also in order in each section). |
216 | 220 |
217 } // namespace features | 221 } // namespace features |
218 | 222 |
219 #endif // CHROME_COMMON_CHROME_FEATURES_H_ | 223 #endif // CHROME_COMMON_CHROME_FEATURES_H_ |
OLD | NEW |