ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / components / onc / onc_constants.cc
blob0c14f23ae7d4969d8fca400677f5e668fdcc4aa8
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.
5 #include "components/onc/onc_constants.h"
7 // Constants for ONC properties.
8 namespace onc {
10 const char kAugmentationActiveSetting[] = "Active";
11 const char kAugmentationEffectiveSetting[] = "Effective";
12 const char kAugmentationUserPolicy[] = "UserPolicy";
13 const char kAugmentationDevicePolicy[] = "DevicePolicy";
14 const char kAugmentationUserSetting[] = "UserSetting";
15 const char kAugmentationSharedSetting[] = "SharedSetting";
16 const char kAugmentationUserEditable[] = "UserEditable";
17 const char kAugmentationDeviceEditable[] = "DeviceEditable";
19 // Common keys/values.
20 const char kRecommended[] = "Recommended";
21 const char kRemove[] = "Remove";
23 // Top Level Configuration
24 namespace toplevel_config {
25 const char kCertificates[] = "Certificates";
26 const char kEncryptedConfiguration[] = "EncryptedConfiguration";
27 const char kNetworkConfigurations[] = "NetworkConfigurations";
28 const char kGlobalNetworkConfiguration[] = "GlobalNetworkConfiguration";
29 const char kType[] = "Type";
30 const char kUnencryptedConfiguration[] = "UnencryptedConfiguration";
31 } // namespace toplevel_config
33 // Network Configuration
34 namespace network_config {
35 const char kCellular[] = "Cellular";
36 const char kConnectable[] = "Connectable";
37 const char kConnectionState[] = "ConnectionState";
38 const char kDevice[] = "Device";
39 const char kErrorState[] = "ErrorState";
40 const char kEthernet[] = "Ethernet";
41 const char kGUID[] = "GUID";
42 const char kIPAddressConfigType[] = "IPAddressConfigType";
43 const char kIPConfigs[] = "IPConfigs";
44 const char kIPConfigTypeDHCP[] = "DHCP";
45 const char kIPConfigTypeStatic[] = "Static";
46 const char kMacAddress[] = "MacAddress";
47 const char kNameServersConfigType[] = "NameServersConfigType";
48 const char kName[] = "Name";
49 const char kPriority[] = "Priority";
50 const char kProxySettings[] = "ProxySettings";
51 const char kRestrictedConnectivity[] = "RestrictedConnectivity";
52 const char kSavedIPConfig[] = "SavedIPConfig";
53 const char kSourceDevice[] = "Device";
54 const char kSourceDevicePolicy[] = "DevicePolicy";
55 const char kSourceNone[] = "None";
56 const char kSourceUser[] = "User";
57 const char kSourceUserPolicy[] = "UserPolicy";
58 const char kSource[] = "Source";
59 const char kStaticIPConfig[] = "StaticIPConfig";
60 const char kType[] = "Type";
61 const char kVPN[] = "VPN";
62 const char kWiFi[] = "WiFi";
63 const char kWimax[] = "WiMAX";
65 std::string CellularProperty(const std::string& property) {
66 return std::string(kCellular) + "." + property;
69 std::string VpnProperty(const std::string& property) {
70 return std::string(kVPN) + "." + property;
73 std::string WifiProperty(const std::string& property) {
74 return std::string(kWiFi) + "." + property;
77 } // namespace network_config
79 namespace network_type {
80 const char kAllTypes[] = "All";
81 const char kCellular[] = "Cellular";
82 const char kEthernet[] = "Ethernet";
83 const char kVPN[] = "VPN";
84 const char kWiFi[] = "WiFi";
85 const char kWimax[] = "WiMAX";
86 const char kWireless[] = "Wireless";
87 } // namespace network_type
89 namespace cellular {
90 const char kActivationState[] = "ActivationState";
91 const char kActivated[] = "Activated";
92 const char kActivating[] = "Activating";
93 const char kNotActivated[] = "NotActivated";
94 const char kPartiallyActivated[] = "PartiallyActivated";
95 const char kActivationType[] = "ActivationType";
96 const char kAllowRoaming[] = "AllowRoaming";
97 const char kAPN[] = "APN";
98 const char kAPNList[] = "APNList";
99 const char kCarrier[] = "Carrier";
100 const char kESN[] = "ESN";
101 const char kFamily[] = "Family";
102 const char kFirmwareRevision[] = "FirmwareRevision";
103 const char kFoundNetworks[] = "FoundNetworks";
104 const char kHardwareRevision[] = "HardwareRevision";
105 const char kHomeProvider[] = "HomeProvider";
106 const char kICCID[] = "ICCID";
107 const char kIMEI[] = "IMEI";
108 const char kIMSI[] = "IMSI";
109 const char kLastGoodAPN[] = "LastGoodAPN";
110 const char kManufacturer[] = "Manufacturer";
111 const char kMDN[] = "MDN";
112 const char kMEID[] = "MEID";
113 const char kMIN[] = "MIN";
114 const char kModelID[] = "ModelID";
115 const char kNetworkTechnology[] = "NetworkTechnology";
116 const char kPRLVersion[] = "PRLVersion";
117 const char kRoamingHome[] = "Home";
118 const char kRoamingRequired[] = "Required";
119 const char kRoamingRoaming[] = "Roaming";
120 const char kRoamingState[] = "RoamingState";
121 const char kServingOperator[] = "ServingOperator";
122 const char kSignalStrength[] = "SignalStrength";
123 const char kSIMLockStatus[] = "SIMLockStatus";
124 const char kSIMPresent[] = "SIMPresent";
125 const char kSupportedCarriers[] = "SupportedCarriers";
126 const char kSupportNetworkScan[] = "SupportNetworkScan";
127 } // namespace cellular
129 namespace cellular_provider {
130 const char kCode[] = "Code";
131 const char kCountry[] = "Country";
132 const char kName[] = "Name";
133 } // namespace cellular_provider
135 namespace cellular_apn {
136 const char kAccessPointName[] = "AccessPointName";
137 const char kName[] = "Name";
138 const char kUsername[] = "Username";
139 const char kPassword[] = "Password";
140 const char kLocalizedName[] = "LocalizedName";
141 const char kLanguage[] = "LocalizedName";
142 } // namespace cellular_apn
144 namespace cellular_found_network {
145 const char kStatus[] = "Status";
146 const char kNetworkId[] = "NetworkId";
147 const char kShortName[] = "ShortName";
148 const char kLongName[] = "LongName";
149 const char kTechnology[] = "Technology";
150 } // namespace cellular_apn
152 namespace sim_lock_status {
153 const char kLockEnabled[] = "LockEnabled";
154 const char kLockType[] = "LockType";
155 const char kRetriesLeft[] = "RetriesLeft";
158 namespace connection_state {
159 const char kConnected[] = "Connected";
160 const char kConnecting[] = "Connecting";
161 const char kNotConnected[] = "NotConnected";
162 } // namespace connection_state
164 namespace ethernet {
165 const char kAuthentication[] = "Authentication";
166 const char kAuthenticationNone[] = "None";
167 const char kEAP[] = "EAP";
168 const char k8021X[] = "8021X";
169 } // namespace ethernet
171 namespace ipconfig {
172 const char kGateway[] = "Gateway";
173 const char kIPAddress[] = "IPAddress";
174 const char kIPv4[] = "IPv4";
175 const char kIPv6[] = "IPv6";
176 const char kNameServers[] = "NameServers";
177 const char kRoutingPrefix[] = "RoutingPrefix";
178 const char kSearchDomains[] = "SearchDomains";
179 const char kType[] = "Type";
180 const char kWebProxyAutoDiscoveryUrl[] = "WebProxyAutoDiscoveryUrl";
181 } // namespace ipconfig
183 namespace wifi {
184 const char kAllowGatewayARPPolling[] = "AllowGatewayARPPolling";
185 const char kAutoConnect[] = "AutoConnect";
186 const char kBSSID[] = "BSSID";
187 const char kEAP[] = "EAP";
188 const char kFrequency[] = "Frequency";
189 const char kFrequencyList[] = "FrequencyList";
190 const char kHexSSID[] = "HexSSID";
191 const char kHiddenSSID[] = "HiddenSSID";
192 const char kPassphrase[] = "Passphrase";
193 const char kSSID[] = "SSID";
194 const char kSecurity[] = "Security";
195 const char kSecurityNone[] = "None";
196 const char kSignalStrength[] = "SignalStrength";
197 const char kWEP_8021X[] = "WEP-8021X";
198 const char kWEP_PSK[] = "WEP-PSK";
199 const char kWPA_EAP[] = "WPA-EAP";
200 const char kWPA_PSK[] = "WPA-PSK";
201 const char kWPA2_PSK[] = "WPA2-PSK";
202 } // namespace wifi
204 namespace wimax {
205 const char kAutoConnect[] = "AutoConnect";
206 const char kEAP[] = "EAP";
207 const char kSignalStrength[] = "SignalStrength";
208 } // namespace wimax
210 namespace client_cert {
211 const char kClientCertPattern[] = "ClientCertPattern";
212 const char kClientCertRef[] = "ClientCertRef";
213 const char kClientCertType[] = "ClientCertType";
214 const char kClientCertTypeNone[] = "None";
215 const char kCommonName[] = "CommonName";
216 const char kEmailAddress[] = "EmailAddress";
217 const char kEnrollmentURI[] = "EnrollmentURI";
218 const char kIssuerCARef[] = "IssuerCARef";
219 const char kIssuerCAPEMs[] = "IssuerCAPEMs";
220 const char kIssuer[] = "Issuer";
221 const char kLocality[] = "Locality";
222 const char kOrganization[] = "Organization";
223 const char kOrganizationalUnit[] = "OrganizationalUnit";
224 const char kPattern[] = "Pattern";
225 const char kRef[] = "Ref";
226 const char kSubject[] = "Subject";
227 } // namespace client_cert
229 namespace certificate {
230 const char kAuthority[] = "Authority";
231 const char kClient[] = "Client";
232 const char kGUID[] = "GUID";
233 const char kPKCS12[] = "PKCS12";
234 const char kServer[] = "Server";
235 const char kTrustBits[] = "TrustBits";
236 const char kType[] = "Type";
237 const char kWeb[] = "Web";
238 const char kX509[] = "X509";
239 } // namespace certificate
241 namespace encrypted {
242 const char kAES256[] = "AES256";
243 const char kCipher[] = "Cipher";
244 const char kCiphertext[] = "Ciphertext";
245 const char kHMACMethod[] = "HMACMethod";
246 const char kHMAC[] = "HMAC";
247 const char kIV[] = "IV";
248 const char kIterations[] = "Iterations";
249 const char kPBKDF2[] = "PBKDF2";
250 const char kSHA1[] = "SHA1";
251 const char kSalt[] = "Salt";
252 const char kStretch[] = "Stretch";
253 } // namespace encrypted
255 namespace eap {
256 const char kAnonymousIdentity[] = "AnonymousIdentity";
257 const char kAutomatic[] = "Automatic";
258 const char kEAP_AKA[] = "EAP-AKA";
259 const char kEAP_FAST[] = "EAP-FAST";
260 const char kEAP_SIM[] = "EAP-SIM";
261 const char kEAP_TLS[] = "EAP-TLS";
262 const char kEAP_TTLS[] = "EAP-TTLS";
263 const char kIdentity[] = "Identity";
264 const char kInner[] = "Inner";
265 const char kLEAP[] = "LEAP";
266 const char kMD5[] = "MD5";
267 const char kMSCHAPv2[] = "MSCHAPv2";
268 const char kOuter[] = "Outer";
269 const char kPAP[] = "PAP";
270 const char kPEAP[] = "PEAP";
271 const char kPassword[] = "Password";
272 const char kSaveCredentials[] = "SaveCredentials";
273 const char kServerCAPEMs[] = "ServerCAPEMs";
274 const char kServerCARef[] = "ServerCARef";
275 const char kServerCARefs[] = "ServerCARefs";
276 const char kUseSystemCAs[] = "UseSystemCAs";
277 } // namespace eap
279 namespace vpn {
280 const char kAutoConnect[] = "AutoConnect";
281 const char kHost[] = "Host";
282 const char kIPsec[] = "IPsec";
283 const char kL2TP[] = "L2TP";
284 const char kOpenVPN[] = "OpenVPN";
285 const char kPassword[] = "Password";
286 const char kSaveCredentials[] = "SaveCredentials";
287 const char kThirdPartyVpn[] = "ThirdPartyVPN";
288 const char kTypeL2TP_IPsec[] = "L2TP-IPsec";
289 const char kType[] = "Type";
290 const char kUsername[] = "Username";
291 } // namespace vpn
293 namespace ipsec {
294 const char kAuthenticationType[] = "AuthenticationType";
295 const char kCert[] = "Cert";
296 const char kEAP[] = "EAP";
297 const char kGroup[] = "Group";
298 const char kIKEVersion[] = "IKEVersion";
299 const char kPSK[] = "PSK";
300 const char kServerCAPEMs[] = "ServerCAPEMs";
301 const char kServerCARef[] = "ServerCARef";
302 const char kServerCARefs[] = "ServerCARefs";
303 const char kXAUTH[] = "XAUTH";
304 } // namespace ipsec
306 namespace openvpn {
307 const char kAuthNoCache[] = "AuthNoCache";
308 const char kAuthRetry[] = "AuthRetry";
309 const char kAuth[] = "Auth";
310 const char kCipher[] = "Cipher";
311 const char kCompLZO[] = "CompLZO";
312 const char kCompNoAdapt[] = "CompNoAdapt";
313 const char kIgnoreDefaultRoute[] = "IgnoreDefaultRoute";
314 const char kInteract[] = "interact";
315 const char kKeyDirection[] = "KeyDirection";
316 const char kNoInteract[] = "nointeract";
317 const char kNone[] = "none";
318 const char kNsCertType[] = "NsCertType";
319 const char kOTP[] = "OTP";
320 const char kPassword[] = "Password";
321 const char kPort[] = "Port";
322 const char kProto[] = "Proto";
323 const char kPushPeerInfo[] = "PushPeerInfo";
324 const char kRemoteCertEKU[] = "RemoteCertEKU";
325 const char kRemoteCertKU[] = "RemoteCertKU";
326 const char kRemoteCertTLS[] = "RemoteCertTLS";
327 const char kRenegSec[] = "RenegSec";
328 const char kServerCAPEMs[] = "ServerCAPEMs";
329 const char kServerCARef[] = "ServerCARef";
330 const char kServerCARefs[] = "ServerCARefs";
331 const char kServerCertPEM[] = "ServerCertPEM";
332 const char kServerCertRef[] = "ServerCertRef";
333 const char kServerPollTimeout[] = "ServerPollTimeout";
334 const char kServer[] = "server";
335 const char kShaper[] = "Shaper";
336 const char kStaticChallenge[] = "StaticChallenge";
337 const char kTLSAuthContents[] = "TLSAuthContents";
338 const char kTLSRemote[] = "TLSRemote";
339 const char kUserAuthenticationType[] = "UserAuthenticationType";
340 const char kVerb[] = "Verb";
341 const char kVerifyHash[] = "VerifyHash";
342 const char kVerifyX509[] = "VerifyX509";
343 } // namespace openvpn
345 namespace openvpn_user_auth_type {
346 const char kNone[] = "None";
347 const char kOTP[] = "OTP";
348 const char kPassword[] = "Password";
349 const char kPasswordAndOTP[] = "PasswordAndOTP";
350 } // openvpn_user_auth_type
352 namespace verify_x509 {
353 const char kName[] = "Name";
354 const char kType[] = "Type";
356 namespace types {
357 const char kName[] = "name";
358 const char kNamePrefix[] = "name-prefix";
359 const char kSubject[] = "subject";
360 } // namespace types
361 } // namespace verify_x509
363 namespace proxy {
364 const char kDirect[] = "Direct";
365 const char kExcludeDomains[] = "ExcludeDomains";
366 const char kFtp[] = "FTPProxy";
367 const char kHost[] = "Host";
368 const char kHttp[] = "HTTPProxy";
369 const char kHttps[] = "SecureHTTPProxy";
370 const char kManual[] = "Manual";
371 const char kPAC[] = "PAC";
372 const char kPort[] = "Port";
373 const char kSocks[] = "SOCKS";
374 const char kType[] = "Type";
375 const char kWPAD[] = "WPAD";
376 } // namespace proxy
378 namespace substitutes {
379 const char kLoginIDField[] = "${LOGIN_ID}";
380 const char kEmailField[] = "${LOGIN_EMAIL}";
381 } // namespace substitutes
383 namespace global_network_config {
384 const char kAllowOnlyPolicyNetworksToAutoconnect[] =
385 "AllowOnlyPolicyNetworksToAutoconnect";
386 } // global_network_config
388 } // namespace onc