Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chromeos/network/onc/onc_constants.h" | 5 #include "chromeos/network/onc/onc_constants.h" |
| 6 | 6 |
| 7 namespace chromeos { | 7 namespace chromeos { |
| 8 | 8 |
| 9 // Constants for ONC properties. | 9 // Constants for ONC properties. |
| 10 namespace onc { | 10 namespace onc { |
| 11 | 11 |
| 12 // Top Level ONC | |
| 13 const char kCertificates[] = "Certificates"; | |
| 14 const char kEncryptedConfiguration[] = "EncryptedConfiguration"; | |
| 15 const char kNetworkConfigurations[] = "NetworkConfigurations"; | |
| 16 const char kUnencryptedConfiguration[] = "UnencryptedConfiguration"; | |
| 17 const char kNetworkConfiguration[] = "NetworkConfiguration"; | |
| 18 | |
| 19 // Common keys/values. | 12 // Common keys/values. |
| 20 const char kRecommended[] = "Recommended"; | 13 const char kRecommended[] = "Recommended"; |
| 21 const char kRemove[] = "Remove"; | 14 const char kRemove[] = "Remove"; |
| 22 | 15 |
| 16 // Top Level Configuration | |
| 17 namespace toplevel_config { | |
| 18 const char kCertificates[] = "Certificates"; | |
| 19 const char kEncryptedConfiguration[] = "EncryptedConfiguration"; | |
| 20 const char kNetworkConfigurations[] = "NetworkConfigurations"; | |
| 21 const char kType[] = "Type"; | |
| 22 const char kUnencryptedConfiguration[] = "UnencryptedConfiguration"; | |
| 23 } // namespace toplevel_config | |
| 24 | |
| 23 // Network Configuration | 25 // Network Configuration |
| 26 namespace network_config { | |
| 24 const char kCellular[] = "Cellular"; | 27 const char kCellular[] = "Cellular"; |
| 25 const char kEthernet[] = "Ethernet"; | 28 const char kEthernet[] = "Ethernet"; |
| 26 const char kGUID[] = "GUID"; | 29 const char kGUID[] = "GUID"; |
| 27 const char kIPConfigs[] = "IPConfigs"; | 30 const char kIPConfigs[] = "IPConfigs"; |
| 28 const char kName[] = "Name"; | 31 const char kName[] = "Name"; |
| 29 const char kNameServers[] = "NameServers"; | 32 const char kNameServers[] = "NameServers"; |
| 30 const char kProxySettings[] = "ProxySettings"; | 33 const char kProxySettings[] = "ProxySettings"; |
| 31 const char kSearchDomains[] = "SearchDomains"; | 34 const char kSearchDomains[] = "SearchDomains"; |
| 35 const char kServicePath[] = "ServicePath"; | |
| 36 const char kState[] = "State"; | |
|
pneubeck (no reviews)
2013/01/21 09:26:40
In line with chromeos/network/network_state.h woul
Greg Spencer (Chromium)
2013/01/22 19:10:54
Yeah, you're right. Fixed.
| |
| 32 const char kType[] = "Type"; | 37 const char kType[] = "Type"; |
| 33 const char kVPN[] = "VPN"; | 38 const char kVPN[] = "VPN"; |
| 34 const char kWiFi[] = "WiFi"; | 39 const char kWiFi[] = "WiFi"; |
| 40 } // namespace network_config | |
| 41 | |
| 42 namespace network_type { | |
| 43 const char kAllTypes[] = "All"; | |
| 44 const char kCellular[] = "Cellular"; | |
| 45 const char kEthernet[] = "Ethernet"; | |
| 46 const char kVPN[] = "VPN"; | |
| 47 const char kWiFi[] = "WiFi"; | |
| 48 } // namespace network_type | |
| 49 | |
| 50 namespace cellular { | |
| 51 const char kActivateOverNonCellularNetwork[] = "ActivateOverNonCellularNetwork"; | |
| 52 const char kActivationState[] = "ActivationState"; | |
| 53 const char kAllowRoaming[] = "AllowRoaming"; | |
| 54 const char kAPN[] = "APN"; | |
| 55 const char kCarrier[] = "Carrier"; | |
| 56 const char kESN[] = "ESN"; | |
| 57 const char kFamily[] = "Family"; | |
| 58 const char kFirmwareRevision[] = "FirmwareRevision"; | |
| 59 const char kFoundNetworks[] = "FoundNetworks"; | |
| 60 const char kHardwareRevision[] = "HardwareRevision"; | |
| 61 const char kHomeProvider[] = "HomeProvider"; | |
| 62 const char kICCID[] = "ICCID"; | |
| 63 const char kIMEI[] = "IMEI"; | |
| 64 const char kIMSI[] = "IMSI"; | |
| 65 const char kManufacturer[] = "Manufacturer"; | |
| 66 const char kMDN[] = "MDN"; | |
| 67 const char kMEID[] = "MEID"; | |
| 68 const char kMIN[] = "MIN"; | |
| 69 const char kModelID[] = "ModelID"; | |
| 70 const char kNetworkTechnology[] = "NetworkTechnology"; | |
| 71 const char kOperatorCode[] = "OperatorCode"; | |
| 72 const char kOperatorName[] = "OperatorName"; | |
| 73 const char kPRLVersion[] = "PRLVersion"; | |
| 74 const char kProviderRequiresRoaming[] = "ProviderRequiresRoaming"; | |
| 75 const char kRoamingState[] = "RoamingState"; | |
| 76 const char kSelectedNetwork[] = "SelectedNetwork"; | |
| 77 const char kServingOperator[] = "ServingOperator"; | |
| 78 const char kSIMLockStatus[] = "SIMLockStatus"; | |
| 79 const char kSIMPresent[] = "SIMPresent"; | |
| 80 const char kSupportedCarriers[] = "SupportedCarriers"; | |
| 81 const char kSupportNetworkScan[] = "SupportNetworkScan"; | |
| 82 } // namespace cellular | |
| 83 | |
| 84 namespace status { | |
| 85 const char kConnected[] = "Connected"; | |
| 86 const char kConnecting[] = "Connecting"; | |
| 87 const char kNotConnected[] = "NotConnected"; | |
| 88 } // namespace status | |
| 35 | 89 |
| 36 namespace ethernet { | 90 namespace ethernet { |
| 37 const char kAuthentication[] = "Authentication"; | 91 const char kAuthentication[] = "Authentication"; |
| 38 const char kEAP[] = "EAP"; | 92 const char kEAP[] = "EAP"; |
| 39 const char kNone[] = "None"; | 93 const char kNone[] = "None"; |
| 40 const char k8021X[] = "8021X"; | 94 const char k8021X[] = "8021X"; |
| 41 } // namespace ethernet | 95 } // namespace ethernet |
| 42 | 96 |
| 43 namespace ipconfig { | 97 namespace ipconfig { |
| 44 const char kGateway[] = "Gateway"; | 98 const char kGateway[] = "Gateway"; |
| 45 const char kIPAddress[] = "IPAddress"; | 99 const char kIPAddress[] = "IPAddress"; |
| 46 const char kIPv4[] = "IPv4"; | 100 const char kIPv4[] = "IPv4"; |
| 47 const char kIPv6[] = "IPv6"; | 101 const char kIPv6[] = "IPv6"; |
| 48 const char kRoutingPrefix[] = "RoutingPrefix"; | 102 const char kRoutingPrefix[] = "RoutingPrefix"; |
| 49 const char kType[] = "Type"; | 103 const char kType[] = "Type"; |
| 50 } // namespace ipconfig | 104 } // namespace ipconfig |
| 51 | 105 |
| 52 namespace wifi { | 106 namespace wifi { |
| 53 const char kAutoConnect[] = "AutoConnect"; | 107 const char kAutoConnect[] = "AutoConnect"; |
| 108 const char kBSSID[] = "BSSID"; | |
| 54 const char kEAP[] = "EAP"; | 109 const char kEAP[] = "EAP"; |
| 55 const char kHiddenSSID[] = "HiddenSSID"; | 110 const char kHiddenSSID[] = "HiddenSSID"; |
| 56 const char kNone[] = "None"; | 111 const char kNone[] = "None"; |
| 57 const char kPassphrase[] = "Passphrase"; | 112 const char kPassphrase[] = "Passphrase"; |
| 58 const char kProxyURL[] = "ProxyURL"; | 113 const char kProxyURL[] = "ProxyURL"; |
| 59 const char kSSID[] = "SSID"; | 114 const char kSSID[] = "SSID"; |
| 60 const char kSecurity[] = "Security"; | 115 const char kSecurity[] = "Security"; |
| 61 const char kWEP_PSK[] = "WEP-PSK"; | 116 const char kWEP_PSK[] = "WEP-PSK"; |
| 62 const char kWEP_8021X[] = "WEP-8021X"; | 117 const char kWEP_8021X[] = "WEP-8021X"; |
| 63 const char kWPA_PSK[] = "WPA-PSK"; | 118 const char kWPA_PSK[] = "WPA-PSK"; |
| 64 const char kWPA_EAP[] = "WPA-EAP"; | 119 const char kWPA_EAP[] = "WPA-EAP"; |
| 65 } // namespace wifi | 120 } // namespace wifi |
| 66 | 121 |
| 67 namespace certificate { | 122 namespace certificate { |
| 68 const char kAuthority[] = "Authority"; | 123 const char kAuthority[] = "Authority"; |
| 69 const char kClient[] = "Client"; | 124 const char kClient[] = "Client"; |
| 70 const char kCommonName[] = "CommonName"; | 125 const char kCommonName[] = "CommonName"; |
| 71 const char kEmailAddress[] = "EmailAddress"; | 126 const char kEmailAddress[] = "EmailAddress"; |
| 72 const char kEnrollmentURI[] = "EnrollmentURI"; | 127 const char kEnrollmentURI[] = "EnrollmentURI"; |
| 128 const char kGUID[] = "GUID"; | |
| 73 const char kIssuerCARef[] = "IssuerCARef"; | 129 const char kIssuerCARef[] = "IssuerCARef"; |
| 74 const char kIssuer[] = "Issuer"; | 130 const char kIssuer[] = "Issuer"; |
| 75 const char kLocality[] = "Locality"; | 131 const char kLocality[] = "Locality"; |
| 76 const char kNone[] = "None"; | 132 const char kNone[] = "None"; |
| 77 const char kOrganization[] = "Organization"; | 133 const char kOrganization[] = "Organization"; |
| 78 const char kOrganizationalUnit[] = "OrganizationalUnit"; | 134 const char kOrganizationalUnit[] = "OrganizationalUnit"; |
| 79 const char kPKCS12[] = "PKCS12"; | 135 const char kPKCS12[] = "PKCS12"; |
| 80 const char kPattern[] = "Pattern"; | 136 const char kPattern[] = "Pattern"; |
| 81 const char kRef[] = "Ref"; | 137 const char kRef[] = "Ref"; |
| 82 const char kServer[] = "Server"; | 138 const char kServer[] = "Server"; |
| 83 const char kSubject[] = "Subject"; | 139 const char kSubject[] = "Subject"; |
| 84 const char kTrust[] = "Trust"; | 140 const char kTrust[] = "Trust"; |
| 85 const char kType[] = "Type"; | 141 const char kType[] = "Type"; |
| 86 const char kWeb[] = "Web"; | 142 const char kWeb[] = "Web"; |
| 87 const char kX509[] = "X509"; | 143 const char kX509[] = "X509"; |
| 88 } // namespace certificate | 144 } // namespace certificate |
| 89 | 145 |
| 90 namespace encrypted { | 146 namespace encrypted { |
| 91 const char kAES256[] = "AES256"; | 147 const char kAES256[] = "AES256"; |
| 92 const char kCipher[] = "Cipher"; | 148 const char kCipher[] = "Cipher"; |
| 93 const char kCiphertext[] = "Ciphertext"; | 149 const char kCiphertext[] = "Ciphertext"; |
| 94 const char kHMACMethod[] = "HMACMethod"; | 150 const char kHMACMethod[] = "HMACMethod"; |
| 95 const char kHMAC[] = "HMAC"; | 151 const char kHMAC[] = "HMAC"; |
| 96 const char kIV[] = "IV"; | 152 const char kIV[] = "IV"; |
| 97 const char kIterations[] = "Iterations"; | 153 const char kIterations[] = "Iterations"; |
| 98 const char kPBKDF2[] = "PBKDF2"; | 154 const char kPBKDF2[] = "PBKDF2"; |
| 99 const char kSHA1[] = "SHA1"; | 155 const char kSHA1[] = "SHA1"; |
| 100 const char kSalt[] = "Salt"; | 156 const char kSalt[] = "Salt"; |
| 101 const char kStretch[] = "Stretch"; | 157 const char kStretch[] = "Stretch"; |
| 158 const char kType[] = "Type"; | |
| 102 } // namespace encrypted | 159 } // namespace encrypted |
| 103 | 160 |
| 104 namespace eap { | 161 namespace eap { |
| 105 const char kAnonymousIdentity[] = "AnonymousIdentity"; | 162 const char kAnonymousIdentity[] = "AnonymousIdentity"; |
| 106 const char kAutomatic[] = "Automatic"; | 163 const char kAutomatic[] = "Automatic"; |
| 107 const char kClientCertPattern[] = "ClientCertPattern"; | 164 const char kClientCertPattern[] = "ClientCertPattern"; |
| 108 const char kClientCertRef[] = "ClientCertRef"; | 165 const char kClientCertRef[] = "ClientCertRef"; |
| 109 const char kClientCertType[] = "ClientCertType"; | 166 const char kClientCertType[] = "ClientCertType"; |
| 110 const char kEAP_AKA[] = "EAP-AKA"; | 167 const char kEAP_AKA[] = "EAP-AKA"; |
| 111 const char kEAP_FAST[] = "EAP-FAST"; | 168 const char kEAP_FAST[] = "EAP-FAST"; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 194 } // namespace proxy | 251 } // namespace proxy |
| 195 | 252 |
| 196 namespace substitutes { | 253 namespace substitutes { |
| 197 const char kLoginIDField[] = "${LOGIN_ID}"; | 254 const char kLoginIDField[] = "${LOGIN_ID}"; |
| 198 const char kEmailField[] = "${LOGIN_EMAIL}"; | 255 const char kEmailField[] = "${LOGIN_EMAIL}"; |
| 199 } // namespace substitutes | 256 } // namespace substitutes |
| 200 | 257 |
| 201 } // namespace onc | 258 } // namespace onc |
| 202 | 259 |
| 203 } // namespace chromeos | 260 } // namespace chromeos |
| OLD | NEW |