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 "extensions/features/features.h" | 13 #include "extensions/features/features.h" |
13 #include "ppapi/features/features.h" | 14 #include "ppapi/features/features.h" |
14 #include "printing/features/features.h" | 15 #include "printing/features/features.h" |
15 | 16 |
16 namespace features { | 17 namespace features { |
17 | 18 |
18 // All features in alphabetical order. The features should be documented | 19 // All features in alphabetical order. The features should be documented |
19 // alongside the definition of their values in the .cc file. | 20 // alongside the definition of their values in the .cc file. |
20 | 21 |
21 #if defined(OS_ANDROID) | 22 #if defined(OS_ANDROID) |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 extern const base::Feature kMediaRemoting; | 110 extern const base::Feature kMediaRemoting; |
110 extern const base::Feature kMediaRemotingEncrypted; | 111 extern const base::Feature kMediaRemotingEncrypted; |
111 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 112 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
112 | 113 |
113 extern const base::Feature kModalPermissionPrompts; | 114 extern const base::Feature kModalPermissionPrompts; |
114 | 115 |
115 #if defined(OS_WIN) | 116 #if defined(OS_WIN) |
116 extern const base::Feature kModuleDatabase; | 117 extern const base::Feature kModuleDatabase; |
117 #endif | 118 #endif |
118 | 119 |
119 #if defined(OS_MACOSX) | 120 #if BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) |
120 extern const base::Feature kNativeNotifications; | 121 extern const base::Feature kNativeNotifications; |
121 #endif // defined(OS_MACOSX) | 122 #endif |
122 | 123 |
123 extern const base::Feature kOfflinePageDownloadSuggestionsFeature; | 124 extern const base::Feature kOfflinePageDownloadSuggestionsFeature; |
124 | 125 |
125 extern const base::Feature kPermissionsBlacklist; | 126 extern const base::Feature kPermissionsBlacklist; |
126 | 127 |
127 #if defined(OS_WIN) | 128 #if defined(OS_WIN) |
128 extern const base::Feature kPostScriptPrinting; | 129 extern const base::Feature kPostScriptPrinting; |
129 #endif | 130 #endif |
130 | 131 |
131 #if BUILDFLAG(ENABLE_PLUGINS) | 132 #if BUILDFLAG(ENABLE_PLUGINS) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 #endif // defined(OS_CHROMEOS) | 178 #endif // defined(OS_CHROMEOS) |
178 | 179 |
179 bool PrefServiceEnabled(); | 180 bool PrefServiceEnabled(); |
180 | 181 |
181 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in | 182 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in |
182 // alphabetical order, or in one of the ifdefs (also in order in each section). | 183 // alphabetical order, or in one of the ifdefs (also in order in each section). |
183 | 184 |
184 } // namespace features | 185 } // namespace features |
185 | 186 |
186 #endif // CHROME_COMMON_CHROME_FEATURES_H_ | 187 #endif // CHROME_COMMON_CHROME_FEATURES_H_ |
OLD | NEW |