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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 #endif | 136 #endif |
135 | 137 |
136 extern const base::Feature kOfflinePageDownloadSuggestionsFeature; | 138 extern const base::Feature kOfflinePageDownloadSuggestionsFeature; |
137 | 139 |
138 #if !defined(OS_ANDROID) | 140 #if !defined(OS_ANDROID) |
139 extern const base::Feature kOneGoogleBarOnLocalNtp; | 141 extern const base::Feature kOneGoogleBarOnLocalNtp; |
140 #endif | 142 #endif |
141 | 143 |
142 extern const base::Feature kPermissionsBlacklist; | 144 extern const base::Feature kPermissionsBlacklist; |
143 | 145 |
| 146 extern const base::Feature kPreconnectMore; |
| 147 |
144 #if defined(OS_WIN) | 148 #if defined(OS_WIN) |
145 extern const base::Feature kDisablePostScriptPrinting; | 149 extern const base::Feature kDisablePostScriptPrinting; |
146 #endif | 150 #endif |
147 | 151 |
148 #if BUILDFLAG(ENABLE_PLUGINS) | 152 #if BUILDFLAG(ENABLE_PLUGINS) |
149 extern const base::Feature kPreferHtmlOverPlugins; | 153 extern const base::Feature kPreferHtmlOverPlugins; |
150 #endif | 154 #endif |
151 | 155 |
152 extern const base::Feature kPrefService; | 156 extern const base::Feature kPrefService; |
153 | 157 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 #endif // defined(OS_CHROMEOS) | 216 #endif // defined(OS_CHROMEOS) |
213 | 217 |
214 bool PrefServiceEnabled(); | 218 bool PrefServiceEnabled(); |
215 | 219 |
216 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in | 220 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in |
217 // alphabetical order, or in one of the ifdefs (also in order in each section). | 221 // alphabetical order, or in one of the ifdefs (also in order in each section). |
218 | 222 |
219 } // namespace features | 223 } // namespace features |
220 | 224 |
221 #endif // CHROME_COMMON_CHROME_FEATURES_H_ | 225 #endif // CHROME_COMMON_CHROME_FEATURES_H_ |
OLD | NEW |