Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / onc / onc_constants.cc
blob268122a10cec56ed91f5490061d1c16d856bf94c
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 kAutoConnect[] = "AutoConnect";
94 const char kNotActivated[] = "NotActivated";
95 const char kPartiallyActivated[] = "PartiallyActivated";
96 const char kActivationType[] = "ActivationType";
97 const char kAllowRoaming[] = "AllowRoaming";
98 const char kAPN[] = "APN";
99 const char kAPNList[] = "APNList";
100 const char kCarrier[] = "Carrier";
101 const char kESN[] = "ESN";
102 const char kFamily[] = "Family";
103 const char kFirmwareRevision[] = "FirmwareRevision";
104 const char kFoundNetworks[] = "FoundNetworks";
105 const char kHardwareRevision[] = "HardwareRevision";
106 const char kHomeProvider[] = "HomeProvider";
107 const char kICCID[] = "ICCID";
108 const char kIMEI[] = "IMEI";
109 const char kIMSI[] = "IMSI";
110 const char kLastGoodAPN[] = "LastGoodAPN";
111 const char kManufacturer[] = "Manufacturer";
112 const char kMDN[] = "MDN";
113 const char kMEID[] = "MEID";
114 const char kMIN[] = "MIN";
115 const char kModelID[] = "ModelID";
116 const char kNetworkTechnology[] = "NetworkTechnology";
117 const char kPaymentPortal[] = "PaymentPortal";
118 const char kPRLVersion[] = "PRLVersion";
119 const char kRoamingHome[] = "Home";
120 const char kRoamingRequired[] = "Required";
121 const char kRoamingRoaming[] = "Roaming";
122 const char kRoamingState[] = "RoamingState";
123 const char kServingOperator[] = "ServingOperator";
124 const char kSignalStrength[] = "SignalStrength";
125 const char kSIMLockStatus[] = "SIMLockStatus";
126 const char kSIMPresent[] = "SIMPresent";
127 const char kSupportedCarriers[] = "SupportedCarriers";
128 const char kSupportNetworkScan[] = "SupportNetworkScan";
129 const char kTechnologyCdma1Xrtt[] = "CDMA1XRTT";
130 const char kTechnologyEdge[] = "EDGE";
131 const char kTechnologyEvdo[] = "EVDO";
132 const char kTechnologyGprs[] = "GPRS";
133 const char kTechnologyGsm[] = "GSM";
134 const char kTechnologyHspa[] = "HSPA";
135 const char kTechnologyHspaPlus[] = "HSPAPlus";
136 const char kTechnologyLte[] = "LTE";
137 const char kTechnologyLteAdvanced[] = "LTEAdvanced";
138 const char kTechnologyUmts[] = "UMTS";
139 } // namespace cellular
141 namespace cellular_provider {
142 const char kCode[] = "Code";
143 const char kCountry[] = "Country";
144 const char kName[] = "Name";
145 } // namespace cellular_provider
147 namespace cellular_apn {
148 const char kAccessPointName[] = "AccessPointName";
149 const char kName[] = "Name";
150 const char kUsername[] = "Username";
151 const char kPassword[] = "Password";
152 const char kLocalizedName[] = "LocalizedName";
153 const char kLanguage[] = "LocalizedName";
154 } // namespace cellular_apn
156 namespace cellular_found_network {
157 const char kStatus[] = "Status";
158 const char kNetworkId[] = "NetworkId";
159 const char kShortName[] = "ShortName";
160 const char kLongName[] = "LongName";
161 const char kTechnology[] = "Technology";
162 } // namespace cellular_found_network
164 namespace cellular_payment_portal {
165 const char kMethod[] = "Method";
166 const char kPostData[] = "PostData";
167 const char kUrl[] = "Url";
168 } // namespace cellular_payment_portal
170 namespace sim_lock_status {
171 const char kLockEnabled[] = "LockEnabled";
172 const char kLockType[] = "LockType";
173 const char kRetriesLeft[] = "RetriesLeft";
174 } // namespace sim_lock_status
176 namespace connection_state {
177 const char kConnected[] = "Connected";
178 const char kConnecting[] = "Connecting";
179 const char kNotConnected[] = "NotConnected";
180 } // namespace connection_state
182 namespace ethernet {
183 const char kAuthentication[] = "Authentication";
184 const char kAuthenticationNone[] = "None";
185 const char kEAP[] = "EAP";
186 const char k8021X[] = "8021X";
187 } // namespace ethernet
189 namespace ipconfig {
190 const char kGateway[] = "Gateway";
191 const char kIPAddress[] = "IPAddress";
192 const char kIPv4[] = "IPv4";
193 const char kIPv6[] = "IPv6";
194 const char kNameServers[] = "NameServers";
195 const char kRoutingPrefix[] = "RoutingPrefix";
196 const char kSearchDomains[] = "SearchDomains";
197 const char kType[] = "Type";
198 const char kWebProxyAutoDiscoveryUrl[] = "WebProxyAutoDiscoveryUrl";
199 } // namespace ipconfig
201 namespace wifi {
202 const char kAllowGatewayARPPolling[] = "AllowGatewayARPPolling";
203 const char kAutoConnect[] = "AutoConnect";
204 const char kBSSID[] = "BSSID";
205 const char kEAP[] = "EAP";
206 const char kFrequency[] = "Frequency";
207 const char kFrequencyList[] = "FrequencyList";
208 const char kHexSSID[] = "HexSSID";
209 const char kHiddenSSID[] = "HiddenSSID";
210 const char kPassphrase[] = "Passphrase";
211 const char kRoamThreshold[] = "RoamThreshold";
212 const char kSSID[] = "SSID";
213 const char kSecurity[] = "Security";
214 const char kSecurityNone[] = "None";
215 const char kSignalStrength[] = "SignalStrength";
216 const char kWEP_8021X[] = "WEP-8021X";
217 const char kWEP_PSK[] = "WEP-PSK";
218 const char kWPA_EAP[] = "WPA-EAP";
219 const char kWPA_PSK[] = "WPA-PSK";
220 const char kWPA2_PSK[] = "WPA2-PSK";
221 } // namespace wifi
223 namespace wimax {
224 const char kAutoConnect[] = "AutoConnect";
225 const char kEAP[] = "EAP";
226 const char kSignalStrength[] = "SignalStrength";
227 } // namespace wimax
229 namespace client_cert {
230 const char kClientCertPattern[] = "ClientCertPattern";
231 const char kClientCertRef[] = "ClientCertRef";
232 const char kClientCertType[] = "ClientCertType";
233 const char kClientCertTypeNone[] = "None";
234 const char kCommonName[] = "CommonName";
235 const char kEmailAddress[] = "EmailAddress";
236 const char kEnrollmentURI[] = "EnrollmentURI";
237 const char kIssuerCARef[] = "IssuerCARef";
238 const char kIssuerCAPEMs[] = "IssuerCAPEMs";
239 const char kIssuer[] = "Issuer";
240 const char kLocality[] = "Locality";
241 const char kOrganization[] = "Organization";
242 const char kOrganizationalUnit[] = "OrganizationalUnit";
243 const char kPattern[] = "Pattern";
244 const char kRef[] = "Ref";
245 const char kSubject[] = "Subject";
246 } // namespace client_cert
248 namespace certificate {
249 const char kAuthority[] = "Authority";
250 const char kClient[] = "Client";
251 const char kGUID[] = "GUID";
252 const char kPKCS12[] = "PKCS12";
253 const char kServer[] = "Server";
254 const char kTrustBits[] = "TrustBits";
255 const char kType[] = "Type";
256 const char kWeb[] = "Web";
257 const char kX509[] = "X509";
258 } // namespace certificate
260 namespace encrypted {
261 const char kAES256[] = "AES256";
262 const char kCipher[] = "Cipher";
263 const char kCiphertext[] = "Ciphertext";
264 const char kHMACMethod[] = "HMACMethod";
265 const char kHMAC[] = "HMAC";
266 const char kIV[] = "IV";
267 const char kIterations[] = "Iterations";
268 const char kPBKDF2[] = "PBKDF2";
269 const char kSHA1[] = "SHA1";
270 const char kSalt[] = "Salt";
271 const char kStretch[] = "Stretch";
272 } // namespace encrypted
274 namespace eap {
275 const char kAnonymousIdentity[] = "AnonymousIdentity";
276 const char kAutomatic[] = "Automatic";
277 const char kEAP_AKA[] = "EAP-AKA";
278 const char kEAP_FAST[] = "EAP-FAST";
279 const char kEAP_SIM[] = "EAP-SIM";
280 const char kEAP_TLS[] = "EAP-TLS";
281 const char kEAP_TTLS[] = "EAP-TTLS";
282 const char kGTC[] = "GTC";
283 const char kIdentity[] = "Identity";
284 const char kInner[] = "Inner";
285 const char kLEAP[] = "LEAP";
286 const char kMD5[] = "MD5";
287 const char kMSCHAPv2[] = "MSCHAPv2";
288 const char kOuter[] = "Outer";
289 const char kPAP[] = "PAP";
290 const char kPEAP[] = "PEAP";
291 const char kPassword[] = "Password";
292 const char kSaveCredentials[] = "SaveCredentials";
293 const char kServerCAPEMs[] = "ServerCAPEMs";
294 const char kServerCARef[] = "ServerCARef";
295 const char kServerCARefs[] = "ServerCARefs";
296 const char kUseSystemCAs[] = "UseSystemCAs";
297 const char kUseProactiveKeyCaching[] = "UseProactiveKeyCaching";
298 } // namespace eap
300 namespace vpn {
301 const char kAutoConnect[] = "AutoConnect";
302 const char kHost[] = "Host";
303 const char kIPsec[] = "IPsec";
304 const char kL2TP[] = "L2TP";
305 const char kOpenVPN[] = "OpenVPN";
306 const char kPassword[] = "Password";
307 const char kSaveCredentials[] = "SaveCredentials";
308 const char kThirdPartyVpn[] = "ThirdPartyVPN";
309 const char kTypeL2TP_IPsec[] = "L2TP-IPsec";
310 const char kType[] = "Type";
311 const char kUsername[] = "Username";
312 } // namespace vpn
314 namespace ipsec {
315 const char kAuthenticationType[] = "AuthenticationType";
316 const char kCert[] = "Cert";
317 const char kEAP[] = "EAP";
318 const char kGroup[] = "Group";
319 const char kIKEVersion[] = "IKEVersion";
320 const char kPSK[] = "PSK";
321 const char kServerCAPEMs[] = "ServerCAPEMs";
322 const char kServerCARef[] = "ServerCARef";
323 const char kServerCARefs[] = "ServerCARefs";
324 const char kXAUTH[] = "XAUTH";
325 } // namespace ipsec
327 namespace l2tp {
328 const char kLcpEchoDisabled[] = "LcpEchoDisabled";
329 const char kPassword[] = "Password";
330 const char kSaveCredentials[] = "SaveCredentials";
331 const char kUsername[] = "Username";
332 } // namespace l2tp
334 namespace openvpn {
335 const char kAuthNoCache[] = "AuthNoCache";
336 const char kAuthRetry[] = "AuthRetry";
337 const char kAuth[] = "Auth";
338 const char kCipher[] = "Cipher";
339 const char kCompLZO[] = "CompLZO";
340 const char kCompNoAdapt[] = "CompNoAdapt";
341 const char kIgnoreDefaultRoute[] = "IgnoreDefaultRoute";
342 const char kInteract[] = "interact";
343 const char kKeyDirection[] = "KeyDirection";
344 const char kNoInteract[] = "nointeract";
345 const char kNone[] = "none";
346 const char kNsCertType[] = "NsCertType";
347 const char kOTP[] = "OTP";
348 const char kPassword[] = "Password";
349 const char kPort[] = "Port";
350 const char kProto[] = "Proto";
351 const char kPushPeerInfo[] = "PushPeerInfo";
352 const char kRemoteCertEKU[] = "RemoteCertEKU";
353 const char kRemoteCertKU[] = "RemoteCertKU";
354 const char kRemoteCertTLS[] = "RemoteCertTLS";
355 const char kRenegSec[] = "RenegSec";
356 const char kServerCAPEMs[] = "ServerCAPEMs";
357 const char kServerCARef[] = "ServerCARef";
358 const char kServerCARefs[] = "ServerCARefs";
359 const char kServerCertPEM[] = "ServerCertPEM";
360 const char kServerCertRef[] = "ServerCertRef";
361 const char kServerPollTimeout[] = "ServerPollTimeout";
362 const char kServer[] = "server";
363 const char kShaper[] = "Shaper";
364 const char kStaticChallenge[] = "StaticChallenge";
365 const char kTLSAuthContents[] = "TLSAuthContents";
366 const char kTLSRemote[] = "TLSRemote";
367 const char kUserAuthenticationType[] = "UserAuthenticationType";
368 const char kVerb[] = "Verb";
369 const char kVerifyHash[] = "VerifyHash";
370 const char kVerifyX509[] = "VerifyX509";
371 } // namespace openvpn
373 namespace openvpn_user_auth_type {
374 const char kNone[] = "None";
375 const char kOTP[] = "OTP";
376 const char kPassword[] = "Password";
377 const char kPasswordAndOTP[] = "PasswordAndOTP";
378 } // openvpn_user_auth_type
380 namespace third_party_vpn {
381 const char kExtensionID[] = "ExtensionID";
382 const char kProviderName[] = "ProviderName";
383 } // third_party_vpn
385 namespace verify_x509 {
386 const char kName[] = "Name";
387 const char kType[] = "Type";
389 namespace types {
390 const char kName[] = "name";
391 const char kNamePrefix[] = "name-prefix";
392 const char kSubject[] = "subject";
393 } // namespace types
394 } // namespace verify_x509
396 namespace proxy {
397 const char kDirect[] = "Direct";
398 const char kExcludeDomains[] = "ExcludeDomains";
399 const char kFtp[] = "FTPProxy";
400 const char kHost[] = "Host";
401 const char kHttp[] = "HTTPProxy";
402 const char kHttps[] = "SecureHTTPProxy";
403 const char kManual[] = "Manual";
404 const char kPAC[] = "PAC";
405 const char kPort[] = "Port";
406 const char kSocks[] = "SOCKS";
407 const char kType[] = "Type";
408 const char kWPAD[] = "WPAD";
409 } // namespace proxy
411 namespace substitutes {
412 const char kLoginIDField[] = "${LOGIN_ID}";
413 const char kEmailField[] = "${LOGIN_EMAIL}";
414 } // namespace substitutes
416 namespace global_network_config {
417 const char kAllowOnlyPolicyNetworksToAutoconnect[] =
418 "AllowOnlyPolicyNetworksToAutoconnect";
419 const char kDisableNetworkTypes[] = "DisableNetworkTypes";
420 } // global_network_config
422 namespace device_state {
423 const char kUninitialized[] = "Uninitialized";
424 const char kDisabled[] = "Disabled";
425 const char kEnabling[] = "Enabling";
426 const char kEnabled[] = "Enabled";
427 } // device_state
429 } // namespace onc