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

Side by Side Diff: chrome/browser/chromeos/cros/native_network_constants.h

Issue 7453051: This factors out all of the parsing code from the network library (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reducing friends to minimal set. Created 9 years, 4 months 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) 2011 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 // Defines all the command-line switches used by Chrome.
6
7 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_CONSTANTS_H_
8 #define CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_CONSTANTS_H_
9 #pragma once
10
11 #include "chrome/browser/chromeos/cros/network_library.h"
12
13 namespace chromeos {
14
15 // Format of the Carrier ID.
16 extern const char kCarrierIdFormat[];
17
18 // Path of the default (shared) flimflam profile.
19 extern const char kSharedProfilePath[];
20
21 // D-Bus interface string constants, used in both the native parsing
22 // and network library code.
23
24 // Flimflam manager properties.
25 extern const char kAvailableTechnologiesProperty[];
26 extern const char kEnabledTechnologiesProperty[];
27 extern const char kConnectedTechnologiesProperty[];
28 extern const char kDefaultTechnologyProperty[];
29 extern const char kOfflineModeProperty[];
30 extern const char kActiveProfileProperty[];
31 extern const char kProfilesProperty[];
32 extern const char kServicesProperty[];
33 extern const char kServiceWatchListProperty[];
34 extern const char kDevicesProperty[];
35 extern const char kPortalUrlProperty[];
36 extern const char kCheckPortalListProperty[];
37 extern const char kArpGatewayProperty[];
38
39 // Flimflam service properties.
40 extern const char kSecurityProperty[];
41 extern const char kPassphraseProperty[];
42 extern const char kIdentityProperty[];
43 extern const char kPassphraseRequiredProperty[];
44 extern const char kSaveCredentialsProperty[];
45 extern const char kSignalStrengthProperty[];
46 extern const char kNameProperty[];
47 extern const char kGuidProperty[];
48 extern const char kStateProperty[];
49 extern const char kTypeProperty[];
50 extern const char kDeviceProperty[];
51 extern const char kProfileProperty[];
52 extern const char kTechnologyFamilyProperty[];
53 extern const char kActivationStateProperty[];
54 extern const char kNetworkTechnologyProperty[];
55 extern const char kRoamingStateProperty[];
56 extern const char kOperatorNameProperty[];
57 extern const char kOperatorCodeProperty[];
58 extern const char kServingOperatorProperty[];
59 extern const char kPaymentUrlProperty[];
60 extern const char kUsageUrlProperty[];
61 extern const char kCellularApnProperty[];
62 extern const char kCellularLastGoodApnProperty[];
63 extern const char kCellularApnListProperty[];
64 extern const char kWifiHexSsid[];
65 extern const char kWifiFrequency[];
66 extern const char kWifiHiddenSsid[];
67 extern const char kWifiPhyMode[];
68 extern const char kWifiAuthMode[];
69 extern const char kFavoriteProperty[];
70 extern const char kConnectableProperty[];
71 extern const char kPriorityProperty[];
72 extern const char kAutoConnectProperty[];
73 extern const char kIsActiveProperty[];
74 extern const char kModeProperty[];
75 extern const char kErrorProperty[];
76 extern const char kEntriesProperty[];
77 extern const char kProviderProperty[];
78 extern const char kHostProperty[];
79 extern const char kProxyConfigProperty[];
80
81 // Flimflam property names for SIMLock status.
82 extern const char kSimLockStatusProperty[];
83 extern const char kSimLockTypeProperty[];
84 extern const char kSimLockRetriesLeftProperty[];
85
86 // Flimflam property names for Cellular.FoundNetworks.
87 extern const char kLongNameProperty[];
88 extern const char kStatusProperty[];
89 extern const char kShortNameProperty[];
90 extern const char kTechnologyProperty[];
91 extern const char kNetworkIdProperty[];
92
93 // Flimflam SIMLock status types.
94 extern const char kSimLockPin[];
95 extern const char kSimLockPuk[];
96
97 // APN info property names.
98 extern const char kApnProperty[];
99 extern const char kApnNetworkIdProperty[];
100 extern const char kApnUsernameProperty[];
101 extern const char kApnPasswordProperty[];
102 extern const char kApnNameProperty[];
103 extern const char kApnLocalizedNameProperty[];
104 extern const char kApnLanguageProperty[];
105
106 // Operator info property names.
107 extern const char kOperatorNameKey[];
108 extern const char kOperatorCodeKey[];
109 extern const char kOperatorCountryKey[];
110
111 // Flimflam device info property names.
112 extern const char kScanningProperty[];
113 extern const char kPoweredProperty[];
114 extern const char kNetworksProperty[];
115 extern const char kCarrierProperty[];
116 extern const char kCellularAllowRoamingProperty[];
117 extern const char kHomeProviderProperty[];
118 extern const char kMeidProperty[];
119 extern const char kImeiProperty[];
120 extern const char kImsiProperty[];
121 extern const char kEsnProperty[];
122 extern const char kMdnProperty[];
123 extern const char kMinProperty[];
124 extern const char kModelIdProperty[];
125 extern const char kManufacturerProperty[];
126 extern const char kFirmwareRevisionProperty[];
127 extern const char kHardwareRevisionProperty[];
128 extern const char kPrlVersionProperty[]; // (INT16)
129 extern const char kSelectedNetworkProperty[];
130 extern const char kSupportNetworkScanProperty[];
131 extern const char kFoundNetworksProperty[];
132
133 // Flimflam ip config property names.
134 extern const char kAddressProperty[];
135 extern const char kPrefixlenProperty[];
136 extern const char kGatewayProperty[];
137 extern const char kNameServersProperty[];
138
139 // Flimflam type options.
140 extern const char kTypeEthernet[];
141 extern const char kTypeWifi[];
142 extern const char kTypeWimax[];
143 extern const char kTypeBluetooth[];
144 extern const char kTypeCellular[];
145 extern const char kTypeVpn[];
146
147 // Flimflam mode options.
148 extern const char kModeManaged[];
149 extern const char kModeAdhoc[];
150
151 // Flimflam security options.
152 extern const char kSecurityWpa[];
153 extern const char kSecurityWep[];
154 extern const char kSecurityRsn[];
155 extern const char kSecurity8021x[];
156 extern const char kSecurityPsk[];
157 extern const char kSecurityNone[];
158
159 // Flimflam L2TPIPsec property names.
160 extern const char kL2tpIpsecCaCertNssProperty[];
161 extern const char kL2tpIpsecClientCertIdProperty[];
162 extern const char kL2tpIpsecClientCertSlotProp[];
163 extern const char kL2tpIpsecPinProperty[];
164 extern const char kL2tpIpsecPskProperty[];
165 extern const char kL2tpIpsecUserProperty[];
166 extern const char kL2tpIpsecPasswordProperty[];
167
168 // Flimflam EAP property names.
169 // See src/third_party/flimflam/doc/service-api.txt.
170 extern const char kEapIdentityProperty[];
171 extern const char kEapMethodProperty[];
172 extern const char kEapPhase2AuthProperty[];
173 extern const char kEapAnonymousIdentityProperty[];
174 extern const char kEapClientCertProperty[]; // path
175 extern const char kEapCertIdProperty[]; // PKCS#11 ID
176 extern const char kEapClientCertNssProperty[]; // NSS nickname
177 extern const char kEapPrivateKeyProperty[];
178 extern const char kEapPrivateKeyPasswordProperty[];
179 extern const char kEapKeyIdProperty[];
180 extern const char kEapCaCertProperty[]; // server CA cert path
181 extern const char kEapCaCertIdProperty[]; // server CA PKCS#11 ID
182 extern const char kEapCaCertNssProperty[]; // server CA NSS nickname
183 extern const char kEapUseSystemCasProperty[];
184 extern const char kEapPinProperty[];
185 extern const char kEapPasswordProperty[];
186 extern const char kEapKeyMgmtProperty[];
187
188 // Flimflam EAP method options.
189 extern const char kEapMethodPeap[];
190 extern const char kEapMethodTls[];
191 extern const char kEapMethodTtls[];
192 extern const char kEapMethodLeap[];
193
194 // Flimflam EAP phase 2 auth options.
195 extern const char kEapPhase2AuthPeapMd5[];
196 extern const char kEapPhase2AuthPeapMschap2[];
197 extern const char kEapPhase2AuthTtlsMd5[];
198 extern const char kEapPhase2AuthTtlsMschapV2[];
199 extern const char kEapPhase2AuthTtlsMschap[];
200 extern const char kEapPhase2AuthTtlsPap[];
201 extern const char kEapPhase2AuthTtlsChap[];
202
203 // Flimflam VPN provider types.
204 extern const char kProviderL2tpIpsec[];
205 extern const char kProviderOpenVpn[];
206
207 // Flimflam state options.
208 extern const char kStateIdle[];
209 extern const char kStateCarrier[];
210 extern const char kStateAssociation[];
211 extern const char kStateConfiguration[];
212 extern const char kStateReady[];
213 extern const char kStatePortal[];
214 extern const char kStateOnline[];
215 extern const char kStateDisconnect[];
216 extern const char kStateFailure[];
217 extern const char kStateActivationFailure[];
218
219 // Flimflam network technology options.
220 extern const char kNetworkTechnology1Xrtt[];
221 extern const char kNetworkTechnologyEvdo[];
222 extern const char kNetworkTechnologyGprs[];
223 extern const char kNetworkTechnologyEdge[];
224 extern const char kNetworkTechnologyUmts[];
225 extern const char kNetworkTechnologyHspa[];
226 extern const char kNetworkTechnologyHspaPlus[];
227 extern const char kNetworkTechnologyLte[];
228 extern const char kNetworkTechnologyLteAdvanced[];
229 extern const char kNetworkTechnologyGsm[];
230
231 // Flimflam roaming state options
232 extern const char kRoamingStateHome[];
233 extern const char kRoamingStateRoaming[];
234 extern const char kRoamingStateUnknown[];
235
236 // Flimflam activation state options
237 extern const char kActivationStateActivated[];
238 extern const char kActivationStateActivating[];
239 extern const char kActivationStateNotActivated[];
240 extern const char kActivationStatePartiallyActivated[];
241 extern const char kActivationStateUnknown[];
242
243 // FlimFlam technology family options
244 extern const char kTechnologyFamilyCdma[];
245 extern const char kTechnologyFamilyGsm[];
246
247 // Flimflam error options.
248 extern const char kErrorOutOfRange[];
249 extern const char kErrorPinMissing[];
250 extern const char kErrorDhcpFailed[];
251 extern const char kErrorConnectFailed[];
252 extern const char kErrorBadPassphrase[];
253 extern const char kErrorBadWepKey[];
254 extern const char kErrorActivationFailed[];
255 extern const char kErrorNeedEvdo[];
256 extern const char kErrorNeedHomeNetwork[];
257 extern const char kErrorOtaspFailed[];
258 extern const char kErrorAaaFailed[];
259 extern const char kErrorInternal[];
260 extern const char kErrorDnsLookupFailed[];
261 extern const char kErrorHttpGetFailed[];
262
263 // Flimflam error messages.
264 extern const char kErrorPassphraseRequiredMsg[];
265 extern const char kErrorIncorrectPinMsg[];
266 extern const char kErrorPinBlockedMsg[];
267 extern const char kErrorPinRequiredMsg[];
268
269 extern const char kUnknownString[];
270
271 extern const char* ConnectionTypeToString(ConnectionType type);
272 extern const char* SecurityToString(ConnectionSecurity security);
273 extern const char* ProviderTypeToString(ProviderType type);
274
275 } // namespace chromeos
276
277 #endif // CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698