Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(825)

Side by Side Diff: chrome/browser/chromeos/cros/onc_constants.cc

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review changes Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/cros/onc_constants.h"
6
7 namespace chromeos {
8
9 // Constants for ONC properties.
10 namespace onc {
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.
20 const char kRecommended[] = "Recommended";
21 const char kRemove[] = "Remove";
22
23 // Network Configuration
24 const char kCellular[] = "Cellular";
25 const char kEthernet[] = "Ethernet";
26 const char kGUID[] = "GUID";
27 const char kIPConfigs[] = "IPConfigs";
28 const char kName[] = "Name";
29 const char kNameServers[] = "NameServers";
30 const char kProxySettings[] = "ProxySettings";
31 const char kSearchDomains[] = "SearchDomains";
32 const char kType[] = "Type";
33 const char kVPN[] = "VPN";
34 const char kWiFi[] = "WiFi";
35
36 namespace ethernet {
37 const char kAuthentication[] = "Authentication";
38 const char kEAP[] = "EAP";
39 const char kNone[] = "None";
40 const char k8021X[] = "8021X";
41 } // namespace ethernet
42
43 namespace ipconfig {
44 const char kGateway[] = "Gateway";
45 const char kIPAddress[] = "IPAddress";
46 const char kIPv4[] = "IPv4";
47 const char kIPv6[] = "IPv6";
48 const char kRoutingPrefix[] = "RoutingPrefix";
49 const char kType[] = "Type";
50 } // namespace ipconfig
51
52 namespace wifi {
53 const char kAutoConnect[] = "AutoConnect";
54 const char kEAP[] = "EAP";
55 const char kHiddenSSID[] = "HiddenSSID";
56 const char kNone[] = "None";
57 const char kPassphrase[] = "Passphrase";
58 const char kProxyURL[] = "ProxyURL";
59 const char kSSID[] = "SSID";
60 const char kSecurity[] = "Security";
61 const char kWEP_PSK[] = "WEP-PSK";
62 const char kWEP_8021X[] = "WEP-8021X";
63 const char kWPA_PSK[] = "WPA-PSK";
64 const char kWPA_EAP[] = "WPA-EAP";
65 } // namespace wifi
66
67 namespace certificate {
68 const char kAuthority[] = "Authority";
69 const char kClient[] = "Client";
70 const char kCommonName[] = "CommonName";
71 const char kEmailAddress[] = "EmailAddress";
72 const char kEnrollmentURI[] = "EnrollmentURI";
73 const char kIssuerCARef[] = "IssuerCARef";
74 const char kIssuer[] = "Issuer";
75 const char kLocality[] = "Locality";
76 const char kNone[] = "None";
77 const char kOrganization[] = "Organization";
78 const char kOrganizationalUnit[] = "OrganizationalUnit";
79 const char kPKCS12[] = "PKCS12";
80 const char kPattern[] = "Pattern";
81 const char kRef[] = "Ref";
82 const char kServer[] = "Server";
83 const char kSubject[] = "Subject";
84 const char kTrust[] = "Trust";
85 const char kType[] = "Type";
86 const char kWeb[] = "Web";
87 const char kX509[] = "X509";
88 } // namespace certificate
89
90 namespace encrypted {
91 const char kAES256[] = "AES256";
92 const char kCipher[] = "Cipher";
93 const char kCiphertext[] = "Ciphertext";
94 const char kHMACMethod[] = "HMACMethod";
95 const char kHMAC[] = "HMAC";
96 const char kIV[] = "IV";
97 const char kIterations[] = "Iterations";
98 const char kPBKDF2[] = "PBKDF2";
99 const char kSHA1[] = "SHA1";
100 const char kSalt[] = "Salt";
101 const char kStretch[] = "Stretch";
102 const char kType[] = "Type";
103 } // namespace encrypted
104
105 namespace eap {
106 const char kAnonymousIdentity[] = "AnonymousIdentity";
107 const char kAutomatic[] = "Automatic";
108 const char kClientCertPattern[] = "ClientCertPattern";
109 const char kClientCertRef[] = "ClientCertRef";
110 const char kClientCertType[] = "ClientCertType";
111 const char kEAP_AKA[] = "EAP-AKA";
112 const char kEAP_FAST[] = "EAP-FAST";
113 const char kEAP_SIM[] = "EAP-SIM";
114 const char kEAP_TLS[] = "EAP-TLS";
115 const char kEAP_TTLS[] = "EAP-TTLS";
116 const char kIdentity[] = "Identity";
117 const char kInner[] = "Inner";
118 const char kLEAP[] = "LEAP";
119 const char kMD5[] = "MD5";
120 const char kMSCHAPv2[] = "MSCHAPv2";
121 const char kOuter[] = "Outer";
122 const char kPAP[] = "PAP";
123 const char kPEAP[] = "PEAP";
124 const char kPassword[] = "Password";
125 const char kSaveCredentials[] = "SaveCredentials";
126 const char kServerCARef[] = "ServerCARef";
127 const char kUseSystemCAs[] = "UseSystemCAs";
128 } // namespace eap
129
130 namespace vpn {
131 const char kAuthNoCache[] = "AuthNoCache";
132 const char kAuthRetry[] = "AuthRetry";
133 const char kAuth[] = "Auth";
134 const char kAuthenticationType[] = "AuthenticationType";
135 const char kCert[] = "Cert";
136 const char kCipher[] = "Cipher";
137 const char kClientCertPattern[] = "ClientCertPattern";
138 const char kClientCertRef[] = "ClientCertRef";
139 const char kClientCertType[] = "ClientCertType";
140 const char kCompLZO[] = "CompLZO";
141 const char kCompNoAdapt[] = "CompNoAdapt";
142 const char kEAP[] = "EAP";
143 const char kGroup[] = "Group";
144 const char kHost[] = "Host";
145 const char kIKEVersion[] = "IKEVersion";
146 const char kIPsec[] = "IPsec";
147 const char kKeyDirection[] = "KeyDirection";
148 const char kL2TP[] = "L2TP";
149 const char kNsCertType[] = "NsCertType";
150 const char kOpenVPN[] = "OpenVPN";
151 const char kPSK[] = "PSK";
152 const char kPassword[] = "Password";
153 const char kPort[] = "Port";
154 const char kProto[] = "Proto";
155 const char kPushPeerInfo[] = "PushPeerInfo";
156 const char kRemoteCertEKU[] = "RemoteCertEKU";
157 const char kRemoteCertKU[] = "RemoteCertKU";
158 const char kRemoteCertTLS[] = "RemoteCertTLS";
159 const char kRenegSec[] = "RenegSec";
160 const char kSaveCredentials[] = "SaveCredentials";
161 const char kServerCARef[] = "ServerCARef";
162 const char kServerCertRef[] = "ServerCertRef";
163 const char kServerPollTimeout[] = "ServerPollTimeout";
164 const char kShaper[] = "Shaper";
165 const char kStaticChallenge[] = "StaticChallenge";
166 const char kTLSAuthContents[] = "TLSAuthContents";
167 const char kTLSRemote[] = "TLSRemote";
168 const char kTypeL2TP_IPsec[] = "L2TP-IPsec";
169 const char kType[] = "Type";
170 const char kUsername[] = "Username";
171 const char kVerb[] = "Verb";
172 const char kXAUTH[] = "XAUTH";
173 } // namespace vpn
174
175 namespace openvpn {
176 const char kNone[] = "none";
177 const char kInteract[] = "interact";
178 const char kNoInteract[] = "nointeract";
179 const char kServer[] = "server";
180 } // namespace openvpn
181
182 namespace proxy {
183 const char kDirect[] = "Direct";
184 const char kExcludeDomains[] = "ExcludeDomains";
185 const char kFtp[] = "FTPProxy";
186 const char kHost[] = "Host";
187 const char kHttp[] = "HTTPProxy";
188 const char kHttps[] = "SecureHTTPProxy";
189 const char kManual[] = "Manual";
190 const char kPAC[] = "PAC";
191 const char kPort[] = "Port";
192 const char kSocks[] = "SOCKS";
193 const char kType[] = "Type";
194 const char kWPAD[] = "WPAD";
195 } // namespace proxy
196
197 namespace substitutes {
198 const char kLoginIDField[] = "${LOGIN_ID}";
199 const char kEmailField[] = "${LOGIN_EMAIL}";
200 } // namespace substitutes
201
202 } // namespace onc
203
204 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698