Ignore title parameter for navigator.registerProtocolHandler
[chromium-blink-merge.git] / components / onc / onc_constants.cc
blob260d19aeb490aca9bc753f74d71007685503aa44
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 kAugmentationUnmanaged[] = "Unmanaged";
13 const char kAugmentationUserPolicy[] = "UserPolicy";
14 const char kAugmentationDevicePolicy[] = "DevicePolicy";
15 const char kAugmentationUserSetting[] = "UserSetting";
16 const char kAugmentationSharedSetting[] = "SharedSetting";
17 const char kAugmentationUserEditable[] = "UserEditable";
18 const char kAugmentationDeviceEditable[] = "DeviceEditable";
20 // Common keys/values.
21 const char kRecommended[] = "Recommended";
22 const char kRemove[] = "Remove";
24 // Top Level Configuration
25 namespace toplevel_config {
26 const char kCertificates[] = "Certificates";
27 const char kEncryptedConfiguration[] = "EncryptedConfiguration";
28 const char kNetworkConfigurations[] = "NetworkConfigurations";
29 const char kGlobalNetworkConfiguration[] = "GlobalNetworkConfiguration";
30 const char kType[] = "Type";
31 const char kUnencryptedConfiguration[] = "UnencryptedConfiguration";
32 } // namespace toplevel_config
34 // Network Configuration
35 namespace network_config {
36 const char kCellular[] = "Cellular";
37 const char kEthernet[] = "Ethernet";
38 const char kGUID[] = "GUID";
39 const char kIPConfigs[] = "IPConfigs";
40 const char kName[] = "Name";
41 const char kNameServers[] = "NameServers";
42 const char kProxySettings[] = "ProxySettings";
43 const char kSearchDomains[] = "SearchDomains";
44 const char kConnectionState[] = "ConnectionState";
45 const char kConnectable[] = "Connectable";
46 const char kErrorState[] = "ErrorState";
47 const char kType[] = "Type";
48 const char kVPN[] = "VPN";
49 const char kWiFi[] = "WiFi";
51 std::string CellularProperty(const std::string& property) {
52 return std::string(kCellular) + "." + property;
55 std::string VpnProperty(const std::string& property) {
56 return std::string(kVPN) + "." + property;
59 std::string WifiProperty(const std::string& property) {
60 return std::string(kWiFi) + "." + property;
63 } // namespace network_config
65 namespace network_type {
66 const char kAllTypes[] = "All";
67 const char kCellular[] = "Cellular";
68 const char kEthernet[] = "Ethernet";
69 const char kVPN[] = "VPN";
70 const char kWiFi[] = "WiFi";
71 } // namespace network_type
73 namespace cellular {
74 const char kActivateOverNonCellularNetwork[] = "ActivateOverNonCellularNetwork";
75 const char kActivationState[] = "ActivationState";
76 const char kAllowRoaming[] = "AllowRoaming";
77 const char kAPN[] = "APN";
78 const char kAPNList[] = "APNList";
79 const char kCarrier[] = "Carrier";
80 const char kESN[] = "ESN";
81 const char kFamily[] = "Family";
82 const char kFirmwareRevision[] = "FirmwareRevision";
83 const char kFoundNetworks[] = "FoundNetworks";
84 const char kHardwareRevision[] = "HardwareRevision";
85 const char kHomeProvider[] = "HomeProvider";
86 const char kICCID[] = "ICCID";
87 const char kIMEI[] = "IMEI";
88 const char kIMSI[] = "IMSI";
89 const char kManufacturer[] = "Manufacturer";
90 const char kMDN[] = "MDN";
91 const char kMEID[] = "MEID";
92 const char kMIN[] = "MIN";
93 const char kModelID[] = "ModelID";
94 const char kNetworkTechnology[] = "NetworkTechnology";
95 const char kPRLVersion[] = "PRLVersion";
96 const char kProviderRequiresRoaming[] = "ProviderRequiresRoaming";
97 const char kRoamingState[] = "RoamingState";
98 const char kSelectedNetwork[] = "SelectedNetwork";
99 const char kServingOperator[] = "ServingOperator";
100 const char kSIMLockStatus[] = "SIMLockStatus";
101 const char kSIMPresent[] = "SIMPresent";
102 const char kSupportedCarriers[] = "SupportedCarriers";
103 const char kSupportNetworkScan[] = "SupportNetworkScan";
104 } // namespace cellular
106 namespace cellular_provider {
107 const char kCode[] = "Code";
108 const char kCountry[] = "Country";
109 const char kName[] = "Name";
110 } // namespace cellular_provider
112 namespace cellular_apn {
113 const char kName[] = "Name";
114 const char kUsername[] = "Username";
115 const char kPassword[] = "Password";
116 } // namespace cellular_apn
118 namespace connection_state {
119 const char kConnected[] = "Connected";
120 const char kConnecting[] = "Connecting";
121 const char kNotConnected[] = "NotConnected";
122 } // namespace connection_state
124 namespace ethernet {
125 const char kAuthentication[] = "Authentication";
126 const char kEAP[] = "EAP";
127 const char kNone[] = "None";
128 const char k8021X[] = "8021X";
129 } // namespace ethernet
131 namespace ipconfig {
132 const char kGateway[] = "Gateway";
133 const char kIPAddress[] = "IPAddress";
134 const char kIPv4[] = "IPv4";
135 const char kIPv6[] = "IPv6";
136 const char kNameServers[] = "NameServers";
137 const char kRoutingPrefix[] = "RoutingPrefix";
138 const char kType[] = "Type";
139 } // namespace ipconfig
141 namespace wifi {
142 const char kAutoConnect[] = "AutoConnect";
143 const char kBSSID[] = "BSSID";
144 const char kEAP[] = "EAP";
145 const char kFrequency[] = "Frequency";
146 const char kFrequencyList[] = "FrequencyList";
147 const char kHiddenSSID[] = "HiddenSSID";
148 const char kNone[] = "None";
149 const char kPassphrase[] = "Passphrase";
150 const char kProxyURL[] = "ProxyURL";
151 const char kSSID[] = "SSID";
152 const char kSecurity[] = "Security";
153 const char kSignalStrength[] = "SignalStrength";
154 const char kWEP_8021X[] = "WEP-8021X";
155 const char kWEP_PSK[] = "WEP-PSK";
156 const char kWPA_EAP[] = "WPA-EAP";
157 const char kWPA_PSK[] = "WPA-PSK";
158 const char kWPA2_PSK[] = "WPA2-PSK";
159 } // namespace wifi
161 namespace certificate {
162 const char kAuthority[] = "Authority";
163 const char kClient[] = "Client";
164 const char kCommonName[] = "CommonName";
165 const char kEmailAddress[] = "EmailAddress";
166 const char kEnrollmentURI[] = "EnrollmentURI";
167 const char kGUID[] = "GUID";
168 const char kIssuerCARef[] = "IssuerCARef";
169 const char kIssuerCAPEMs[] = "IssuerCAPEMs";
170 const char kIssuer[] = "Issuer";
171 const char kLocality[] = "Locality";
172 const char kNone[] = "None";
173 const char kOrganization[] = "Organization";
174 const char kOrganizationalUnit[] = "OrganizationalUnit";
175 const char kPKCS12[] = "PKCS12";
176 const char kPattern[] = "Pattern";
177 const char kRef[] = "Ref";
178 const char kServer[] = "Server";
179 const char kSubject[] = "Subject";
180 const char kTrustBits[] = "TrustBits";
181 const char kType[] = "Type";
182 const char kWeb[] = "Web";
183 const char kX509[] = "X509";
184 } // namespace certificate
186 namespace encrypted {
187 const char kAES256[] = "AES256";
188 const char kCipher[] = "Cipher";
189 const char kCiphertext[] = "Ciphertext";
190 const char kHMACMethod[] = "HMACMethod";
191 const char kHMAC[] = "HMAC";
192 const char kIV[] = "IV";
193 const char kIterations[] = "Iterations";
194 const char kPBKDF2[] = "PBKDF2";
195 const char kSHA1[] = "SHA1";
196 const char kSalt[] = "Salt";
197 const char kStretch[] = "Stretch";
198 } // namespace encrypted
200 namespace eap {
201 const char kAnonymousIdentity[] = "AnonymousIdentity";
202 const char kAutomatic[] = "Automatic";
203 const char kClientCertPattern[] = "ClientCertPattern";
204 const char kClientCertRef[] = "ClientCertRef";
205 const char kClientCertType[] = "ClientCertType";
206 const char kEAP_AKA[] = "EAP-AKA";
207 const char kEAP_FAST[] = "EAP-FAST";
208 const char kEAP_SIM[] = "EAP-SIM";
209 const char kEAP_TLS[] = "EAP-TLS";
210 const char kEAP_TTLS[] = "EAP-TTLS";
211 const char kIdentity[] = "Identity";
212 const char kInner[] = "Inner";
213 const char kLEAP[] = "LEAP";
214 const char kMD5[] = "MD5";
215 const char kMSCHAPv2[] = "MSCHAPv2";
216 const char kOuter[] = "Outer";
217 const char kPAP[] = "PAP";
218 const char kPEAP[] = "PEAP";
219 const char kPassword[] = "Password";
220 const char kSaveCredentials[] = "SaveCredentials";
221 const char kServerCAPEMs[] = "ServerCAPEMs";
222 const char kServerCARef[] = "ServerCARef";
223 const char kServerCARefs[] = "ServerCARefs";
224 const char kUseSystemCAs[] = "UseSystemCAs";
225 } // namespace eap
227 namespace vpn {
228 const char kAutoConnect[] = "AutoConnect";
229 const char kClientCertPattern[] = "ClientCertPattern";
230 const char kClientCertRef[] = "ClientCertRef";
231 const char kClientCertType[] = "ClientCertType";
232 const char kHost[] = "Host";
233 const char kIPsec[] = "IPsec";
234 const char kL2TP[] = "L2TP";
235 const char kOpenVPN[] = "OpenVPN";
236 const char kPassword[] = "Password";
237 const char kSaveCredentials[] = "SaveCredentials";
238 const char kTypeL2TP_IPsec[] = "L2TP-IPsec";
239 const char kType[] = "Type";
240 const char kUsername[] = "Username";
241 } // namespace vpn
243 namespace ipsec {
244 const char kAuthenticationType[] = "AuthenticationType";
245 const char kCert[] = "Cert";
246 const char kEAP[] = "EAP";
247 const char kGroup[] = "Group";
248 const char kIKEVersion[] = "IKEVersion";
249 const char kPSK[] = "PSK";
250 const char kServerCAPEMs[] = "ServerCAPEMs";
251 const char kServerCARef[] = "ServerCARef";
252 const char kServerCARefs[] = "ServerCARefs";
253 const char kXAUTH[] = "XAUTH";
254 } // namespace ipsec
256 namespace openvpn {
257 const char kAuthNoCache[] = "AuthNoCache";
258 const char kAuthRetry[] = "AuthRetry";
259 const char kAuth[] = "Auth";
260 const char kCipher[] = "Cipher";
261 const char kCompLZO[] = "CompLZO";
262 const char kCompNoAdapt[] = "CompNoAdapt";
263 const char kInteract[] = "interact";
264 const char kKeyDirection[] = "KeyDirection";
265 const char kNoInteract[] = "nointeract";
266 const char kNone[] = "none";
267 const char kNsCertType[] = "NsCertType";
268 const char kPort[] = "Port";
269 const char kProto[] = "Proto";
270 const char kPushPeerInfo[] = "PushPeerInfo";
271 const char kRemoteCertEKU[] = "RemoteCertEKU";
272 const char kRemoteCertKU[] = "RemoteCertKU";
273 const char kRemoteCertTLS[] = "RemoteCertTLS";
274 const char kRenegSec[] = "RenegSec";
275 const char kServerCAPEMs[] = "ServerCAPEMs";
276 const char kServerCARef[] = "ServerCARef";
277 const char kServerCARefs[] = "ServerCARefs";
278 const char kServerCertPEM[] = "ServerCertPEM";
279 const char kServerCertRef[] = "ServerCertRef";
280 const char kServerPollTimeout[] = "ServerPollTimeout";
281 const char kServer[] = "server";
282 const char kShaper[] = "Shaper";
283 const char kStaticChallenge[] = "StaticChallenge";
284 const char kTLSAuthContents[] = "TLSAuthContents";
285 const char kTLSRemote[] = "TLSRemote";
286 const char kVerb[] = "Verb";
287 const char kVerifyHash[] = "VerifyHash";
288 const char kVerifyX509[] = "VerifyX509";
289 } // namespace openvpn
291 namespace verify_x509 {
292 const char kName[] = "Name";
293 const char kType[] = "Type";
295 namespace types {
296 const char kName[] = "name";
297 const char kNamePrefix[] = "name-prefix";
298 const char kSubject[] = "subject";
299 } // namespace types
300 } // namespace verify_x509
302 namespace proxy {
303 const char kDirect[] = "Direct";
304 const char kExcludeDomains[] = "ExcludeDomains";
305 const char kFtp[] = "FTPProxy";
306 const char kHost[] = "Host";
307 const char kHttp[] = "HTTPProxy";
308 const char kHttps[] = "SecureHTTPProxy";
309 const char kManual[] = "Manual";
310 const char kPAC[] = "PAC";
311 const char kPort[] = "Port";
312 const char kSocks[] = "SOCKS";
313 const char kType[] = "Type";
314 const char kWPAD[] = "WPAD";
315 } // namespace proxy
317 namespace substitutes {
318 const char kLoginIDField[] = "${LOGIN_ID}";
319 const char kEmailField[] = "${LOGIN_EMAIL}";
320 } // namespace substitutes
322 namespace global_network_config {
323 const char kAllowOnlyPolicyNetworksToAutoconnect[] =
324 "AllowOnlyPolicyNetworksToAutoconnect";
325 } // global_network_config
327 } // namespace onc