OLD | NEW |
---|---|
(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" | |
stevenjb
2011/08/05 18:46:58
We should forward declare ConnectionType, etc, ins
Greg Spencer (Chromium)
2011/08/11 22:19:32
I would, but they are enums, so not forward-declar
stevenjb
2011/08/12 21:32:37
Duh. Of course.
| |
12 | |
13 namespace chromeos { | |
14 // Format of the Carrier ID. | |
15 extern const char kCarrierIdFormat[]; | |
16 | |
17 // Path of the default (shared) flimflam profile. | |
18 extern const char kSharedProfilePath[]; | |
19 | |
20 // D-Bus interface string constants, used in both the native parsing | |
21 // and network library code. | |
22 | |
23 // Flimflam manager properties. | |
24 extern const char kAvailableTechnologiesProperty[]; | |
25 extern const char kEnabledTechnologiesProperty[]; | |
26 extern const char kConnectedTechnologiesProperty[]; | |
27 extern const char kDefaultTechnologyProperty[]; | |
28 extern const char kOfflineModeProperty[]; | |
29 extern const char kActiveProfileProperty[]; | |
30 extern const char kProfilesProperty[]; | |
31 extern const char kServicesProperty[]; | |
32 extern const char kServiceWatchListProperty[]; | |
33 extern const char kDevicesProperty[]; | |
34 extern const char kPortalURLProperty[]; | |
35 extern const char kCheckPortalListProperty[]; | |
36 extern const char kArpGatewayProperty[]; | |
37 | |
38 // Flimflam service properties. | |
39 extern const char kSecurityProperty[]; | |
40 extern const char kPassphraseProperty[]; | |
41 extern const char kIdentityProperty[]; | |
42 extern const char kPassphraseRequiredProperty[]; | |
43 extern const char kSaveCredentialsProperty[]; | |
44 extern const char kSignalStrengthProperty[]; | |
45 extern const char kNameProperty[]; | |
46 extern const char kGuidProperty[]; | |
47 extern const char kStateProperty[]; | |
48 extern const char kTypeProperty[]; | |
49 extern const char kDeviceProperty[]; | |
50 extern const char kProfileProperty[]; | |
51 extern const char kTechnologyFamilyProperty[]; | |
52 extern const char kActivationStateProperty[]; | |
53 extern const char kNetworkTechnologyProperty[]; | |
54 extern const char kRoamingStateProperty[]; | |
55 extern const char kOperatorNameProperty[]; | |
56 extern const char kOperatorCodeProperty[]; | |
57 extern const char kServingOperatorProperty[]; | |
58 extern const char kPaymentURLProperty[]; | |
59 extern const char kUsageURLProperty[]; | |
60 extern const char kCellularApnProperty[]; | |
61 extern const char kCellularLastGoodApnProperty[]; | |
62 extern const char kCellularApnListProperty[]; | |
63 extern const char kWifiHexSsid[]; | |
64 extern const char kWifiFrequency[]; | |
65 extern const char kWifiHiddenSsid[]; | |
66 extern const char kWifiPhyMode[]; | |
67 extern const char kWifiAuthMode[]; | |
68 extern const char kFavoriteProperty[]; | |
69 extern const char kConnectableProperty[]; | |
70 extern const char kPriorityProperty[]; | |
71 extern const char kAutoConnectProperty[]; | |
72 extern const char kIsActiveProperty[]; | |
73 extern const char kModeProperty[]; | |
74 extern const char kErrorProperty[]; | |
75 extern const char kEntriesProperty[]; | |
76 extern const char kProviderProperty[]; | |
77 extern const char kHostProperty[]; | |
78 extern const char kProxyConfigProperty[]; | |
79 | |
80 // Flimflam property names for SIMLock status. | |
81 extern const char kSIMLockStatusProperty[]; | |
82 extern const char kSIMLockTypeProperty[]; | |
83 extern const char kSIMLockRetriesLeftProperty[]; | |
84 | |
85 // Flimflam property names for Cellular.FoundNetworks. | |
86 extern const char kLongNameProperty[]; | |
87 extern const char kStatusProperty[]; | |
88 extern const char kShortNameProperty[]; | |
89 extern const char kTechnologyProperty[]; | |
90 extern const char kNetworkIdProperty[]; | |
91 | |
92 // Flimflam SIMLock status types. | |
93 extern const char kSIMLockPin[]; | |
94 extern const char kSIMLockPuk[]; | |
95 | |
96 // APN info property names. | |
97 extern const char kApnProperty[]; | |
98 extern const char kApnNetworkIdProperty[]; | |
99 extern const char kApnUsernameProperty[]; | |
100 extern const char kApnPasswordProperty[]; | |
101 extern const char kApnNameProperty[]; | |
102 extern const char kApnLocalizedNameProperty[]; | |
103 extern const char kApnLanguageProperty[]; | |
104 | |
105 // Operator info property names. | |
106 extern const char kOperatorNameKey[]; | |
107 extern const char kOperatorCodeKey[]; | |
108 extern const char kOperatorCountryKey[]; | |
109 | |
110 // Flimflam device info property names. | |
111 extern const char kScanningProperty[]; | |
112 extern const char kPoweredProperty[]; | |
113 extern const char kNetworksProperty[]; | |
114 extern const char kCarrierProperty[]; | |
115 extern const char kCellularAllowRoamingProperty[]; | |
116 extern const char kHomeProviderProperty[]; | |
117 extern const char kMeidProperty[]; | |
118 extern const char kImeiProperty[]; | |
119 extern const char kImsiProperty[]; | |
120 extern const char kEsnProperty[]; | |
121 extern const char kMdnProperty[]; | |
122 extern const char kMinProperty[]; | |
123 extern const char kModelIDProperty[]; | |
124 extern const char kManufacturerProperty[]; | |
125 extern const char kFirmwareRevisionProperty[]; | |
126 extern const char kHardwareRevisionProperty[]; | |
127 extern const char kPRLVersionProperty[]; // (INT16) | |
128 extern const char kSelectedNetworkProperty[]; | |
129 extern const char kSupportNetworkScanProperty[]; | |
130 extern const char kFoundNetworksProperty[]; | |
131 | |
132 // Flimflam ip config property names. | |
133 extern const char kAddressProperty[]; | |
134 extern const char kPrefixlenProperty[]; | |
135 extern const char kGatewayProperty[]; | |
136 extern const char kNameServersProperty[]; | |
137 | |
138 // Flimflam type options. | |
139 extern const char kTypeEthernet[]; | |
140 extern const char kTypeWifi[]; | |
141 extern const char kTypeWimax[]; | |
142 extern const char kTypeBluetooth[]; | |
143 extern const char kTypeCellular[]; | |
144 extern const char kTypeVPN[]; | |
145 | |
146 // Flimflam mode options. | |
147 extern const char kModeManaged[]; | |
148 extern const char kModeAdhoc[]; | |
149 | |
150 // Flimflam security options. | |
151 extern const char kSecurityWpa[]; | |
152 extern const char kSecurityWep[]; | |
153 extern const char kSecurityRsn[]; | |
154 extern const char kSecurity8021x[]; | |
155 extern const char kSecurityPsk[]; | |
156 extern const char kSecurityNone[]; | |
157 | |
158 // Flimflam L2TPIPsec property names. | |
159 extern const char kL2TPIPSecCACertNSSProperty[]; | |
160 extern const char kL2TPIPSecClientCertIDProperty[]; | |
161 extern const char kL2TPIPSecClientCertSlotProp[]; | |
162 extern const char kL2TPIPSecPINProperty[]; | |
163 extern const char kL2TPIPSecPSKProperty[]; | |
164 extern const char kL2TPIPSecUserProperty[]; | |
165 extern const char kL2TPIPSecPasswordProperty[]; | |
166 | |
167 // Flimflam EAP property names. | |
168 // See src/third_party/flimflam/doc/service-api.txt. | |
169 extern const char kEapIdentityProperty[]; | |
170 extern const char kEapMethodProperty[]; | |
171 extern const char kEapPhase2AuthProperty[]; | |
172 extern const char kEapAnonymousIdentityProperty[]; | |
173 extern const char kEapClientCertProperty[]; // path | |
174 extern const char kEapCertIDProperty[]; // PKCS#11 ID | |
175 extern const char kEapClientCertNssProperty[]; // NSS nickname | |
176 extern const char kEapPrivateKeyProperty[]; | |
177 extern const char kEapPrivateKeyPasswordProperty[]; | |
178 extern const char kEapKeyIDProperty[]; | |
179 extern const char kEapCaCertProperty[]; // server CA cert path | |
180 extern const char kEapCaCertIDProperty[]; // server CA PKCS#11 ID | |
181 extern const char kEapCaCertNssProperty[]; // server CA NSS nickname | |
182 extern const char kEapUseSystemCAsProperty[]; | |
183 extern const char kEapPinProperty[]; | |
184 extern const char kEapPasswordProperty[]; | |
185 extern const char kEapKeyMgmtProperty[]; | |
186 | |
187 // Flimflam EAP method options. | |
188 extern const char kEapMethodPEAP[]; | |
189 extern const char kEapMethodTLS[]; | |
190 extern const char kEapMethodTTLS[]; | |
191 extern const char kEapMethodLEAP[]; | |
192 | |
193 // Flimflam EAP phase 2 auth options. | |
194 extern const char kEapPhase2AuthPEAPMD5[]; | |
195 extern const char kEapPhase2AuthPEAPMSCHAPV2[]; | |
196 extern const char kEapPhase2AuthTTLSMD5[]; | |
197 extern const char kEapPhase2AuthTTLSMSCHAPV2[]; | |
198 extern const char kEapPhase2AuthTTLSMSCHAP[]; | |
199 extern const char kEapPhase2AuthTTLSPAP[]; | |
200 extern const char kEapPhase2AuthTTLSCHAP[]; | |
201 | |
202 // Flimflam VPN provider types. | |
203 extern const char kProviderL2tpIpsec[]; | |
204 extern const char kProviderOpenVpn[]; | |
205 | |
206 // Flimflam state options. | |
207 extern const char kStateIdle[]; | |
208 extern const char kStateCarrier[]; | |
209 extern const char kStateAssociation[]; | |
210 extern const char kStateConfiguration[]; | |
211 extern const char kStateReady[]; | |
212 extern const char kStatePortal[]; | |
213 extern const char kStateOnline[]; | |
214 extern const char kStateDisconnect[]; | |
215 extern const char kStateFailure[]; | |
216 extern const char kStateActivationFailure[]; | |
217 | |
218 // Flimflam network technology options. | |
219 extern const char kNetworkTechnology1Xrtt[]; | |
220 extern const char kNetworkTechnologyEvdo[]; | |
221 extern const char kNetworkTechnologyGprs[]; | |
222 extern const char kNetworkTechnologyEdge[]; | |
223 extern const char kNetworkTechnologyUmts[]; | |
224 extern const char kNetworkTechnologyHspa[]; | |
225 extern const char kNetworkTechnologyHspaPlus[]; | |
226 extern const char kNetworkTechnologyLte[]; | |
227 extern const char kNetworkTechnologyLteAdvanced[]; | |
228 extern const char kNetworkTechnologyGsm[]; | |
229 | |
230 // Flimflam roaming state options | |
231 extern const char kRoamingStateHome[]; | |
232 extern const char kRoamingStateRoaming[]; | |
233 extern const char kRoamingStateUnknown[]; | |
234 | |
235 // Flimflam activation state options | |
236 extern const char kActivationStateActivated[]; | |
237 extern const char kActivationStateActivating[]; | |
238 extern const char kActivationStateNotActivated[]; | |
239 extern const char kActivationStatePartiallyActivated[]; | |
240 extern const char kActivationStateUnknown[]; | |
241 | |
242 // FlimFlam technology family options | |
243 extern const char kTechnologyFamilyCdma[]; | |
244 extern const char kTechnologyFamilyGsm[]; | |
245 | |
246 // Flimflam error options. | |
247 extern const char kErrorOutOfRange[]; | |
248 extern const char kErrorPinMissing[]; | |
249 extern const char kErrorDhcpFailed[]; | |
250 extern const char kErrorConnectFailed[]; | |
251 extern const char kErrorBadPassphrase[]; | |
252 extern const char kErrorBadWEPKey[]; | |
253 extern const char kErrorActivationFailed[]; | |
254 extern const char kErrorNeedEvdo[]; | |
255 extern const char kErrorNeedHomeNetwork[]; | |
256 extern const char kErrorOtaspFailed[]; | |
257 extern const char kErrorAaaFailed[]; | |
258 extern const char kErrorInternal[]; | |
259 extern const char kErrorDNSLookupFailed[]; | |
260 extern const char kErrorHTTPGetFailed[]; | |
261 | |
262 // Flimflam error messages. | |
263 extern const char kErrorPassphraseRequiredMsg[]; | |
264 extern const char kErrorIncorrectPinMsg[]; | |
265 extern const char kErrorPinBlockedMsg[]; | |
266 extern const char kErrorPinRequiredMsg[]; | |
267 | |
268 extern const char kUnknownString[]; | |
269 | |
270 extern const char* ConnectionTypeToString(ConnectionType type); | |
271 extern const char* SecurityToString(ConnectionSecurity security); | |
272 extern const char* ProviderTypeToString(ProviderType type); | |
273 | |
274 } // namespace chromeos | |
275 | |
276 #endif // CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_CONSTANTS_H_ | |
OLD | NEW |