Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / onc / onc_constants.h
blob3cea77fd24596aa7f0d86a4edacd45a6dfd0619f
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.
4 #ifndef COMPONENTS_ONC_ONC_CONSTANTS_H_
5 #define COMPONENTS_ONC_ONC_CONSTANTS_H_
7 #include <string>
9 #include "components/onc/onc_export.h"
11 // Constants for ONC properties.
12 namespace onc {
14 // Indicates from which source an ONC blob comes from.
15 enum ONCSource {
16 ONC_SOURCE_NONE,
17 ONC_SOURCE_USER_IMPORT,
18 ONC_SOURCE_DEVICE_POLICY,
19 ONC_SOURCE_USER_POLICY,
22 // These keys are used to augment the dictionary resulting from merging the
23 // different settings and policies.
25 // The setting that Shill declared to be using. For example, if no policy and no
26 // user setting exists, Shill might still report a property like network
27 // security options or a SSID.
28 ONC_EXPORT extern const char kAugmentationActiveSetting[];
29 // The one of different setting sources (user/device policy, user/shared
30 // settings) that has highest priority over the others.
31 ONC_EXPORT extern const char kAugmentationEffectiveSetting[];
32 ONC_EXPORT extern const char kAugmentationUnmanaged[];
33 ONC_EXPORT extern const char kAugmentationUserPolicy[];
34 ONC_EXPORT extern const char kAugmentationDevicePolicy[];
35 ONC_EXPORT extern const char kAugmentationUserSetting[];
36 ONC_EXPORT extern const char kAugmentationSharedSetting[];
37 ONC_EXPORT extern const char kAugmentationUserEditable[];
38 ONC_EXPORT extern const char kAugmentationDeviceEditable[];
40 // This is no ONC key or value but used for logging only.
41 // TODO(pneubeck): Remove.
42 ONC_EXPORT extern const char kNetworkConfiguration[];
44 // Common keys/values.
45 ONC_EXPORT extern const char kRecommended[];
46 ONC_EXPORT extern const char kRemove[];
48 // Top Level Configuration
49 namespace toplevel_config {
50 ONC_EXPORT extern const char kCertificates[];
51 ONC_EXPORT extern const char kEncryptedConfiguration[];
52 ONC_EXPORT extern const char kNetworkConfigurations[];
53 ONC_EXPORT extern const char kGlobalNetworkConfiguration[];
54 ONC_EXPORT extern const char kType[];
55 ONC_EXPORT extern const char kUnencryptedConfiguration[];
56 } // namespace toplevel_config
58 // NetworkConfiguration.
59 namespace network_config {
60 ONC_EXPORT extern const char kCellular[];
61 ONC_EXPORT extern const char kDevice[];
62 ONC_EXPORT extern const char kEthernet[];
63 ONC_EXPORT extern const char kGUID[];
64 ONC_EXPORT extern const char kIPConfigs[];
65 ONC_EXPORT extern const char kMacAddress[];
66 ONC_EXPORT extern const char kName[];
67 ONC_EXPORT extern const char kNameServers[];
68 ONC_EXPORT extern const char kPriority[];
69 ONC_EXPORT extern const char kProxySettings[];
70 ONC_EXPORT extern const char kSearchDomains[];
71 ONC_EXPORT extern const char kConnectionState[];
72 ONC_EXPORT extern const char kConnectable[];
73 ONC_EXPORT extern const char kErrorState[];
74 ONC_EXPORT extern const char kType[];
75 ONC_EXPORT extern const char kVPN[];
76 ONC_EXPORT extern const char kWiFi[];
78 ONC_EXPORT extern std::string CellularProperty(const std::string& property);
79 ONC_EXPORT extern std::string VpnProperty(const std::string& property);
80 ONC_EXPORT extern std::string WifiProperty(const std::string& property);
82 } // namespace network_config
84 namespace network_type {
85 ONC_EXPORT extern const char kCellular[];
86 ONC_EXPORT extern const char kEthernet[];
87 ONC_EXPORT extern const char kVPN[];
88 ONC_EXPORT extern const char kWiFi[];
89 ONC_EXPORT extern const char kWimax[];
90 // Patterns matching multiple types, not part of the ONC spec.
91 ONC_EXPORT extern const char kAllTypes[];
92 ONC_EXPORT extern const char kWireless[];
93 } // namespace network_type
95 namespace cellular {
96 ONC_EXPORT extern const char kActivationState[];
97 ONC_EXPORT extern const char kActivationType[];
98 ONC_EXPORT extern const char kAllowRoaming[];
99 ONC_EXPORT extern const char kAPN[];
100 ONC_EXPORT extern const char kAPNList[];
101 ONC_EXPORT extern const char kCarrier[];
102 ONC_EXPORT extern const char kESN[];
103 ONC_EXPORT extern const char kFamily[];
104 ONC_EXPORT extern const char kFirmwareRevision[];
105 ONC_EXPORT extern const char kFoundNetworks[];
106 ONC_EXPORT extern const char kHardwareRevision[];
107 ONC_EXPORT extern const char kHomeProvider[];
108 ONC_EXPORT extern const char kICCID[];
109 ONC_EXPORT extern const char kIMEI[];
110 ONC_EXPORT extern const char kIMSI[];
111 ONC_EXPORT extern const char kLastGoodAPN[];
112 ONC_EXPORT extern const char kManufacturer[];
113 ONC_EXPORT extern const char kMDN[];
114 ONC_EXPORT extern const char kMEID[];
115 ONC_EXPORT extern const char kMIN[];
116 ONC_EXPORT extern const char kModelID[];
117 ONC_EXPORT extern const char kNetworkTechnology[];
118 ONC_EXPORT extern const char kPRLVersion[];
119 ONC_EXPORT extern const char kProviderRequiresRoaming[];
120 ONC_EXPORT extern const char kRoamingState[];
121 ONC_EXPORT extern const char kSelectedNetwork[];
122 ONC_EXPORT extern const char kServingOperator[];
123 ONC_EXPORT extern const char kSIMLockStatus[];
124 ONC_EXPORT extern const char kSIMPresent[];
125 ONC_EXPORT extern const char kSupportedCarriers[];
126 ONC_EXPORT extern const char kSupportNetworkScan[];
127 } // namespace cellular
129 namespace cellular_provider {
130 ONC_EXPORT extern const char kCode[];
131 ONC_EXPORT extern const char kCountry[];
132 ONC_EXPORT extern const char kName[];
133 } // namespace cellular_provider
135 namespace cellular_apn {
136 ONC_EXPORT extern const char kAccessPointName[];
137 ONC_EXPORT extern const char kName[];
138 ONC_EXPORT extern const char kUsername[];
139 ONC_EXPORT extern const char kPassword[];
140 ONC_EXPORT extern const char kLocalizedName[];
141 ONC_EXPORT extern const char kLanguage[];
142 } // namespace cellular_apn
144 namespace cellular_found_network {
145 ONC_EXPORT extern const char kStatus[];
146 ONC_EXPORT extern const char kNetworkId[];
147 ONC_EXPORT extern const char kShortName[];
148 ONC_EXPORT extern const char kLongName[];
149 ONC_EXPORT extern const char kTechnology[];
150 } // namespace cellular_found_network
152 namespace sim_lock_status {
153 ONC_EXPORT extern const char kLockEnabled[];
154 ONC_EXPORT extern const char kLockType[];
155 ONC_EXPORT extern const char kRetriesLeft[];
156 } // namespace sim_lock_status
158 namespace connection_state {
159 ONC_EXPORT extern const char kConnected[];
160 ONC_EXPORT extern const char kConnecting[];
161 ONC_EXPORT extern const char kNotConnected[];
162 } // namespace connection_state
164 namespace ipconfig {
165 ONC_EXPORT extern const char kGateway[];
166 ONC_EXPORT extern const char kIPAddress[];
167 ONC_EXPORT extern const char kIPv4[];
168 ONC_EXPORT extern const char kIPv6[];
169 ONC_EXPORT extern const char kNameServers[];
170 ONC_EXPORT extern const char kRoutingPrefix[];
171 ONC_EXPORT extern const char kType[];
172 } // namespace ipconfig
174 namespace ethernet {
175 ONC_EXPORT extern const char kAuthentication[];
176 ONC_EXPORT extern const char kAuthenticationNone[];
177 ONC_EXPORT extern const char kEAP[];
178 ONC_EXPORT extern const char k8021X[];
179 } // namespace ethernet
181 namespace wifi {
182 ONC_EXPORT extern const char kAutoConnect[];
183 ONC_EXPORT extern const char kBSSID[];
184 ONC_EXPORT extern const char kEAP[];
185 ONC_EXPORT extern const char kFrequency[];
186 ONC_EXPORT extern const char kFrequencyList[];
187 ONC_EXPORT extern const char kHiddenSSID[];
188 ONC_EXPORT extern const char kPassphrase[];
189 ONC_EXPORT extern const char kProxyURL[];
190 ONC_EXPORT extern const char kSSID[];
191 ONC_EXPORT extern const char kSecurity[];
192 ONC_EXPORT extern const char kSecurityNone[];
193 ONC_EXPORT extern const char kSignalStrength[];
194 ONC_EXPORT extern const char kWEP_PSK[];
195 ONC_EXPORT extern const char kWEP_8021X[];
196 ONC_EXPORT extern const char kWPA_PSK[];
197 ONC_EXPORT extern const char kWPA2_PSK[];
198 ONC_EXPORT extern const char kWPA_EAP[];
199 } // namespace wifi
201 namespace client_cert {
202 ONC_EXPORT extern const char kClientCertPattern[];
203 ONC_EXPORT extern const char kClientCertRef[];
204 ONC_EXPORT extern const char kClientCertType[];
205 ONC_EXPORT extern const char kClientCertTypeNone[];
206 ONC_EXPORT extern const char kCommonName[];
207 ONC_EXPORT extern const char kEmailAddress[];
208 ONC_EXPORT extern const char kEnrollmentURI[];
209 ONC_EXPORT extern const char kIssuerCARef[];
210 ONC_EXPORT extern const char kIssuerCAPEMs[];
211 ONC_EXPORT extern const char kIssuer[];
212 ONC_EXPORT extern const char kLocality[];
213 ONC_EXPORT extern const char kOrganization[];
214 ONC_EXPORT extern const char kOrganizationalUnit[];
215 ONC_EXPORT extern const char kPattern[];
216 ONC_EXPORT extern const char kRef[];
217 ONC_EXPORT extern const char kSubject[];
218 } // namespace client_cert
220 namespace certificate {
221 ONC_EXPORT extern const char kAuthority[];
222 ONC_EXPORT extern const char kClient[];
223 ONC_EXPORT extern const char kGUID[];
224 ONC_EXPORT extern const char kPKCS12[];
225 ONC_EXPORT extern const char kServer[];
226 ONC_EXPORT extern const char kTrustBits[];
227 ONC_EXPORT extern const char kType[];
228 ONC_EXPORT extern const char kWeb[];
229 ONC_EXPORT extern const char kX509[];
230 } // namespace certificate
232 namespace encrypted {
233 ONC_EXPORT extern const char kAES256[];
234 ONC_EXPORT extern const char kCipher[];
235 ONC_EXPORT extern const char kCiphertext[];
236 ONC_EXPORT extern const char kHMACMethod[];
237 ONC_EXPORT extern const char kHMAC[];
238 ONC_EXPORT extern const char kIV[];
239 ONC_EXPORT extern const char kIterations[];
240 ONC_EXPORT extern const char kPBKDF2[];
241 ONC_EXPORT extern const char kSHA1[];
242 ONC_EXPORT extern const char kSalt[];
243 ONC_EXPORT extern const char kStretch[];
244 } // namespace encrypted
246 namespace eap {
247 ONC_EXPORT extern const char kAnonymousIdentity[];
248 ONC_EXPORT extern const char kAutomatic[];
249 ONC_EXPORT extern const char kEAP_AKA[];
250 ONC_EXPORT extern const char kEAP_FAST[];
251 ONC_EXPORT extern const char kEAP_SIM[];
252 ONC_EXPORT extern const char kEAP_TLS[];
253 ONC_EXPORT extern const char kEAP_TTLS[];
254 ONC_EXPORT extern const char kIdentity[];
255 ONC_EXPORT extern const char kInner[];
256 ONC_EXPORT extern const char kLEAP[];
257 ONC_EXPORT extern const char kMD5[];
258 ONC_EXPORT extern const char kMSCHAPv2[];
259 ONC_EXPORT extern const char kOuter[];
260 ONC_EXPORT extern const char kPAP[];
261 ONC_EXPORT extern const char kPEAP[];
262 ONC_EXPORT extern const char kPassword[];
263 ONC_EXPORT extern const char kSaveCredentials[];
264 ONC_EXPORT extern const char kServerCAPEMs[];
265 ONC_EXPORT extern const char kServerCARef[];
266 ONC_EXPORT extern const char kServerCARefs[];
267 ONC_EXPORT extern const char kUseSystemCAs[];
268 } // namespace eap
270 namespace vpn {
271 ONC_EXPORT extern const char kAutoConnect[];
272 ONC_EXPORT extern const char kHost[];
273 ONC_EXPORT extern const char kIPsec[];
274 ONC_EXPORT extern const char kL2TP[];
275 ONC_EXPORT extern const char kOpenVPN[];
276 ONC_EXPORT extern const char kPassword[];
277 ONC_EXPORT extern const char kSaveCredentials[];
278 ONC_EXPORT extern const char kTypeL2TP_IPsec[];
279 ONC_EXPORT extern const char kType[];
280 ONC_EXPORT extern const char kUsername[];
281 } // namespace vpn
283 namespace ipsec {
284 ONC_EXPORT extern const char kAuthenticationType[];
285 ONC_EXPORT extern const char kCert[];
286 ONC_EXPORT extern const char kEAP[];
287 ONC_EXPORT extern const char kGroup[];
288 ONC_EXPORT extern const char kIKEVersion[];
289 ONC_EXPORT extern const char kPSK[];
290 ONC_EXPORT extern const char kServerCAPEMs[];
291 ONC_EXPORT extern const char kServerCARef[];
292 ONC_EXPORT extern const char kServerCARefs[];
293 ONC_EXPORT extern const char kXAUTH[];
294 } // namespace ipsec
296 namespace openvpn {
297 ONC_EXPORT extern const char kAuthNoCache[];
298 ONC_EXPORT extern const char kAuthRetry[];
299 ONC_EXPORT extern const char kAuth[];
300 ONC_EXPORT extern const char kCipher[];
301 ONC_EXPORT extern const char kCompLZO[];
302 ONC_EXPORT extern const char kCompNoAdapt[];
303 ONC_EXPORT extern const char kIgnoreDefaultRoute[];
304 ONC_EXPORT extern const char kInteract[];
305 ONC_EXPORT extern const char kKeyDirection[];
306 ONC_EXPORT extern const char kNoInteract[];
307 ONC_EXPORT extern const char kNone[];
308 ONC_EXPORT extern const char kNsCertType[];
309 ONC_EXPORT extern const char kPort[];
310 ONC_EXPORT extern const char kProto[];
311 ONC_EXPORT extern const char kPushPeerInfo[];
312 ONC_EXPORT extern const char kRemoteCertEKU[];
313 ONC_EXPORT extern const char kRemoteCertKU[];
314 ONC_EXPORT extern const char kRemoteCertTLS[];
315 ONC_EXPORT extern const char kRenegSec[];
316 ONC_EXPORT extern const char kServerCAPEMs[];
317 ONC_EXPORT extern const char kServerCARef[];
318 ONC_EXPORT extern const char kServerCARefs[];
319 ONC_EXPORT extern const char kServerCertPEM[];
320 ONC_EXPORT extern const char kServerCertRef[];
321 ONC_EXPORT extern const char kServerPollTimeout[];
322 ONC_EXPORT extern const char kServer[];
323 ONC_EXPORT extern const char kShaper[];
324 ONC_EXPORT extern const char kStaticChallenge[];
325 ONC_EXPORT extern const char kTLSAuthContents[];
326 ONC_EXPORT extern const char kTLSRemote[];
327 ONC_EXPORT extern const char kVerb[];
328 ONC_EXPORT extern const char kVerifyHash[];
329 ONC_EXPORT extern const char kVerifyX509[];
330 } // namespace openvpn
332 namespace verify_x509 {
333 ONC_EXPORT extern const char kName[];
334 ONC_EXPORT extern const char kType[];
336 namespace types {
337 ONC_EXPORT extern const char kName[];
338 ONC_EXPORT extern const char kNamePrefix[];
339 ONC_EXPORT extern const char kSubject[];
340 } // namespace types
341 } // namespace verify_x509
343 namespace substitutes {
344 ONC_EXPORT extern const char kEmailField[];
345 ONC_EXPORT extern const char kLoginIDField[];
346 } // namespace substitutes
348 namespace proxy {
349 ONC_EXPORT extern const char kDirect[];
350 ONC_EXPORT extern const char kExcludeDomains[];
351 ONC_EXPORT extern const char kFtp[];
352 ONC_EXPORT extern const char kHost[];
353 ONC_EXPORT extern const char kHttp[];
354 ONC_EXPORT extern const char kHttps[];
355 ONC_EXPORT extern const char kManual[];
356 ONC_EXPORT extern const char kPAC[];
357 ONC_EXPORT extern const char kPort[];
358 ONC_EXPORT extern const char kSocks[];
359 ONC_EXPORT extern const char kType[];
360 ONC_EXPORT extern const char kWPAD[];
361 } // namespace proxy
363 namespace global_network_config {
364 ONC_EXPORT extern const char kAllowOnlyPolicyNetworksToAutoconnect[];
365 } // global_network_config
367 } // namespace onc
369 #endif // COMPONENTS_ONC_ONC_CONSTANTS_H_