ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / components / onc / onc_constants.h
blob6329ff821af026aad76573744e1f662fb9d73227
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef COMPONENTS_ONC_ONC_CONSTANTS_H_
5 #define COMPONENTS_ONC_ONC_CONSTANTS_H_
7 #include <string>
9 #include "components/onc/onc_export.h"
11 // Constants for ONC properties.
12 namespace onc {
14 // Indicates from which source an ONC blob comes from.
15 enum ONCSource {
16 ONC_SOURCE_UNKNOWN,
17 ONC_SOURCE_NONE,
18 ONC_SOURCE_USER_IMPORT,
19 ONC_SOURCE_DEVICE_POLICY,
20 ONC_SOURCE_USER_POLICY,
23 // These keys are used to augment the dictionary resulting from merging the
24 // different settings and policies.
26 // The setting that Shill declared to be using. For example, if no policy and no
27 // user setting exists, Shill might still report a property like network
28 // security options or a SSID.
29 ONC_EXPORT extern const char kAugmentationActiveSetting[];
30 // The one of different setting sources (user/device policy, user/shared
31 // settings) that has highest priority over the others.
32 ONC_EXPORT extern const char kAugmentationEffectiveSetting[];
33 ONC_EXPORT extern const char kAugmentationUserPolicy[];
34 ONC_EXPORT extern const char kAugmentationDevicePolicy[];
35 ONC_EXPORT extern const char kAugmentationUserSetting[];
36 ONC_EXPORT extern const char kAugmentationSharedSetting[];
37 ONC_EXPORT extern const char kAugmentationUserEditable[];
38 ONC_EXPORT extern const char kAugmentationDeviceEditable[];
40 // This is no ONC key or value but used for logging only.
41 // TODO(pneubeck): Remove.
42 ONC_EXPORT extern const char kNetworkConfiguration[];
44 // Common keys/values.
45 ONC_EXPORT extern const char kRecommended[];
46 ONC_EXPORT extern const char kRemove[];
48 // Top Level Configuration
49 namespace toplevel_config {
50 ONC_EXPORT extern const char kCertificates[];
51 ONC_EXPORT extern const char kEncryptedConfiguration[];
52 ONC_EXPORT extern const char kNetworkConfigurations[];
53 ONC_EXPORT extern const char kGlobalNetworkConfiguration[];
54 ONC_EXPORT extern const char kType[];
55 ONC_EXPORT extern const char kUnencryptedConfiguration[];
56 } // namespace toplevel_config
58 // NetworkConfiguration.
59 namespace network_config {
60 ONC_EXPORT extern const char kCellular[];
61 ONC_EXPORT extern const char kDevice[];
62 ONC_EXPORT extern const char kEthernet[];
63 ONC_EXPORT extern const char kGUID[];
64 ONC_EXPORT extern const char kIPAddressConfigType[];
65 ONC_EXPORT extern const char kIPConfigs[];
66 ONC_EXPORT extern const char kIPConfigTypeDHCP[];
67 ONC_EXPORT extern const char kIPConfigTypeStatic[];
68 ONC_EXPORT extern const char kSavedIPConfig[];
69 ONC_EXPORT extern const char kStaticIPConfig[];
70 ONC_EXPORT extern const char kMacAddress[];
71 ONC_EXPORT extern const char kNameServersConfigType[];
72 ONC_EXPORT extern const char kName[];
73 ONC_EXPORT extern const char kPriority[];
74 ONC_EXPORT extern const char kProxySettings[];
75 ONC_EXPORT extern const char kSource[];
76 ONC_EXPORT extern const char kSourceDevice[];
77 ONC_EXPORT extern const char kSourceDevicePolicy[];
78 ONC_EXPORT extern const char kSourceNone[];
79 ONC_EXPORT extern const char kSourceUser[];
80 ONC_EXPORT extern const char kSourceUserPolicy[];
81 ONC_EXPORT extern const char kConnectionState[];
82 ONC_EXPORT extern const char kRestrictedConnectivity[];
83 ONC_EXPORT extern const char kConnectable[];
84 ONC_EXPORT extern const char kErrorState[];
85 ONC_EXPORT extern const char kType[];
86 ONC_EXPORT extern const char kVPN[];
87 ONC_EXPORT extern const char kWiFi[];
88 ONC_EXPORT extern const char kWimax[];
90 ONC_EXPORT extern std::string CellularProperty(const std::string& property);
91 ONC_EXPORT extern std::string VpnProperty(const std::string& property);
92 ONC_EXPORT extern std::string WifiProperty(const std::string& property);
94 } // namespace network_config
96 namespace network_type {
97 ONC_EXPORT extern const char kCellular[];
98 ONC_EXPORT extern const char kEthernet[];
99 ONC_EXPORT extern const char kVPN[];
100 ONC_EXPORT extern const char kWiFi[];
101 ONC_EXPORT extern const char kWimax[];
102 // Patterns matching multiple types, not part of the ONC spec.
103 ONC_EXPORT extern const char kAllTypes[];
104 ONC_EXPORT extern const char kWireless[];
105 } // namespace network_type
107 namespace cellular {
108 ONC_EXPORT extern const char kActivationState[];
109 ONC_EXPORT extern const char kActivated[];
110 ONC_EXPORT extern const char kActivating[];
111 ONC_EXPORT extern const char kNotActivated[];
112 ONC_EXPORT extern const char kPartiallyActivated[];
113 ONC_EXPORT extern const char kActivationType[];
114 ONC_EXPORT extern const char kAllowRoaming[];
115 ONC_EXPORT extern const char kAPN[];
116 ONC_EXPORT extern const char kAPNList[];
117 ONC_EXPORT extern const char kCarrier[];
118 ONC_EXPORT extern const char kESN[];
119 ONC_EXPORT extern const char kFamily[];
120 ONC_EXPORT extern const char kFirmwareRevision[];
121 ONC_EXPORT extern const char kFoundNetworks[];
122 ONC_EXPORT extern const char kHardwareRevision[];
123 ONC_EXPORT extern const char kHomeProvider[];
124 ONC_EXPORT extern const char kICCID[];
125 ONC_EXPORT extern const char kIMEI[];
126 ONC_EXPORT extern const char kIMSI[];
127 ONC_EXPORT extern const char kLastGoodAPN[];
128 ONC_EXPORT extern const char kManufacturer[];
129 ONC_EXPORT extern const char kMDN[];
130 ONC_EXPORT extern const char kMEID[];
131 ONC_EXPORT extern const char kMIN[];
132 ONC_EXPORT extern const char kModelID[];
133 ONC_EXPORT extern const char kNetworkTechnology[];
134 ONC_EXPORT extern const char kPRLVersion[];
135 ONC_EXPORT extern const char kRoamingHome[];
136 ONC_EXPORT extern const char kRoamingRequired[];
137 ONC_EXPORT extern const char kRoamingRoaming[];
138 ONC_EXPORT extern const char kRoamingState[];
139 ONC_EXPORT extern const char kServingOperator[];
140 ONC_EXPORT extern const char kSignalStrength[];
141 ONC_EXPORT extern const char kSIMLockStatus[];
142 ONC_EXPORT extern const char kSIMPresent[];
143 ONC_EXPORT extern const char kSupportedCarriers[];
144 ONC_EXPORT extern const char kSupportNetworkScan[];
145 } // namespace cellular
147 namespace cellular_provider {
148 ONC_EXPORT extern const char kCode[];
149 ONC_EXPORT extern const char kCountry[];
150 ONC_EXPORT extern const char kName[];
151 } // namespace cellular_provider
153 namespace cellular_apn {
154 ONC_EXPORT extern const char kAccessPointName[];
155 ONC_EXPORT extern const char kName[];
156 ONC_EXPORT extern const char kUsername[];
157 ONC_EXPORT extern const char kPassword[];
158 ONC_EXPORT extern const char kLocalizedName[];
159 ONC_EXPORT extern const char kLanguage[];
160 } // namespace cellular_apn
162 namespace cellular_found_network {
163 ONC_EXPORT extern const char kStatus[];
164 ONC_EXPORT extern const char kNetworkId[];
165 ONC_EXPORT extern const char kShortName[];
166 ONC_EXPORT extern const char kLongName[];
167 ONC_EXPORT extern const char kTechnology[];
168 } // namespace cellular_found_network
170 namespace sim_lock_status {
171 ONC_EXPORT extern const char kLockEnabled[];
172 ONC_EXPORT extern const char kLockType[];
173 ONC_EXPORT extern const char kRetriesLeft[];
174 } // namespace sim_lock_status
176 namespace connection_state {
177 ONC_EXPORT extern const char kConnected[];
178 ONC_EXPORT extern const char kConnecting[];
179 ONC_EXPORT extern const char kNotConnected[];
180 } // namespace connection_state
182 namespace ipconfig {
183 ONC_EXPORT extern const char kGateway[];
184 ONC_EXPORT extern const char kIPAddress[];
185 ONC_EXPORT extern const char kIPv4[];
186 ONC_EXPORT extern const char kIPv6[];
187 ONC_EXPORT extern const char kNameServers[];
188 ONC_EXPORT extern const char kRoutingPrefix[];
189 ONC_EXPORT extern const char kSearchDomains[];
190 ONC_EXPORT extern const char kType[];
191 ONC_EXPORT extern const char kWebProxyAutoDiscoveryUrl[];
192 } // namespace ipconfig
194 namespace ethernet {
195 ONC_EXPORT extern const char kAuthentication[];
196 ONC_EXPORT extern const char kAuthenticationNone[];
197 ONC_EXPORT extern const char kEAP[];
198 ONC_EXPORT extern const char k8021X[];
199 } // namespace ethernet
201 namespace wifi {
202 ONC_EXPORT extern const char kAllowGatewayARPPolling[];
203 ONC_EXPORT extern const char kAutoConnect[];
204 ONC_EXPORT extern const char kBSSID[];
205 ONC_EXPORT extern const char kEAP[];
206 ONC_EXPORT extern const char kFrequency[];
207 ONC_EXPORT extern const char kFrequencyList[];
208 ONC_EXPORT extern const char kHexSSID[];
209 ONC_EXPORT extern const char kHiddenSSID[];
210 ONC_EXPORT extern const char kPassphrase[];
211 ONC_EXPORT extern const char kSSID[];
212 ONC_EXPORT extern const char kSecurity[];
213 ONC_EXPORT extern const char kSecurityNone[];
214 ONC_EXPORT extern const char kSignalStrength[];
215 ONC_EXPORT extern const char kWEP_PSK[];
216 ONC_EXPORT extern const char kWEP_8021X[];
217 ONC_EXPORT extern const char kWPA_PSK[];
218 ONC_EXPORT extern const char kWPA2_PSK[];
219 ONC_EXPORT extern const char kWPA_EAP[];
220 } // namespace wifi
222 namespace wimax {
223 ONC_EXPORT extern const char kAutoConnect[];
224 ONC_EXPORT extern const char kEAP[];
225 ONC_EXPORT extern const char kSignalStrength[];
226 } // namespace wimax
228 namespace client_cert {
229 ONC_EXPORT extern const char kClientCertPattern[];
230 ONC_EXPORT extern const char kClientCertRef[];
231 ONC_EXPORT extern const char kClientCertType[];
232 ONC_EXPORT extern const char kClientCertTypeNone[];
233 ONC_EXPORT extern const char kCommonName[];
234 ONC_EXPORT extern const char kEmailAddress[];
235 ONC_EXPORT extern const char kEnrollmentURI[];
236 ONC_EXPORT extern const char kIssuerCARef[];
237 ONC_EXPORT extern const char kIssuerCAPEMs[];
238 ONC_EXPORT extern const char kIssuer[];
239 ONC_EXPORT extern const char kLocality[];
240 ONC_EXPORT extern const char kOrganization[];
241 ONC_EXPORT extern const char kOrganizationalUnit[];
242 ONC_EXPORT extern const char kPattern[];
243 ONC_EXPORT extern const char kRef[];
244 ONC_EXPORT extern const char kSubject[];
245 } // namespace client_cert
247 namespace certificate {
248 ONC_EXPORT extern const char kAuthority[];
249 ONC_EXPORT extern const char kClient[];
250 ONC_EXPORT extern const char kGUID[];
251 ONC_EXPORT extern const char kPKCS12[];
252 ONC_EXPORT extern const char kServer[];
253 ONC_EXPORT extern const char kTrustBits[];
254 ONC_EXPORT extern const char kType[];
255 ONC_EXPORT extern const char kWeb[];
256 ONC_EXPORT extern const char kX509[];
257 } // namespace certificate
259 namespace encrypted {
260 ONC_EXPORT extern const char kAES256[];
261 ONC_EXPORT extern const char kCipher[];
262 ONC_EXPORT extern const char kCiphertext[];
263 ONC_EXPORT extern const char kHMACMethod[];
264 ONC_EXPORT extern const char kHMAC[];
265 ONC_EXPORT extern const char kIV[];
266 ONC_EXPORT extern const char kIterations[];
267 ONC_EXPORT extern const char kPBKDF2[];
268 ONC_EXPORT extern const char kSHA1[];
269 ONC_EXPORT extern const char kSalt[];
270 ONC_EXPORT extern const char kStretch[];
271 } // namespace encrypted
273 namespace eap {
274 ONC_EXPORT extern const char kAnonymousIdentity[];
275 ONC_EXPORT extern const char kAutomatic[];
276 ONC_EXPORT extern const char kEAP_AKA[];
277 ONC_EXPORT extern const char kEAP_FAST[];
278 ONC_EXPORT extern const char kEAP_SIM[];
279 ONC_EXPORT extern const char kEAP_TLS[];
280 ONC_EXPORT extern const char kEAP_TTLS[];
281 ONC_EXPORT extern const char kIdentity[];
282 ONC_EXPORT extern const char kInner[];
283 ONC_EXPORT extern const char kLEAP[];
284 ONC_EXPORT extern const char kMD5[];
285 ONC_EXPORT extern const char kMSCHAPv2[];
286 ONC_EXPORT extern const char kOuter[];
287 ONC_EXPORT extern const char kPAP[];
288 ONC_EXPORT extern const char kPEAP[];
289 ONC_EXPORT extern const char kPassword[];
290 ONC_EXPORT extern const char kSaveCredentials[];
291 ONC_EXPORT extern const char kServerCAPEMs[];
292 ONC_EXPORT extern const char kServerCARef[];
293 ONC_EXPORT extern const char kServerCARefs[];
294 ONC_EXPORT extern const char kUseSystemCAs[];
295 } // namespace eap
297 namespace vpn {
298 ONC_EXPORT extern const char kAutoConnect[];
299 ONC_EXPORT extern const char kHost[];
300 ONC_EXPORT extern const char kIPsec[];
301 ONC_EXPORT extern const char kL2TP[];
302 ONC_EXPORT extern const char kOpenVPN[];
303 ONC_EXPORT extern const char kPassword[];
304 ONC_EXPORT extern const char kSaveCredentials[];
305 ONC_EXPORT extern const char kThirdPartyVpn[];
306 ONC_EXPORT extern const char kTypeL2TP_IPsec[];
307 ONC_EXPORT extern const char kType[];
308 ONC_EXPORT extern const char kUsername[];
309 } // namespace vpn
311 namespace ipsec {
312 ONC_EXPORT extern const char kAuthenticationType[];
313 ONC_EXPORT extern const char kCert[];
314 ONC_EXPORT extern const char kEAP[];
315 ONC_EXPORT extern const char kGroup[];
316 ONC_EXPORT extern const char kIKEVersion[];
317 ONC_EXPORT extern const char kPSK[];
318 ONC_EXPORT extern const char kServerCAPEMs[];
319 ONC_EXPORT extern const char kServerCARef[];
320 ONC_EXPORT extern const char kServerCARefs[];
321 ONC_EXPORT extern const char kXAUTH[];
322 } // namespace ipsec
324 namespace openvpn {
325 ONC_EXPORT extern const char kAuthNoCache[];
326 ONC_EXPORT extern const char kAuthRetry[];
327 ONC_EXPORT extern const char kAuth[];
328 ONC_EXPORT extern const char kCipher[];
329 ONC_EXPORT extern const char kCompLZO[];
330 ONC_EXPORT extern const char kCompNoAdapt[];
331 ONC_EXPORT extern const char kIgnoreDefaultRoute[];
332 ONC_EXPORT extern const char kInteract[];
333 ONC_EXPORT extern const char kKeyDirection[];
334 ONC_EXPORT extern const char kNoInteract[];
335 ONC_EXPORT extern const char kNone[];
336 ONC_EXPORT extern const char kNsCertType[];
337 ONC_EXPORT extern const char kOTP[];
338 ONC_EXPORT extern const char kPassword[];
339 ONC_EXPORT extern const char kPort[];
340 ONC_EXPORT extern const char kProto[];
341 ONC_EXPORT extern const char kPushPeerInfo[];
342 ONC_EXPORT extern const char kRemoteCertEKU[];
343 ONC_EXPORT extern const char kRemoteCertKU[];
344 ONC_EXPORT extern const char kRemoteCertTLS[];
345 ONC_EXPORT extern const char kRenegSec[];
346 ONC_EXPORT extern const char kServerCAPEMs[];
347 ONC_EXPORT extern const char kServerCARef[];
348 ONC_EXPORT extern const char kServerCARefs[];
349 ONC_EXPORT extern const char kServerCertPEM[];
350 ONC_EXPORT extern const char kServerCertRef[];
351 ONC_EXPORT extern const char kServerPollTimeout[];
352 ONC_EXPORT extern const char kServer[];
353 ONC_EXPORT extern const char kShaper[];
354 ONC_EXPORT extern const char kStaticChallenge[];
355 ONC_EXPORT extern const char kTLSAuthContents[];
356 ONC_EXPORT extern const char kTLSRemote[];
357 ONC_EXPORT extern const char kUserAuthenticationType[];
358 ONC_EXPORT extern const char kVerb[];
359 ONC_EXPORT extern const char kVerifyHash[];
360 ONC_EXPORT extern const char kVerifyX509[];
361 } // namespace openvpn
363 namespace openvpn_user_auth_type {
364 ONC_EXPORT extern const char kNone[];
365 ONC_EXPORT extern const char kOTP[];
366 ONC_EXPORT extern const char kPassword[];
367 ONC_EXPORT extern const char kPasswordAndOTP[];
368 } // openvpn_user_auth_type
370 namespace verify_x509 {
371 ONC_EXPORT extern const char kName[];
372 ONC_EXPORT extern const char kType[];
374 namespace types {
375 ONC_EXPORT extern const char kName[];
376 ONC_EXPORT extern const char kNamePrefix[];
377 ONC_EXPORT extern const char kSubject[];
378 } // namespace types
379 } // namespace verify_x509
381 namespace substitutes {
382 ONC_EXPORT extern const char kEmailField[];
383 ONC_EXPORT extern const char kLoginIDField[];
384 } // namespace substitutes
386 namespace proxy {
387 ONC_EXPORT extern const char kDirect[];
388 ONC_EXPORT extern const char kExcludeDomains[];
389 ONC_EXPORT extern const char kFtp[];
390 ONC_EXPORT extern const char kHost[];
391 ONC_EXPORT extern const char kHttp[];
392 ONC_EXPORT extern const char kHttps[];
393 ONC_EXPORT extern const char kManual[];
394 ONC_EXPORT extern const char kPAC[];
395 ONC_EXPORT extern const char kPort[];
396 ONC_EXPORT extern const char kSocks[];
397 ONC_EXPORT extern const char kType[];
398 ONC_EXPORT extern const char kWPAD[];
399 } // namespace proxy
401 namespace global_network_config {
402 ONC_EXPORT extern const char kAllowOnlyPolicyNetworksToAutoconnect[];
403 } // global_network_config
405 } // namespace onc
407 #endif // COMPONENTS_ONC_ONC_CONSTANTS_H_