Make |track_| in MediaStreamTrack const. and a couple of other cosmetic changes.
[chromium-blink-merge.git] / components / onc / onc_constants.cc
blob06342dfa352d5e6c7144fbab888d2a7869a23ed0
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 kIPConfigs[] = "IPConfigs";
43 const char kMacAddress[] = "MacAddress";
44 const char kNameServers[] = "NameServers";
45 const char kName[] = "Name";
46 const char kPriority[] = "Priority";
47 const char kProxySettings[] = "ProxySettings";
48 const char kRestrictedConnectivity[] = "RestrictedConnectivity";
49 const char kSavedIPConfig[] = "SavedIPConfig";
50 const char kSearchDomains[] = "SearchDomains";
51 const char kSourceDevice[] = "Device";
52 const char kSourceDevicePolicy[] = "DevicePolicy";
53 const char kSourceNone[] = "None";
54 const char kSourceUser[] = "User";
55 const char kSourceUserPolicy[] = "UserPolicy";
56 const char kSource[] = "Source";
57 const char kStaticIPConfig[] = "StaticIPConfig";
58 const char kType[] = "Type";
59 const char kVPN[] = "VPN";
60 const char kWiFi[] = "WiFi";
61 const char kWimax[] = "WiMAX";
63 std::string CellularProperty(const std::string& property) {
64 return std::string(kCellular) + "." + property;
67 std::string VpnProperty(const std::string& property) {
68 return std::string(kVPN) + "." + property;
71 std::string WifiProperty(const std::string& property) {
72 return std::string(kWiFi) + "." + property;
75 } // namespace network_config
77 namespace network_type {
78 const char kAllTypes[] = "All";
79 const char kCellular[] = "Cellular";
80 const char kEthernet[] = "Ethernet";
81 const char kVPN[] = "VPN";
82 const char kWiFi[] = "WiFi";
83 const char kWimax[] = "WiMAX";
84 const char kWireless[] = "Wireless";
85 } // namespace network_type
87 namespace cellular {
88 const char kActivationState[] = "ActivationState";
89 const char kActivated[] = "Activated";
90 const char kActivating[] = "Activating";
91 const char kNotActivated[] = "NotActivated";
92 const char kPartiallyActivated[] = "PartiallyActivated";
93 const char kActivationType[] = "ActivationType";
94 const char kAllowRoaming[] = "AllowRoaming";
95 const char kAPN[] = "APN";
96 const char kAPNList[] = "APNList";
97 const char kCarrier[] = "Carrier";
98 const char kESN[] = "ESN";
99 const char kFamily[] = "Family";
100 const char kFirmwareRevision[] = "FirmwareRevision";
101 const char kFoundNetworks[] = "FoundNetworks";
102 const char kHardwareRevision[] = "HardwareRevision";
103 const char kHomeProvider[] = "HomeProvider";
104 const char kICCID[] = "ICCID";
105 const char kIMEI[] = "IMEI";
106 const char kIMSI[] = "IMSI";
107 const char kLastGoodAPN[] = "LastGoodAPN";
108 const char kManufacturer[] = "Manufacturer";
109 const char kMDN[] = "MDN";
110 const char kMEID[] = "MEID";
111 const char kMIN[] = "MIN";
112 const char kModelID[] = "ModelID";
113 const char kNetworkTechnology[] = "NetworkTechnology";
114 const char kPRLVersion[] = "PRLVersion";
115 const char kProviderRequiresRoaming[] = "ProviderRequiresRoaming";
116 const char kRoamingState[] = "RoamingState";
117 const char kHome[] = "Home";
118 const char kRoaming[] = "Roaming";
119 const char kServingOperator[] = "ServingOperator";
120 const char kSIMLockStatus[] = "SIMLockStatus";
121 const char kSIMPresent[] = "SIMPresent";
122 const char kSupportedCarriers[] = "SupportedCarriers";
123 const char kSupportNetworkScan[] = "SupportNetworkScan";
124 } // namespace cellular
126 namespace cellular_provider {
127 const char kCode[] = "Code";
128 const char kCountry[] = "Country";
129 const char kName[] = "Name";
130 } // namespace cellular_provider
132 namespace cellular_apn {
133 const char kAccessPointName[] = "AccessPointName";
134 const char kName[] = "Name";
135 const char kUsername[] = "Username";
136 const char kPassword[] = "Password";
137 const char kLocalizedName[] = "LocalizedName";
138 const char kLanguage[] = "LocalizedName";
139 } // namespace cellular_apn
141 namespace cellular_found_network {
142 const char kStatus[] = "Status";
143 const char kNetworkId[] = "NetworkId";
144 const char kShortName[] = "ShortName";
145 const char kLongName[] = "LongName";
146 const char kTechnology[] = "Technology";
147 } // namespace cellular_apn
149 namespace sim_lock_status {
150 const char kLockEnabled[] = "LockEnabled";
151 const char kLockType[] = "LockType";
152 const char kRetriesLeft[] = "RetriesLeft";
155 namespace connection_state {
156 const char kConnected[] = "Connected";
157 const char kConnecting[] = "Connecting";
158 const char kNotConnected[] = "NotConnected";
159 } // namespace connection_state
161 namespace ethernet {
162 const char kAuthentication[] = "Authentication";
163 const char kAuthenticationNone[] = "None";
164 const char kEAP[] = "EAP";
165 const char k8021X[] = "8021X";
166 } // namespace ethernet
168 namespace ipconfig {
169 const char kGateway[] = "Gateway";
170 const char kIPAddress[] = "IPAddress";
171 const char kIPv4[] = "IPv4";
172 const char kIPv6[] = "IPv6";
173 const char kNameServers[] = "NameServers";
174 const char kRoutingPrefix[] = "RoutingPrefix";
175 const char kType[] = "Type";
176 const char kWebProxyAutoDiscoveryUrl[] = "WebProxyAutoDiscoveryUrl";
177 } // namespace ipconfig
179 namespace wifi {
180 const char kAllowGatewayARPPolling[] = "AllowGatewayARPPolling";
181 const char kAutoConnect[] = "AutoConnect";
182 const char kBSSID[] = "BSSID";
183 const char kEAP[] = "EAP";
184 const char kFrequency[] = "Frequency";
185 const char kFrequencyList[] = "FrequencyList";
186 const char kHiddenSSID[] = "HiddenSSID";
187 const char kPassphrase[] = "Passphrase";
188 const char kSSID[] = "SSID";
189 const char kSecurity[] = "Security";
190 const char kSecurityNone[] = "None";
191 const char kSignalStrength[] = "SignalStrength";
192 const char kWEP_8021X[] = "WEP-8021X";
193 const char kWEP_PSK[] = "WEP-PSK";
194 const char kWPA_EAP[] = "WPA-EAP";
195 const char kWPA_PSK[] = "WPA-PSK";
196 const char kWPA2_PSK[] = "WPA2-PSK";
197 } // namespace wifi
199 namespace wimax {
200 const char kAutoConnect[] = "AutoConnect";
201 const char kEAP[] = "EAP";
202 const char kSignalStrength[] = "SignalStrength";
203 } // namespace wimax
205 namespace client_cert {
206 const char kClientCertPattern[] = "ClientCertPattern";
207 const char kClientCertRef[] = "ClientCertRef";
208 const char kClientCertType[] = "ClientCertType";
209 const char kClientCertTypeNone[] = "None";
210 const char kCommonName[] = "CommonName";
211 const char kEmailAddress[] = "EmailAddress";
212 const char kEnrollmentURI[] = "EnrollmentURI";
213 const char kIssuerCARef[] = "IssuerCARef";
214 const char kIssuerCAPEMs[] = "IssuerCAPEMs";
215 const char kIssuer[] = "Issuer";
216 const char kLocality[] = "Locality";
217 const char kOrganization[] = "Organization";
218 const char kOrganizationalUnit[] = "OrganizationalUnit";
219 const char kPattern[] = "Pattern";
220 const char kRef[] = "Ref";
221 const char kSubject[] = "Subject";
222 } // namespace client_cert
224 namespace certificate {
225 const char kAuthority[] = "Authority";
226 const char kClient[] = "Client";
227 const char kGUID[] = "GUID";
228 const char kPKCS12[] = "PKCS12";
229 const char kServer[] = "Server";
230 const char kTrustBits[] = "TrustBits";
231 const char kType[] = "Type";
232 const char kWeb[] = "Web";
233 const char kX509[] = "X509";
234 } // namespace certificate
236 namespace encrypted {
237 const char kAES256[] = "AES256";
238 const char kCipher[] = "Cipher";
239 const char kCiphertext[] = "Ciphertext";
240 const char kHMACMethod[] = "HMACMethod";
241 const char kHMAC[] = "HMAC";
242 const char kIV[] = "IV";
243 const char kIterations[] = "Iterations";
244 const char kPBKDF2[] = "PBKDF2";
245 const char kSHA1[] = "SHA1";
246 const char kSalt[] = "Salt";
247 const char kStretch[] = "Stretch";
248 } // namespace encrypted
250 namespace eap {
251 const char kAnonymousIdentity[] = "AnonymousIdentity";
252 const char kAutomatic[] = "Automatic";
253 const char kEAP_AKA[] = "EAP-AKA";
254 const char kEAP_FAST[] = "EAP-FAST";
255 const char kEAP_SIM[] = "EAP-SIM";
256 const char kEAP_TLS[] = "EAP-TLS";
257 const char kEAP_TTLS[] = "EAP-TTLS";
258 const char kIdentity[] = "Identity";
259 const char kInner[] = "Inner";
260 const char kLEAP[] = "LEAP";
261 const char kMD5[] = "MD5";
262 const char kMSCHAPv2[] = "MSCHAPv2";
263 const char kOuter[] = "Outer";
264 const char kPAP[] = "PAP";
265 const char kPEAP[] = "PEAP";
266 const char kPassword[] = "Password";
267 const char kSaveCredentials[] = "SaveCredentials";
268 const char kServerCAPEMs[] = "ServerCAPEMs";
269 const char kServerCARef[] = "ServerCARef";
270 const char kServerCARefs[] = "ServerCARefs";
271 const char kUseSystemCAs[] = "UseSystemCAs";
272 } // namespace eap
274 namespace vpn {
275 const char kAutoConnect[] = "AutoConnect";
276 const char kHost[] = "Host";
277 const char kIPsec[] = "IPsec";
278 const char kL2TP[] = "L2TP";
279 const char kOpenVPN[] = "OpenVPN";
280 const char kPassword[] = "Password";
281 const char kSaveCredentials[] = "SaveCredentials";
282 const char kTypeL2TP_IPsec[] = "L2TP-IPsec";
283 const char kType[] = "Type";
284 const char kUsername[] = "Username";
285 } // namespace vpn
287 namespace ipsec {
288 const char kAuthenticationType[] = "AuthenticationType";
289 const char kCert[] = "Cert";
290 const char kEAP[] = "EAP";
291 const char kGroup[] = "Group";
292 const char kIKEVersion[] = "IKEVersion";
293 const char kPSK[] = "PSK";
294 const char kServerCAPEMs[] = "ServerCAPEMs";
295 const char kServerCARef[] = "ServerCARef";
296 const char kServerCARefs[] = "ServerCARefs";
297 const char kXAUTH[] = "XAUTH";
298 } // namespace ipsec
300 namespace openvpn {
301 const char kAuthNoCache[] = "AuthNoCache";
302 const char kAuthRetry[] = "AuthRetry";
303 const char kAuth[] = "Auth";
304 const char kCipher[] = "Cipher";
305 const char kCompLZO[] = "CompLZO";
306 const char kCompNoAdapt[] = "CompNoAdapt";
307 const char kIgnoreDefaultRoute[] = "IgnoreDefaultRoute";
308 const char kInteract[] = "interact";
309 const char kKeyDirection[] = "KeyDirection";
310 const char kNoInteract[] = "nointeract";
311 const char kNone[] = "none";
312 const char kNsCertType[] = "NsCertType";
313 const char kOTP[] = "OTP";
314 const char kPassword[] = "Password";
315 const char kPort[] = "Port";
316 const char kProto[] = "Proto";
317 const char kPushPeerInfo[] = "PushPeerInfo";
318 const char kRemoteCertEKU[] = "RemoteCertEKU";
319 const char kRemoteCertKU[] = "RemoteCertKU";
320 const char kRemoteCertTLS[] = "RemoteCertTLS";
321 const char kRenegSec[] = "RenegSec";
322 const char kServerCAPEMs[] = "ServerCAPEMs";
323 const char kServerCARef[] = "ServerCARef";
324 const char kServerCARefs[] = "ServerCARefs";
325 const char kServerCertPEM[] = "ServerCertPEM";
326 const char kServerCertRef[] = "ServerCertRef";
327 const char kServerPollTimeout[] = "ServerPollTimeout";
328 const char kServer[] = "server";
329 const char kShaper[] = "Shaper";
330 const char kStaticChallenge[] = "StaticChallenge";
331 const char kTLSAuthContents[] = "TLSAuthContents";
332 const char kTLSRemote[] = "TLSRemote";
333 const char kUserAuthenticationType[] = "UserAuthenticationType";
334 const char kVerb[] = "Verb";
335 const char kVerifyHash[] = "VerifyHash";
336 const char kVerifyX509[] = "VerifyX509";
337 } // namespace openvpn
339 namespace openvpn_user_auth_type {
340 const char kNone[] = "None";
341 const char kOTP[] = "OTP";
342 const char kPassword[] = "Password";
343 const char kPasswordAndOTP[] = "PasswordAndOTP";
344 } // openvpn_user_auth_type
346 namespace verify_x509 {
347 const char kName[] = "Name";
348 const char kType[] = "Type";
350 namespace types {
351 const char kName[] = "name";
352 const char kNamePrefix[] = "name-prefix";
353 const char kSubject[] = "subject";
354 } // namespace types
355 } // namespace verify_x509
357 namespace proxy {
358 const char kDirect[] = "Direct";
359 const char kExcludeDomains[] = "ExcludeDomains";
360 const char kFtp[] = "FTPProxy";
361 const char kHost[] = "Host";
362 const char kHttp[] = "HTTPProxy";
363 const char kHttps[] = "SecureHTTPProxy";
364 const char kManual[] = "Manual";
365 const char kPAC[] = "PAC";
366 const char kPort[] = "Port";
367 const char kSocks[] = "SOCKS";
368 const char kType[] = "Type";
369 const char kWPAD[] = "WPAD";
370 } // namespace proxy
372 namespace substitutes {
373 const char kLoginIDField[] = "${LOGIN_ID}";
374 const char kEmailField[] = "${LOGIN_EMAIL}";
375 } // namespace substitutes
377 namespace global_network_config {
378 const char kAllowOnlyPolicyNetworksToAutoconnect[] =
379 "AllowOnlyPolicyNetworksToAutoconnect";
380 } // global_network_config
382 } // namespace onc