Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / cros_system_api / dbus / service_constants.h
1 // Copyright (c) 2012 The Chromium OS 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 #ifndef DBUS_SERVICE_CONSTANTS_H_
6 #define DBUS_SERVICE_CONSTANTS_H_
7
8 #include <stdint.h>  // for uint32_t
9
10 namespace dbus {
11 const char kDBusServiceName[] = "org.freedesktop.DBus";
12 const char kDBusServicePath[] = "/org/freedesktop/DBus";
13
14 // Object Manager interface
15 const char kDBusObjectManagerInterface[] = "org.freedesktop.DBus.ObjectManager";
16 // Methods
17 const char kDBusObjectManagerGetManagedObjects[] = "GetManagedObjects";
18 // Signals
19 const char kDBusObjectManagerInterfacesAddedSignal[] = "InterfacesAdded";
20 const char kDBusObjectManagerInterfacesRemovedSignal[] = "InterfacesRemoved";
21
22 // Properties interface
23 const char kDBusPropertiesInterface[] = "org.freedesktop.DBus.Properties";
24 // Methods
25 const char kDBusPropertiesGet[] = "Get";
26 const char kDBusPropertiesSet[] = "Set";
27 const char kDBusPropertiesGetAll[] = "GetAll";
28 // Signals
29 const char kDBusPropertiesChangedSignal[] = "PropertiesChanged";
30 }  // namespace dbus
31
32
33 namespace cryptohome {
34 const char kCryptohomeInterface[] = "org.chromium.CryptohomeInterface";
35 const char kCryptohomeServicePath[] = "/org/chromium/Cryptohome";
36 const char kCryptohomeServiceName[] = "org.chromium.Cryptohome";
37 // Methods
38 const char kCryptohomeAsyncAddKey[] = "AsyncAddKey";
39 const char kCryptohomeCheckKey[] = "CheckKey";
40 const char kCryptohomeMigrateKey[] = "MigrateKey";
41 const char kCryptohomeRemove[] = "Remove";
42 const char kCryptohomeGetSystemSalt[] = "GetSystemSalt";
43 const char kCryptohomeGetSanitizedUsername[] = "GetSanitizedUsername";
44 const char kCryptohomeIsMounted[] = "IsMounted";
45 const char kCryptohomeMount[] = "Mount";
46 const char kCryptohomeMountGuest[] = "MountGuest";
47 const char kCryptohomeMountPublic[] = "MountPublic";
48 const char kCryptohomeUnmount[] = "Unmount";
49 const char kCryptohomeTpmIsReady[] = "TpmIsReady";
50 const char kCryptohomeTpmIsEnabled[] = "TpmIsEnabled";
51 const char kCryptohomeTpmIsOwned[] = "TpmIsOwned";
52 const char kCryptohomeTpmIsBeingOwned[] = "TpmIsBeingOwned";
53 const char kCryptohomeTpmGetPassword[] = "TpmGetPassword";
54 const char kCryptohomeTpmCanAttemptOwnership[] = "TpmCanAttemptOwnership";
55 const char kCryptohomeTpmClearStoredPassword[] = "TpmClearStoredPassword";
56 const char kCryptohomePkcs11GetTpmTokenInfo[] = "Pkcs11GetTpmTokenInfo";
57 const char kCryptohomePkcs11GetTpmTokenInfoForUser[] =
58     "Pkcs11GetTpmTokenInfoForUser";
59 const char kCryptohomePkcs11IsTpmTokenReady[] = "Pkcs11IsTpmTokenReady";
60 const char kCryptohomePkcs11IsTpmTokenReadyForUser[] =
61     "Pkcs11IsTpmTokenReadyForUser";
62 const char kCryptohomeAsyncCheckKey[] = "AsyncCheckKey";
63 const char kCryptohomeAsyncMigrateKey[] = "AsyncMigrateKey";
64 const char kCryptohomeAsyncMount[] = "AsyncMount";
65 const char kCryptohomeAsyncMountGuest[] = "AsyncMountGuest";
66 const char kCryptohomeAsyncMountPublic[] = "AsyncMountPublic";
67 const char kCryptohomeAsyncRemove[] = "AsyncRemove";
68 const char kCryptohomeGetStatusString[] = "GetStatusString";
69 const char kCryptohomeRemoveTrackedSubdirectories[] =
70     "RemoveTrackedSubdirectories";
71 const char kCryptohomeAsyncRemoveTrackedSubdirectories[] =
72     "AsyncRemoveTrackedSubdirectories";
73 const char kCryptohomeDoAutomaticFreeDiskSpaceControl[] =
74     "DoAutomaticFreeDiskSpaceControl";
75 const char kCryptohomeAsyncDoAutomaticFreeDiskSpaceControl[] =
76     "AsyncDoAutomaticFreeDiskSpaceControl";
77 const char kCryptohomeAsyncDoesUsersExist[] = "AsyncDoesUsersExist";
78 const char kCryptohomeInstallAttributesGet[] = "InstallAttributesGet";
79 const char kCryptohomeInstallAttributesSet[] = "InstallAttributesSet";
80 const char kCryptohomeInstallAttributesCount[] = "InstallAttributesCount";
81 const char kCryptohomeInstallAttributesFinalize[] =
82     "InstallAttributesFinalize";
83 const char kCryptohomeInstallAttributesIsReady[] = "InstallAttributesIsReady";
84 const char kCryptohomeInstallAttributesIsSecure[] =
85     "InstallAttributesIsSecure";
86 const char kCryptohomeInstallAttributesIsInvalid[] =
87     "InstallAttributesIsInvalid";
88 const char kCryptohomeInstallAttributesIsFirstInstall[] =
89     "InstallAttributesIsFirstInstall";
90 const char kCryptohomeStoreEnrollmentState[] =
91     "StoreEnrollmentState";
92 const char kCryptohomeLoadEnrollmentState[] =
93     "LoadEnrollmentState";
94 const char kCryptohomeTpmIsAttestationPrepared[] = "TpmIsAttestationPrepared";
95 const char kCryptohomeTpmIsAttestationEnrolled[] = "TpmIsAttestationEnrolled";
96 const char kCryptohomeAsyncTpmAttestationCreateEnrollRequest[] =
97     "AsyncTpmAttestationCreateEnrollRequest";
98 const char kCryptohomeAsyncTpmAttestationEnroll[] = "AsyncTpmAttestationEnroll";
99 const char kCryptohomeAsyncTpmAttestationCreateCertRequest[] =
100     "AsyncTpmAttestationCreateCertRequest";
101 const char kCryptohomeAsyncTpmAttestationCreateCertRequestByProfile[] =
102     "AsyncTpmAttestationCreateCertRequestByProfile";
103 const char kCryptohomeAsyncTpmAttestationFinishCertRequest[] =
104     "AsyncTpmAttestationFinishCertRequest";
105 const char kCryptohomeTpmAttestationDoesKeyExist[] =
106     "TpmAttestationDoesKeyExist";
107 const char kCryptohomeTpmAttestationGetCertificate[] =
108     "TpmAttestationGetCertificate";
109 const char kCryptohomeTpmAttestationGetPublicKey[] =
110     "TpmAttestationGetPublicKey";
111 const char kCryptohomeTpmAttestationRegisterKey[] = "TpmAttestationRegisterKey";
112 const char kCryptohomeTpmAttestationSignEnterpriseChallenge[] =
113     "TpmAttestationSignEnterpriseChallenge";
114 const char kCryptohomeTpmAttestationSignSimpleChallenge[] =
115     "TpmAttestationSignSimpleChallenge";
116 const char kCryptohomeTpmAttestationGetKeyPayload[] =
117     "TpmAttestationGetKeyPayload";
118 const char kCryptohomeTpmAttestationSetKeyPayload[] =
119     "TpmAttestationSetKeyPayload";
120 const char kCryptohomeTpmAttestationDeleteKeys[] =
121     "TpmAttestationDeleteKeys";
122 // Signals
123 const char kSignalAsyncCallStatus[] = "AsyncCallStatus";
124 const char kSignalAsyncCallStatusWithData[] = "AsyncCallStatusWithData";
125 const char kSignalTpmInitStatus[] = "TpmInitStatus";
126 const char kSignalCleanupUsersRemoved[] = "CleanupUsersRemoved";
127 // Error code
128 enum MountError {
129   MOUNT_ERROR_NONE = 0,
130   MOUNT_ERROR_FATAL = 1 << 0,
131   MOUNT_ERROR_KEY_FAILURE = 1 << 1,
132   MOUNT_ERROR_MOUNT_POINT_BUSY = 1 << 2,
133   MOUNT_ERROR_TPM_COMM_ERROR = 1 << 3,
134   MOUNT_ERROR_TPM_DEFEND_LOCK = 1 << 4,
135   MOUNT_ERROR_USER_DOES_NOT_EXIST = 1 << 5,
136   MOUNT_ERROR_TPM_NEEDS_REBOOT = 1 << 6,
137   MOUNT_ERROR_RECREATED = 1 << 31,
138 };
139 }  // namespace cryptohome
140
141 namespace imageburn {
142 const char kImageBurnServiceName[] = "org.chromium.ImageBurner";
143 const char kImageBurnServicePath[] = "/org/chromium/ImageBurner";
144 const char kImageBurnServiceInterface[] = "org.chromium.ImageBurnerInterface";
145 // Methods
146 const char kBurnImage[] = "BurnImage";
147 // Signals
148 const char kSignalBurnFinishedName[] = "burn_finished";
149 const char kSignalBurnUpdateName[] = "burn_progress_update";
150 }  // namespace imageburn
151
152 namespace login_manager {
153 const char kSessionManagerInterface[] = "org.chromium.SessionManagerInterface";
154 const char kSessionManagerServicePath[] = "/org/chromium/SessionManager";
155 const char kSessionManagerServiceName[] = "org.chromium.SessionManager";
156 // Methods
157 const char kSessionManagerEmitLoginPromptReady[] = "EmitLoginPromptReady";
158 const char kSessionManagerEmitLoginPromptVisible[] = "EmitLoginPromptVisible";
159 const char kSessionManagerStartSession[] = "StartSession";
160 const char kSessionManagerStopSession[] = "StopSession";
161 const char kSessionManagerRestartJob[] = "RestartJob";
162 const char kSessionManagerRestartJobWithAuth[] = "RestartJobWithAuth";
163 const char kSessionManagerRestartEntd[] = "RestartEntd";
164 const char kSessionManagerSetOwnerKey[] = "SetOwnerKey";
165 const char kSessionManagerUnwhitelist[] = "Unwhitelist";
166 const char kSessionManagerCheckWhitelist[] = "CheckWhitelist";
167 const char kSessionManagerEnumerateWhitelisted[] = "EnumerateWhitelisted";
168 const char kSessionManagerWhitelist[] = "Whitelist";
169 const char kSessionManagerStoreProperty[] = "StoreProperty";
170 const char kSessionManagerRetrieveProperty[] = "RetrieveProperty";
171 const char kSessionManagerStorePolicy[] = "StorePolicy";
172 const char kSessionManagerRetrievePolicy[] = "RetrievePolicy";
173 const char kSessionManagerStorePolicyForUser[] = "StorePolicyForUser";
174 const char kSessionManagerRetrievePolicyForUser[] = "RetrievePolicyForUser";
175 const char kSessionManagerStoreDeviceLocalAccountPolicy[] =
176     "StoreDeviceLocalAccountPolicy";
177 const char kSessionManagerRetrieveDeviceLocalAccountPolicy[] =
178     "RetrieveDeviceLocalAccountPolicy";
179 const char kSessionManagerRetrieveSessionState[] = "RetrieveSessionState";
180 const char kSessionManagerRetrieveActiveSessions[] = "RetrieveActiveSessions";
181 const char kSessionManagerStartSessionService[] = "StartSessionService";
182 const char kSessionManagerStopSessionService[] = "StopSessionService";
183 const char kSessionManagerStartDeviceWipe[] = "StartDeviceWipe";
184 const char kSessionManagerLockScreen[] = "LockScreen";
185 const char kSessionManagerHandleLockScreenShown[] = "HandleLockScreenShown";
186 const char kSessionManagerHandleLockScreenDismissed[] =
187     "HandleLockScreenDismissed";
188 const char kSessionManagerHandleLivenessConfirmed[] = "HandleLivenessConfirmed";
189 const char kSessionManagerSetFlagsForUser[] = "SetFlagsForUser";
190 // Signals
191 const char kLoginPromptVisibleSignal[] = "LoginPromptVisible";
192 const char kSessionStateChangedSignal[] = "SessionStateChanged";
193 // ScreenLock signals.
194 const char kScreenIsLockedSignal[] = "ScreenIsLocked";
195 const char kScreenIsUnlockedSignal[] = "ScreenIsUnlocked";
196 // Ownership API signals.
197 const char kOwnerKeySetSignal[] = "SetOwnerKeyComplete";
198 const char kPropertyChangeCompleteSignal[] = "PropertyChangeComplete";
199
200 // DEPRECATED.
201 const char kSessionManagerSessionStateChanged[] = "SessionStateChanged";
202 }  // namespace login_manager
203
204 namespace speech_synthesis {
205 const char kSpeechSynthesizerInterface[] =
206     "org.chromium.SpeechSynthesizerInterface";
207 const char kSpeechSynthesizerServicePath[] = "/org/chromium/SpeechSynthesizer";
208 const char kSpeechSynthesizerServiceName[] = "org.chromium.SpeechSynthesizer";
209 // Methods
210 const char kSpeak[] = "Speak";
211 const char kStop[] = "Stop";
212 const char kIsSpeaking[] = "IsSpeaking";
213 const char kShutdown[] = "Shutdown";
214 }  // namespace speech_synthesis
215
216 namespace chromium {
217 const char kChromiumInterface[] = "org.chromium.Chromium";
218 // ScreenLock signals.
219 const char kLockScreenSignal[] = "LockScreen";
220 // Text-to-speech service signals.
221 const char kTTSReadySignal[] = "TTSReady";
222 const char kTTSFailedSignal[] = "TTSFailed";
223
224 // DEPRECATED in favor of constants in appropriate (login_manager) namespace.
225 // Ownership API signals.
226 const char kOwnerKeySetSignal[] = "SetOwnerKeyComplete";
227 const char kPropertyChangeCompleteSignal[] = "PropertyChangeComplete";
228 // Liveness detection signals.
229 const char kLivenessRequestedSignal[] = "LivenessRequested";
230 }  // namespace chromium
231
232 namespace power_manager {
233 // powerd
234 const char kPowerManagerInterface[] = "org.chromium.PowerManager";
235 const char kPowerManagerServicePath[] = "/org/chromium/PowerManager";
236 const char kPowerManagerServiceName[] = "org.chromium.PowerManager";
237 // Methods exposed by powerd.
238 const char kDecreaseScreenBrightness[] = "DecreaseScreenBrightness";
239 const char kIncreaseScreenBrightness[] = "IncreaseScreenBrightness";
240 const char kGetScreenBrightnessPercent[] = "GetScreenBrightnessPercent";
241 const char kSetScreenBrightnessPercent[] = "SetScreenBrightnessPercent";
242 const char kDecreaseKeyboardBrightness[] = "DecreaseKeyboardBrightness";
243 const char kIncreaseKeyboardBrightness[] = "IncreaseKeyboardBrightness";
244 const char kRequestRestartMethod[] = "RequestRestart";
245 const char kRequestShutdownMethod[] = "RequestShutdown";
246 const char kRequestSuspendMethod[] = "RequestSuspend";
247 const char kGetPowerSupplyPropertiesMethod[] = "GetPowerSupplyProperties";
248 const char kHandleUserActivityMethod[] = "HandleUserActivity";
249 const char kHandleVideoActivityMethod[] = "HandleVideoActivity";
250 const char kSetIsProjectingMethod[] = "SetIsProjecting";
251 const char kSetPolicyMethod[] = "SetPolicy";
252 const char kRegisterSuspendDelayMethod[] = "RegisterSuspendDelay";
253 const char kUnregisterSuspendDelayMethod[] = "UnregisterSuspendDelay";
254 const char kHandleSuspendReadinessMethod[] = "HandleSuspendReadiness";
255 const char kHandlePowerButtonAcknowledgmentMethod[] =
256     "HandlePowerButtonAcknowledgment";
257 // Signals emitted by powerd.
258 const char kCleanShutdown[] = "CleanShutdown";
259 const char kBrightnessChangedSignal[] = "BrightnessChanged";
260 const char kKeyboardBrightnessChangedSignal[] = "KeyboardBrightnessChanged";
261 const char kPeripheralBatteryStatusSignal[] = "PeripheralBatteryStatus";
262 const char kPowerStateChangedSignal[] = "PowerStateChanged";
263 const char kPowerSupplyPollSignal[] = "PowerSupplyPoll";
264 const char kSoftwareScreenDimmingRequestedSignal[] =
265     "SoftwareScreenDimmingRequested";
266 const char kSuspendImminentSignal[] = "SuspendImminent";
267 const char kInputEventSignal[] = "InputEvent";
268 const char kSuspendStateChangedSignal[] = "SuspendStateChanged";
269 const char kIdleActionImminentSignal[] = "IdleActionImminent";
270 const char kIdleActionDeferredSignal[] = "IdleActionDeferred";
271 // Values
272 const int  kBrightnessTransitionGradual = 1;
273 const int  kBrightnessTransitionInstant = 2;
274 const int  kSoftwareScreenDimmingNone = 1;
275 const int  kSoftwareScreenDimmingIdle = 2;
276 enum UserActivityType {
277   USER_ACTIVITY_OTHER = 0,
278   USER_ACTIVITY_BRIGHTNESS_UP_KEY_PRESS = 1,
279   USER_ACTIVITY_BRIGHTNESS_DOWN_KEY_PRESS = 2,
280   USER_ACTIVITY_VOLUME_UP_KEY_PRESS = 3,
281   USER_ACTIVITY_VOLUME_DOWN_KEY_PRESS = 4,
282   USER_ACTIVITY_VOLUME_MUTE_KEY_PRESS = 5,
283 };
284 }  // namespace power_manager
285
286 namespace chromeos {
287 const char kLibCrosServiceName[] = "org.chromium.LibCrosService";
288 const char kLibCrosServicePath[] = "/org/chromium/LibCrosService";
289 const char kLibCrosServiceInterface[] = "org.chromium.LibCrosServiceInterface";
290 // Methods
291 const char kResolveNetworkProxy[] = "ResolveNetworkProxy";
292 const char kCheckLiveness[] = "CheckLiveness";
293 const char kLockScreen[] = "LockScreen";
294 const char kSetDisplayPower[] = "SetDisplayPower";
295 const char kSetDisplaySoftwareDimming[] = "SetDisplaySoftwareDimming";
296 // Values
297 enum DisplayPowerState {
298   DISPLAY_POWER_ALL_ON = 0,
299   DISPLAY_POWER_ALL_OFF = 1,
300   DISPLAY_POWER_INTERNAL_OFF_EXTERNAL_ON = 2,
301   DISPLAY_POWER_INTERNAL_ON_EXTERNAL_OFF = 3,
302 };
303 }  // namespace chromeos
304
305 // TODO(benchan): Reorganize shill constants and remove deprecated ones.
306 namespace shill {
307 // Flimflam D-Bus service identifiers.
308 const char kFlimflamManagerInterface[] = "org.chromium.flimflam.Manager";
309 const char kFlimflamServiceName[] = "org.chromium.flimflam";
310 const char kFlimflamServicePath[] = "/";  // crosbug.com/20135
311 const char kFlimflamServiceInterface[] = "org.chromium.flimflam.Service";
312 const char kFlimflamIPConfigInterface[] = "org.chromium.flimflam.IPConfig";
313 const char kFlimflamDeviceInterface[] = "org.chromium.flimflam.Device";
314 const char kFlimflamProfileInterface[] = "org.chromium.flimflam.Profile";
315 const char kFlimflamNetworkInterface[] = "org.chromium.flimflam.Network";
316
317 // Flimflam function names.
318 const char kGetPropertiesFunction[] = "GetProperties";
319 const char kSetPropertyFunction[] = "SetProperty";
320 const char kClearPropertyFunction[] = "ClearProperty";
321 const char kConnectFunction[] = "Connect";
322 const char kDisconnectFunction[] = "Disconnect";
323 const char kRequestScanFunction[] = "RequestScan";
324 const char kGetServiceFunction[] = "GetService";
325 const char kGetWifiServiceFunction[] = "GetWifiService";
326 const char kGetVPNServiceFunction[] = "GetVPNService";
327 const char kRemoveServiceFunction[] = "Remove";
328 const char kEnableTechnologyFunction[] = "EnableTechnology";
329 const char kDisableTechnologyFunction[] = "DisableTechnology";
330 const char kAddIPConfigFunction[] = "AddIPConfig";
331 const char kRemoveConfigFunction[] = "Remove";
332 const char kGetEntryFunction[] = "GetEntry";
333 const char kDeleteEntryFunction[] = "DeleteEntry";
334 const char kActivateCellularModemFunction[] = "ActivateCellularModem";
335 const char kRequirePinFunction[] = "RequirePin";
336 const char kEnterPinFunction[] = "EnterPin";
337 const char kUnblockPinFunction[] = "UnblockPin";
338 const char kChangePinFunction[] = "ChangePin";
339 const char kProposeScanFunction[] = "ProposeScan";
340 const char kRegisterFunction[] = "Register";
341 const char kConfigureServiceFunction[] = "ConfigureService";
342 const char kConfigureWifiServiceFunction[] = "ConfigureWifiService";
343
344 // Flimflam Service property names.
345 const char kSecurityProperty[] = "Security";
346 const char kPriorityProperty[] = "Priority";
347 const char kPassphraseProperty[] = "Passphrase";
348 const char kIdentityProperty[] = "Identity";
349 const char kAuthorityPathProperty[] = "AuthorityPath";
350 const char kPassphraseRequiredProperty[] = "PassphraseRequired";
351 const char kSaveCredentialsProperty[] = "SaveCredentials";
352 const char kSignalStrengthProperty[] = "Strength";
353 const char kNameProperty[] = "Name";
354 const char kGuidProperty[] = "GUID";
355 const char kStateProperty[] = "State";
356 const char kTypeProperty[] = "Type";
357 const char kDeviceProperty[] = "Device";
358 const char kProfileProperty[] = "Profile";
359 const char kConnectivityStateProperty[] = "ConnectivityState";
360 const char kConnectableProperty[] = "Connectable";
361 const char kAutoConnectProperty[] = "AutoConnect";
362 const char kIsActiveProperty[] = "IsActive";
363 const char kModeProperty[] = "Mode";
364 const char kErrorProperty[] = "Error";
365 const char kProviderProperty[] = "Provider";
366 const char kHostProperty[] = "Host";
367 const char kDomainProperty[] = "Domain";
368 const char kProxyConfigProperty[] = "ProxyConfig";
369 const char kCheckPortalProperty[] = "CheckPortal";
370 const char kSSIDProperty[] = "SSID";
371 const char kConnectedProperty[] = "Connected";
372 const char kUIDataProperty[] = "UIData";
373
374 // Flimflam provider property names.
375 const char kProviderHostProperty[] = "Provider.Host";
376 const char kProviderNameProperty[] = "Provider.Name";
377 const char kProviderTypeProperty[] = "Provider.Type";
378
379 // Flimflam Wifi Service property names.
380 const char kWifiBSsid[] = "WiFi.BSSID";
381 const char kWifiHexSsid[] = "WiFi.HexSSID";
382 const char kWifiFrequency[] = "WiFi.Frequency";
383 const char kWifiHiddenSsid[] = "WiFi.HiddenSSID";
384 const char kWifiPhyMode[] = "WiFi.PhyMode";
385 const char kWifiAuthMode[] = "WiFi.AuthMode";
386 const char kWifiChannelProperty[] = "WiFi.Channel";
387
388 // Flimflam EAP property names.
389 const char kEapIdentityProperty[] = "EAP.Identity";
390 const char kEapMethodProperty[] = "EAP.EAP";
391 const char kEapPhase2AuthProperty[] = "EAP.InnerEAP";
392 const char kEapAnonymousIdentityProperty[] = "EAP.AnonymousIdentity";
393 const char kEapClientCertProperty[] = "EAP.ClientCert";
394 const char kEapCertIdProperty[] = "EAP.CertID";
395 const char kEapClientCertNssProperty[] = "EAP.ClientCertNSS";
396 const char kEapPrivateKeyProperty[] = "EAP.PrivateKey";
397 const char kEapPrivateKeyPasswordProperty[] = "EAP.PrivateKeyPassword";
398 const char kEapKeyIdProperty[] = "EAP.KeyID";
399 const char kEapCaCertProperty[] = "EAP.CACert";
400 const char kEapCaCertIdProperty[] = "EAP.CACertID";
401 const char kEapCaCertNssProperty[] = "EAP.CACertNSS";
402 const char kEapUseSystemCasProperty[] = "EAP.UseSystemCAs";
403 const char kEapPinProperty[] = "EAP.PIN";
404 const char kEapPasswordProperty[] = "EAP.Password";
405 const char kEapKeyMgmtProperty[] = "EAP.KeyMgmt";
406 // Deprecated (duplicates)
407 const char kEAPEAPProperty[] = "EAP.EAP";
408 const char kEAPClientCertProperty[] = "EAP.ClientCert";
409 const char kEAPCertIDProperty[] = "EAP.CertID";
410 const char kEAPKeyIDProperty[] = "EAP.KeyID";
411 const char kEapCaCertIDProperty[] = "EAP.CACertID";
412 const char kEapUseSystemCAsProperty[] = "EAP.UseSystemCAs";
413 const char kEAPPINProperty[] = "EAP.PIN";
414
415 // Flimflam Cellular Service property names.
416 const char kTechnologyFamilyProperty[] = "Cellular.Family";
417 const char kActivationStateProperty[] = "Cellular.ActivationState";
418 const char kNetworkTechnologyProperty[] = "Cellular.NetworkTechnology";
419 const char kRoamingStateProperty[] = "Cellular.RoamingState";
420 const char kOperatorNameProperty[] = "Cellular.OperatorName";
421 const char kOperatorCodeProperty[] = "Cellular.OperatorCode";
422 const char kServingOperatorProperty[] = "Cellular.ServingOperator";
423 // DEPRECATED
424 const char kPaymentURLProperty[] = "Cellular.OlpUrl";
425 const char kPaymentPortalProperty[] = "Cellular.Olp";
426 const char kUsageURLProperty[] = "Cellular.UsageUrl";
427 const char kCellularApnProperty[] = "Cellular.APN";
428 const char kCellularLastGoodApnProperty[] = "Cellular.LastGoodAPN";
429 const char kCellularApnListProperty[] = "Cellular.APNList";
430
431 // Flimflam Manager property names.
432 const char kProfilesProperty[] = "Profiles";
433 const char kServicesProperty[] = "Services";
434 const char kServiceWatchListProperty[] = "ServiceWatchList";
435 const char kAvailableTechnologiesProperty[] = "AvailableTechnologies";
436 const char kEnabledTechnologiesProperty[] = "EnabledTechnologies";
437 const char kConnectedTechnologiesProperty[] = "ConnectedTechnologies";
438 const char kDefaultTechnologyProperty[] = "DefaultTechnology";
439 const char kOfflineModeProperty[] = "OfflineMode";
440 const char kActiveProfileProperty[] = "ActiveProfile";
441 const char kDevicesProperty[] = "Devices";
442 const char kCheckPortalListProperty[] = "CheckPortalList";
443 const char kArpGatewayProperty[] = "ArpGateway";
444 const char kCountryProperty[] = "Country";
445 const char kPortalURLProperty[] = "PortalURL";
446 const char kConnectionStateProperty[] = "ConnectionState";
447
448 // Flimflam Profile property names.
449 const char kEntriesProperty[] = "Entries";
450
451 // Flimflam Device property names.
452 const char kScanningProperty[] = "Scanning";
453 const char kPoweredProperty[] = "Powered";
454 const char kNetworksProperty[] = "Networks";
455 const char kScanIntervalProperty[] = "ScanInterval";
456 const char kBgscanMethodProperty[] = "BgscanMethod";
457 const char kBgscanShortIntervalProperty[] = "BgscanShortInterval";
458 const char kRoamThresholdProperty[] = "RoamThreshold";
459 const char kDBusObjectProperty[] = "DBus.Object";
460 const char kDBusServiceProperty[] = "DBus.Service";
461 const char kBgscanSignalThresholdProperty[] = "BgscanSignalThreshold";
462 // The name of the network interface, ie. wlan0, eth0, etc.
463 const char kInterfaceProperty[] = "Interface";
464
465 // Flimflam Cellular Device property names.
466 const char kCarrierProperty[] = "Cellular.Carrier";
467 const char kCellularAllowRoamingProperty[] = "Cellular.AllowRoaming";
468 const char kHomeProviderProperty[] = "Cellular.HomeProvider";
469 const char kMeidProperty[] = "Cellular.MEID";
470 const char kImeiProperty[] = "Cellular.IMEI";
471 const char kIccidProperty[] = "Cellular.ICCID";
472 const char kImsiProperty[] = "Cellular.IMSI";
473 const char kEsnProperty[] = "Cellular.ESN";
474 const char kMdnProperty[] = "Cellular.MDN";
475 const char kMinProperty[] = "Cellular.MIN";
476 const char kModelIDProperty[] = "Cellular.ModelID";
477 const char kManufacturerProperty[] = "Cellular.Manufacturer";
478 const char kFirmwareRevisionProperty[] = "Cellular.FirmwareRevision";
479 const char kHardwareRevisionProperty[] = "Cellular.HardwareRevision";
480 const char kPRLVersionProperty[] = "Cellular.PRLVersion";
481 const char kSelectedNetworkProperty[] = "Cellular.SelectedNetwork";
482 const char kSupportNetworkScanProperty[] = "Cellular.SupportNetworkScan";
483 const char kFoundNetworksProperty[] = "Cellular.FoundNetworks";
484 const char kIPConfigsProperty[] = "IPConfigs";
485
486 // Flimflam state options.
487 const char kStateIdle[] = "idle";
488 const char kStateCarrier[] = "carrier";
489 const char kStateAssociation[] = "association";
490 const char kStateConfiguration[] = "configuration";
491 const char kStateReady[] = "ready";
492 const char kStatePortal[] = "portal";
493 const char kStateOffline[] = "offline";
494 const char kStateOnline[] = "online";
495 const char kStateDisconnect[] = "disconnect";
496 const char kStateFailure[] = "failure";
497 const char kStateActivationFailure[] = "activation-failure";
498
499 // Flimflam property names for SIMLock status.
500 const char kSIMLockStatusProperty[] = "Cellular.SIMLockStatus";
501 const char kSIMLockTypeProperty[] = "LockType";
502 const char kSIMLockRetriesLeftProperty[] = "RetriesLeft";
503 const char kSIMLockEnabledProperty[] = "LockEnabled";
504
505 // Flimflam property names for Cellular.FoundNetworks.
506 const char kLongNameProperty[] = "long_name";
507 const char kStatusProperty[] = "status";
508 const char kShortNameProperty[] = "short_name";
509 const char kTechnologyProperty[] = "technology";
510 const char kNetworkIdProperty[] = "network_id";
511
512 // Flimflam SIMLock status types.
513 const char kSIMLockPin[] = "sim-pin";
514 const char kSIMLockPuk[] = "sim-puk";
515
516 // APN info property names.
517 const char kApnProperty[] = "apn";
518 const char kApnNetworkIdProperty[] = "network_id";
519 const char kApnUsernameProperty[] = "username";
520 const char kApnPasswordProperty[] = "password";
521 const char kApnNameProperty[] = "name";
522 const char kApnLocalizedNameProperty[] = "localized_name";
523 const char kApnLanguageProperty[] = "language";
524
525 // Payment Portal property names.
526 const char kPaymentPortalURL[] = "url";
527 const char kPaymentPortalMethod[] = "method";
528 const char kPaymentPortalPostData[] = "postdata";
529
530 // Operator info property names.
531 const char kOperatorNameKey[] = "name";
532 const char kOperatorCodeKey[] = "code";
533 const char kOperatorCountryKey[] = "country";
534
535 // Flimflam network technology options.
536 const char kNetworkTechnology1Xrtt[] = "1xRTT";
537 const char kNetworkTechnologyEvdo[] = "EVDO";
538 const char kNetworkTechnologyGsm[] = "GSM";
539 const char kNetworkTechnologyGprs[] = "GPRS";
540 const char kNetworkTechnologyEdge[] = "EDGE";
541 const char kNetworkTechnologyUmts[] = "UMTS";
542 const char kNetworkTechnologyHspa[] = "HSPA";
543 const char kNetworkTechnologyHspaPlus[] = "HSPA+";
544 const char kNetworkTechnologyLte[] = "LTE";
545 const char kNetworkTechnologyLteAdvanced[] = "LTE Advanced";
546
547 // Flimflam roaming state options
548 const char kRoamingStateHome[] = "home";
549 const char kRoamingStateRoaming[] = "roaming";
550 const char kRoamingStateUnknown[] = "unknown";
551
552 // Flimflam activation state options
553 const char kActivationStateActivated[] = "activated";
554 const char kActivationStateActivating[] = "activating";
555 const char kActivationStateNotActivated[] = "not-activated";
556 const char kActivationStatePartiallyActivated[] = "partially-activated";
557 const char kActivationStateUnknown[] = "unknown";
558
559 // Flimflam EAP method options.
560 const char kEapMethodPEAP[] = "PEAP";
561 const char kEapMethodTLS[] = "TLS";
562 const char kEapMethodTTLS[] = "TTLS";
563 const char kEapMethodLEAP[] = "LEAP";
564
565 // Flimflam EAP phase 2 auth options.
566 const char kEapPhase2AuthPEAPMD5[] = "auth=MD5";
567 const char kEapPhase2AuthPEAPMSCHAPV2[] = "auth=MSCHAPV2";
568 const char kEapPhase2AuthTTLSMD5[] = "autheap=MD5";  // crosbug/26822
569 const char kEapPhase2AuthTTLSEAPMD5[] = "autheap=MD5";
570 const char kEapPhase2AuthTTLSEAPMSCHAPV2[] = "autheap=MSCHAPV2";
571 const char kEapPhase2AuthTTLSMSCHAPV2[] = "auth=MSCHAPV2";
572 const char kEapPhase2AuthTTLSMSCHAP[] = "auth=MSCHAP";
573 const char kEapPhase2AuthTTLSPAP[] = "auth=PAP";
574 const char kEapPhase2AuthTTLSCHAP[] = "auth=CHAP";
575
576 // Flimflam VPN provider types.
577 const char kProviderL2tpIpsec[] = "l2tpipsec";
578 const char kProviderOpenVpn[] = "openvpn";
579
580 // Flimflam VPN service properties
581 const char kVPNDomainProperty[] = "VPN.Domain";
582
583 // Flimflam monitored properties
584 const char kMonitorPropertyChanged[] = "PropertyChanged";
585
586 // Flimflam type options.
587 const char kTypeEthernet[] = "ethernet";
588 const char kTypeWifi[] = "wifi";
589 const char kTypeWimax[] = "wimax";
590 const char kTypeBluetooth[] = "bluetooth";
591 const char kTypeCellular[] = "cellular";
592 const char kTypeVPN[] = "vpn";
593
594 // Flimflam mode options.
595 const char kModeManaged[] = "managed";
596 const char kModeAdhoc[] = "adhoc";
597
598 // Flimflam security options.
599 const char kSecurityWpa[] = "wpa";
600 const char kSecurityWep[] = "wep";
601 const char kSecurityRsn[] = "rsn";
602 const char kSecurity8021x[] = "802_1x";
603 const char kSecurityPsk[] = "psk";
604 const char kSecurityNone[] = "none";
605
606 // Flimflam L2TPIPsec property names.
607 const char kL2tpIpsecAuthenticationType[] = "L2TPIPsec.AuthenticationType";
608 const char kL2tpIpsecCaCertNssProperty[] = "L2TPIPsec.CACertNSS";
609 const char kL2tpIpsecClientCertIdProperty[] = "L2TPIPsec.ClientCertID";
610 const char kL2tpIpsecClientCertSlotProperty[] = "L2TPIPsec.ClientCertSlot";
611 const char kL2tpIpsecIkeVersion[] = "L2TPIPsec.IKEVersion";
612 const char kL2tpIpsecPinProperty[] = "L2TPIPsec.PIN";
613 const char kL2tpIpsecPskProperty[] = "L2TPIPsec.PSK";
614 const char kL2tpIpsecPskRequiredProperty[] = "L2TPIPsec.PSKRequired";
615 const char kL2tpIpsecUserProperty[] = "L2TPIPsec.User";
616 const char kL2tpIpsecPasswordProperty[] = "L2TPIPsec.Password";
617 // deprecated:
618 const char kL2tpIpsecClientCertSlotProp[] = "L2TPIPsec.ClientCertSlot";
619
620 // Flimflam OpenVPN property names.
621 const char kOpenVPNAuthNoCacheProperty[] = "OpenVPN.AuthNoCache";
622 const char kOpenVPNAuthProperty[] = "OpenVPN.Auth";
623 const char kOpenVPNAuthRetryProperty[] = "OpenVPN.AuthRetry";
624 const char kOpenVPNAuthUserPassProperty[] = "OpenVPN.AuthUserPass";
625 const char kOpenVPNCaCertProperty[] = "OpenVPN.CACert";
626 const char kOpenVPNCaCertNSSProperty[] = "OpenVPN.CACertNSS";
627 const char kOpenVPNClientCertIdProperty[] = "OpenVPN.Pkcs11.ID";
628 const char kOpenVPNClientCertSlotProperty[] = "OpenVPN.Pkcs11.Slot";
629 const char kOpenVPNCipherProperty[] = "OpenVPN.Cipher";
630 const char kOpenVPNCompLZOProperty[] = "OpenVPN.CompLZO";
631 const char kOpenVPNCompNoAdaptProperty[] = "OpenVPN.CompNoAdapt";
632 const char kOpenVPNKeyDirectionProperty[] = "OpenVPN.KeyDirection";
633 const char kOpenVPNMgmtEnableProperty[] = "OpenVPN.Mgmt.Enable";
634 const char kOpenVPNNsCertTypeProperty[] = "OpenVPN.NsCertType";
635 const char kOpenVPNOTPProperty[] = "OpenVPN.OTP";
636 const char kOpenVPNPasswordProperty[] = "OpenVPN.Password";
637 const char kOpenVPNPinProperty[] = "OpenVPN.Pkcs11.PIN";
638 const char kOpenVPNPortProperty[] = "OpenVPN.Port";
639 const char kOpenVPNProtoProperty[] = "OpenVPN.Proto";
640 const char kOpenVPNProviderProperty[] = "OpenVPN.Pkcs11.Provider";
641 const char kOpenVPNPushPeerInfoProperty[] = "OpenVPN.PushPeerInfo";
642 const char kOpenVPNRemoteCertEKUProperty[] = "OpenVPN.RemoteCertEKU";
643 const char kOpenVPNRemoteCertKUProperty[] = "OpenVPN.RemoteCertKU";
644 const char kOpenVPNRemoteCertTLSProperty[] = "OpenVPN.RemoteCertTLS";
645 const char kOpenVPNRenegSecProperty[] = "OpenVPN.RenegSec";
646 const char kOpenVPNServerPollTimeoutProperty[] = "OpenVPN.ServerPollTimeout";
647 const char kOpenVPNShaperProperty[] = "OpenVPN.Shaper";
648 const char kOpenVPNStaticChallengeProperty[] = "OpenVPN.StaticChallenge";
649 const char kOpenVPNTLSAuthContentsProperty[] = "OpenVPN.TLSAuthContents";
650 const char kOpenVPNTLSRemoteProperty[] = "OpenVPN.TLSRemote";
651 const char kOpenVPNUserProperty[] = "OpenVPN.User";
652
653 // FlimFlam technology family options
654 const char kTechnologyFamilyCdma[] = "CDMA";
655 const char kTechnologyFamilyGsm[] = "GSM";
656
657 // IPConfig property names.
658 const char kMethodProperty[] = "Method";
659 const char kAddressProperty[] = "Address";
660 const char kMtuProperty[] = "Mtu";
661 const char kPrefixlenProperty[] = "Prefixlen";
662 const char kBroadcastProperty[] = "Broadcast";
663 const char kPeerAddressProperty[] = "PeerAddress";
664 const char kGatewayProperty[] = "Gateway";
665 const char kDomainNameProperty[] = "DomainName";
666 const char kNameServersProperty[] = "NameServers";
667
668 // IPConfig type options.
669 const char kTypeIPv4[] = "ipv4";
670 const char kTypeIPv6[] = "ipv6";
671 const char kTypeDHCP[] = "dhcp";
672 const char kTypeBOOTP[] = "bootp";
673 const char kTypeZeroConf[] = "zeroconf";
674 const char kTypeDHCP6[] = "dhcp6";
675 const char kTypePPP[] = "ppp";
676
677 // Flimflam error options.
678 const char kErrorAaaFailed[] = "aaa-failed";
679 const char kErrorActivationFailed[] = "activation-failed";
680 const char kErrorBadPassphrase[] = "bad-passphrase";
681 const char kErrorBadWEPKey[] = "bad-wepkey";
682 const char kErrorConnectFailed[] = "connect-failed";
683 const char kErrorDNSLookupFailed[] = "dns-lookup-failed";
684 const char kErrorDhcpFailed[] = "dhcp-failed";
685 const char kErrorHTTPGetFailed[] = "http-get-failed";
686 const char kErrorInternal[] = "internal-error";
687 const char kErrorIpsecCertAuthFailed[] = "ipsec-cert-auth-failed";
688 const char kErrorIpsecPskAuthFailed[] = "ipsec-psk-auth-failed";
689 const char kErrorNeedEvdo[] = "need-evdo";
690 const char kErrorNeedHomeNetwork[] = "need-home-network";
691 const char kErrorOtaspFailed[] = "otasp-failed";
692 const char kErrorOutOfRange[] = "out-of-range";
693 const char kErrorPinMissing[] = "pin-missing";
694 const char kErrorPppAuthFailed[] = "ppp-auth-failed";
695
696 // Flimflam error result codes.
697 const char kErrorResultSuccess[] = "org.chromium.flimflam.Error.Success";
698 const char kErrorResultFailure[] = "org.chromium.flimflam.Error.Failure";
699 const char kErrorResultAlreadyConnected[] =
700     "org.chromium.flimflam.Error.AlreadyConnected";
701 const char kErrorResultAlreadyExists[] =
702     "org.chromium.flimflam.Error.AlreadyExists";
703 const char kErrorResultIncorrectPin[] =
704      "org.chromium.flimflam.Error.IncorrectPin";
705 const char kErrorResultInProgress[] = "org.chromium.flimflam.Error.InProgress";
706 const char kErrorResultInternalError[] =
707     "org.chromium.flimflam.Error.InternalError";
708 const char kErrorResultInvalidApn[] = "org.chromium.flimflam.Error.InvalidApn";
709 const char kErrorResultInvalidArguments[] =
710     "org.chromium.flimflam.Error.InvalidArguments";
711 const char kErrorResultInvalidNetworkName[] =
712     "org.chromium.flimflam.Error.InvalidNetworkName";
713 const char kErrorResultInvalidPassphrase[] =
714     "org.chromium.flimflam.Error.InvalidPassphrase";
715 const char kErrorResultInvalidProperty[] =
716     "org.chromium.flimflam.Error.InvalidProperty";
717 const char kErrorResultNoCarrier[] = "org.chromium.flimflam.Error.NoCarrier";
718 const char kErrorResultNotConnected[] =
719      "org.chromium.flimflam.Error.NotConnected";
720 const char kErrorResultNotFound[] = "org.chromium.flimflam.Error.NotFound";
721 const char kErrorResultNotImplemented[] =
722     "org.chromium.flimflam.Error.NotImplemented";
723 const char kErrorResultNotOnHomeNetwork[] =
724     "org.chromium.flimflam.Error.NotOnHomeNetwork";
725 const char kErrorResultNotRegistered[] =
726     "org.chromium.flimflam.Error.NotRegistered";
727 const char kErrorResultNotSupported[] =
728      "org.chromium.flimflam.Error.NotSupported";
729 const char kErrorResultOperationAborted[] =
730     "org.chromium.flimflam.Error.OperationAborted";
731 const char kErrorResultOperationInitiated[] =
732     "org.chromium.flimflam.Error.OperationInitiated";
733 const char kErrorResultOperationTimeout[] =
734     "org.chromium.flimflam.Error.OperationTimeout";
735 const char kErrorResultPassphraseRequired[] =
736     "org.chromium.flimflam.Error.PassphraseRequired";
737 const char kErrorResultPermissionDenied[] =
738     "org.chromium.flimflam.Error.PermissionDenied";
739 const char kErrorResultPinBlocked[] = "org.chromium.flimflam.Error.PinBlocked";
740 const char kErrorResultPinRequired[] =
741      "org.chromium.flimflam.Error.PinRequired";
742 const char kErrorResultWrongState[] = "org.chromium.flimflam.Error.WrongState";
743
744 const char kUnknownString[] = "UNKNOWN";
745
746 // Function names.
747 const char kClearPropertiesFunction[] = "ClearProperties";
748 const char kCompleteCellularActivationFunction[] = "CompleteCellularActivation";
749 const char kConfigureServiceForProfileFunction[] = "ConfigureServiceForProfile";
750 const char kConnectToBestServicesFunction[] = "ConnectToBestServices";
751 const char kGetLoadableProfileEntriesFunction[] = "GetLoadableProfileEntries";
752 const char kGetNetworksForGeolocation[] = "GetNetworksForGeolocation";
753 const char kPerformTDLSOperationFunction[] = "PerformTDLSOperation";
754 const char kRefreshFunction[] = "Refresh";
755 const char kResetFunction[] = "Reset";
756 const char kSetCarrierFunction[] = "SetCarrier";
757 const char kSetPropertiesFunction[] = "SetProperties";
758 const char kVerifyAndEncryptCredentialsFunction[] =
759     "VerifyAndEncryptCredentials";
760 const char kVerifyAndEncryptDataFunction[] = "VerifyAndEncryptData";
761 const char kVerifyDestinationFunction[] = "VerifyDestination";
762
763 // Device property names.
764 const char kEapAuthenticationCompletedProperty[] = "EapAuthenticationCompleted";
765 const char kEapAuthenticatorDetectedProperty[] = "EapAuthenticatorDetected";
766 const char kLinkMonitorResponseTimeProperty[] = "LinkMonitorResponseTime";
767 const char kProviderRequiresRoamingProperty[] =
768     "Cellular.ProviderRequiresRoaming";
769 const char kReceiveByteCountProperty[] = "ReceiveByteCount";
770 const char kSIMPresentProperty[] = "Cellular.SIMPresent";
771 const char kSupportedCarriersProperty[] = "Cellular.SupportedCarriers";
772 const char kTransmitByteCountProperty[] = "TransmitByteCount";
773
774 // Technology types (augments "Flimflam type options" above).
775 const char kTypeEthernetEap[] = "etherneteap";
776
777 // Error strings.
778 const char kErrorEapAuthenticationFailed[] = "eap-authentication-failed";
779 const char kErrorEapLocalTlsFailed[] = "eap-local-tls-failed";
780 const char kErrorEapRemoteTlsFailed[] = "eap-remote-tls-failed";
781
782 // IPConfig property names.
783 const char kSearchDomainsProperty[] = "SearchDomains";
784 const char kVendorEncapsulatedOptionsProperty[] = "VendorEncapsulatedOptions";
785 const char kWebProxyAutoDiscoveryUrlProperty[] = "WebProxyAutoDiscoveryUrl";
786
787 // Manager property names.
788 const char kDefaultServiceProperty[] = "DefaultService";
789 const char kHostNameProperty[] = "HostName";
790 const char kIgnoredDNSSearchPathsProperty[] = "IgnoredDNSSearchPaths";
791 const char kLinkMonitorTechnologiesProperty[] =
792     "LinkMonitorTechnologies";
793 const char kPortalCheckIntervalProperty[] = "PortalCheckInterval";
794 const char kServiceCompleteListProperty[] = "ServiceCompleteList";
795 const char kShortDNSTimeoutTechnologiesProperty[] =
796     "ShortDNSTimeoutTechnologies";
797 const char kUninitializedTechnologiesProperty[] = "UninitializedTechnologies";
798
799 // Service property names.
800 const char kActivateOverNonCellularNetworkProperty[] =
801     "Cellular.ActivateOverNonCellularNetwork";
802 const char kDiagnosticsDisconnectsProperty[] = "Diagnostics.Disconnects";
803 const char kDiagnosticsMisconnectsProperty[] = "Diagnostics.Misconnects";
804 const char kEapRemoteCertificationProperty[] = "EAP.RemoteCertification";
805 const char kEapCaCertPemProperty[] = "EAP.CACertPEM";
806 const char kEapSubjectMatchProperty[] = "EAP.SubjectMatch";
807 const char kErrorDetailsProperty[] = "ErrorDetails";
808 const char kHTTPProxyPortProperty[] = "HTTPProxyPort";
809 const char kIPConfigProperty[] = "IPConfig";
810 const char kL2tpIpsecCaCertPemProperty[] = "L2TPIPsec.CACertPEM";
811 const char kL2tpIpsecTunnelGroupProperty[] = "L2TPIPsec.TunnelGroup";
812 const char kL2tpIpsecXauthPasswordProperty[] = "L2TPIPsec.XauthPassword";
813 const char kL2tpIpsecXauthUserProperty[] = "L2TPIPsec.XauthUser";
814 const char kOpenVPNCaCertPemProperty[] = "OpenVPN.CACertPEM";
815 const char kOpenVPNCertProperty[] = "OpenVPN.Cert";
816 const char kOpenVPNExtraCertPemProperty[] = "OpenVPN.ExtraCertPEM";
817 const char kOpenVPNKeyProperty[] = "OpenVPN.Key";
818 const char kOpenVPNPingProperty[] = "OpenVPN.Ping";
819 const char kOpenVPNPingExitProperty[] = "OpenVPN.PingExit";
820 const char kOpenVPNPingRestartProperty[] = "OpenVPN.PingRestart";
821 const char kOpenVPNTLSAuthProperty[] = "OpenVPN.TLSAuth";
822 const char kOpenVPNVerbProperty[] = "OpenVPN.Verb";
823 const char kOpenVPNVerifyHashProperty[] = "OpenVPN.VerifyHash";
824 const char kOpenVPNVerifyX509NameProperty[] = "OpenVPN.VerifyX509Name";
825 const char kOpenVPNVerifyX509TypeProperty[] = "OpenVPN.VerifyX509Type";
826 const char kOutOfCreditsProperty[] = "Cellular.OutOfCredits";
827 const char kPhysicalTechnologyProperty[] = "PhysicalTechnology";
828 const char kStaticIPAddressProperty[] = "StaticIP.Address";
829 const char kStaticIPGatewayProperty[] = "StaticIP.Gateway";
830 const char kStaticIPMtuProperty[] = "StaticIP.Mtu";
831 const char kStaticIPNameServersProperty[] = "StaticIP.NameServers";
832 const char kStaticIPPeerAddressProperty[] = "StaticIP.PeerAddress";
833 const char kStaticIPPrefixlenProperty[] = "StaticIP.Prefixlen";
834 const char kSavedIPAddressProperty[] = "SavedIP.Address";
835 const char kSavedIPGatewayProperty[] = "SavedIP.Gateway";
836 const char kSavedIPMtuProperty[] = "SavedIP.Mtu";
837 const char kSavedIPNameServersProperty[] = "SavedIP.NameServers";
838 const char kSavedIPPeerAddressProperty[] = "SavedIP.PeerAddress";
839 const char kSavedIPPrefixlenProperty[] = "SavedIP.Prefixlen";
840 const char kTetheringProperty[] = "Tethering";
841 const char kVPNMTUProperty[] = "VPN.MTU";
842 const char kWifiFrequencyListProperty[] = "WiFi.FrequencyList";
843 const char kWifiVendorInformationProperty[] = "WiFi.VendorInformation";
844 const char kWifiProtectedManagementFrameRequiredProperty[] =
845     "WiFi.ProtectedManagementFrameRequired";
846
847 // Profile property names.
848 const char kUserHashProperty[] = "UserHash";
849
850 // Service Tethering property values.
851 const char kTetheringNotDetectedState[] = "NotDetected";
852 const char kTetheringSuspectedState[] = "Suspected";
853 const char kTetheringConfirmedState[] = "Confirmed";
854
855 // WiFi Service Vendor Information dictionary properties.
856 const char kVendorWPSManufacturerProperty[] = "Manufacturer";
857 const char kVendorWPSModelNameProperty[] = "ModelName";
858 const char kVendorWPSModelNumberProperty[] = "ModelNumber";
859 const char kVendorWPSDeviceNameProperty[] = "DeviceName";
860 const char kVendorOUIListProperty[] = "OUIList";
861
862 // WiFi Device link property names.
863 const char kLinkStatisticsProperty[] = "LinkStatistics";
864 const char kAverageReceiveSignalDbmProperty[] = "AverageReceiveSignalDbm";
865 const char kInactiveTimeMillisecondsProperty[] =
866     "InactiveTimeMilliseconds";
867 const char kLastReceiveSignalDbmProperty[] = "LastReceiveSignalDbm";
868 const char kPacketReceiveSuccessesProperty[] = "PacketReceiveSuccesses";
869 const char kPacketTransmitFailuresProperty[] = "PacketTransmitFailures";
870 const char kPacketTransmitSuccessesProperty[] = "PacketTrasmitSuccesses";
871 const char kTransmitBitrateProperty[] = "TransmitBitrate";
872 const char kTransmitRetriesProperty[] = "TransmitRetries";
873
874 // WiFi TDLS operations.
875 const char kTDLSDiscoverOperation[] = "Discover";
876 const char kTDLSSetupOperation[] = "Setup";
877 const char kTDLSStatusOperation[] = "Status";
878 const char kTDLSTeardownOperation[] = "Teardown";
879
880 // WiFi TDLS states.
881 const char kTDLSConnectedState[] = "Connected";
882 const char kTDLSDisabledState[] = "Disabled";
883 const char kTDLSDisconnectedState[] = "Disconnected";
884 const char kTDLSNonexistentState[] = "Nonexistent";
885 const char kTDLSUnknownState[] = "Unknown";
886
887
888 // Cellular service carriers.
889 const char kCarrierGenericUMTS[] = "Generic UMTS";
890 const char kCarrierSprint[] = "Sprint";
891 const char kCarrierVerizon[] = "Verizon Wireless";
892
893 // Geolocation property field names.
894 // Reference:
895 //    https://devsite.googleplex.com/maps/documentation/business/geolocation/
896 // Top level properties for a Geolocation request.
897 const char kGeoHomeMobileCountryCodeProperty[] = "homeMobileCountryCode";
898 const char kGeoHomeMobileNetworkCodeProperty[] = "homeMobileNetworkCode";
899 const char kGeoRadioTypePropertyProperty[] = "radioType";
900 const char kGeoCellTowersProperty[] = "cellTowers";
901 const char kGeoWifiAccessPointsProperty[] = "wifiAccessPoints";
902 // Cell tower object property names.
903 const char kGeoCellIdProperty[] = "cellId";
904 const char kGeoLocationAreaCodeProperty[] = "locationAreaCode";
905 const char kGeoMobileCountryCodeProperty[] = "mobileCountryCode";
906 const char kGeoMobileNetworkCodeProperty[] = "mobileNetworkCode";
907 const char kGeoTimingAdvanceProperty[] = "timingAdvance";
908 // WiFi access point property names.
909 const char kGeoMacAddressProperty[] = "macAddress";
910 const char kGeoChannelProperty[] = "channel";
911 const char kGeoSignalToNoiseRatioProperty[] = "signalToNoiseRatio";
912 // Common property names for geolocation objects.
913 const char kGeoAgeProperty[] = "age";
914 const char kGeoSignalStrengthProperty[] = "signalStrength";
915 }  // namespace shill
916
917 namespace modemmanager {
918 // ModemManager D-Bus service identifiers
919 const char kModemManagerSMSInterface[] =
920     "org.freedesktop.ModemManager.Modem.Gsm.SMS";
921
922 // ModemManager function names.
923 const char kSMSGetFunction[] = "Get";
924 const char kSMSDeleteFunction[] = "Delete";
925 const char kSMSListFunction[] = "List";
926
927 // ModemManager monitored signals
928 const char kSMSReceivedSignal[] = "SmsReceived";
929
930 // ModemManager1 interfaces and signals
931 // The canonical source for these is /usr/include/mm/ModemManager-names.h
932 const char kModemManager1[] = "org.freedesktop.ModemManager1";
933 const char kModemManager1ServicePath[] = "/org/freedesktop/ModemManager1";
934 const char kModemManager1MessagingInterface[] =
935     "org.freedesktop.ModemManager1.Modem.Messaging";
936 const char kModemManager1SmsInterface[] =
937     "org.freedesktop.ModemManager1.Sms";
938 const char kSMSAddedSignal[] = "Added";
939 }  // namespace modemmanager
940
941 namespace wimax_manager {
942 // WiMaxManager D-Bus service identifiers
943 const char kWiMaxManagerServiceName[] = "org.chromium.WiMaxManager";
944 const char kWiMaxManagerServicePath[] = "/org/chromium/WiMaxManager";
945 const char kWiMaxManagerServiceError[] = "org.chromium.WiMaxManager.Error";
946 const char kWiMaxManagerInterface[] = "org.chromium.WiMaxManager";
947 const char kWiMaxManagerDeviceInterface[] = "org.chromium.WiMaxManager.Device";
948 const char kWiMaxManagerNetworkInterface[] =
949     "org.chromium.WiMaxManager.Network";
950 const char kDeviceObjectPathPrefix[] = "/org/chromium/WiMaxManager/Device/";
951 const char kNetworkObjectPathPrefix[] = "/org/chromium/WiMaxManager/Network/";
952 const char kDevicesProperty[] = "Devices";
953 const char kNetworksProperty[] = "Networks";
954 const char kEAPAnonymousIdentity[] = "EAPAnonymousIdentity";
955 const char kEAPUserIdentity[] = "EAPUserIdentity";
956 const char kEAPUserPassword[] = "EAPUserPassword";
957
958 enum DeviceStatus {
959   kDeviceStatusUninitialized,
960   kDeviceStatusDisabled,
961   kDeviceStatusReady,
962   kDeviceStatusScanning,
963   kDeviceStatusConnecting,
964   kDeviceStatusConnected
965 };
966 }  // namespace wimax_manager
967
968 namespace bluetooth_adapter {
969 // Bluetooth Adapter service identifiers.
970 const char kBluetoothAdapterServiceName[] = "org.bluez";
971 const char kBluetoothAdapterInterface[] = "org.bluez.Adapter1";
972
973 // Bluetooth Adapter methods.
974 const char kStartDiscovery[] = "StartDiscovery";
975 const char kStopDiscovery[] = "StopDiscovery";
976 const char kRemoveDevice[] = "RemoveDevice";
977
978 // Bluetooth Adapter properties.
979 const char kAddressProperty[] = "Address";
980 const char kNameProperty[] = "Name";
981 const char kAliasProperty[] = "Alias";
982 const char kClassProperty[] = "Class";
983 const char kPoweredProperty[] = "Powered";
984 const char kDiscoverableProperty[] = "Discoverable";
985 const char kPairableProperty[] = "Pairable";
986 const char kPairableTimeoutProperty[] = "PairableTimeout";
987 const char kDiscoverableTimeoutProperty[] = "DiscoverableTimeout";
988 const char kDiscoveringProperty[] = "Discovering";
989 const char kUUIDsProperty[] = "UUIDs";
990 const char kModaliasProperty[] = "Modalias";
991
992 // Bluetooth Adapter errors.
993 const char kErrorNotReady[] = "org.bluez.Error.NotReady";
994 const char kErrorFailed[] = "org.bluez.Error.Failed";
995 const char kErrorNotAuthorized[] = "org.bluez.Error.NotAuthorized";
996 const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
997 }  // namespace bluetooth_adapter
998
999 namespace bluetooth_agent_manager {
1000 // Bluetooth Agent Manager service indentifiers
1001 const char kBluetoothAgentManagerServiceName[] = "org.bluez";
1002 const char kBluetoothAgentManagerServicePath[] = "/org/bluez";
1003 const char kBluetoothAgentManagerInterface[] = "org.bluez.AgentManager1";
1004
1005 // Bluetooth Agent Manager methods.
1006 const char kRegisterAgent[] = "RegisterAgent";
1007 const char kUnregisterAgent[] = "UnregisterAgent";
1008 const char kRequestDefaultAgent[] = "RequestDefaultAgent";
1009
1010 // Bluetooth capabilities.
1011 const char kNoInputNoOutputCapability[] = "NoInputNoOutput";
1012 const char kDisplayOnlyCapability[] = "DisplayOnly";
1013 const char kKeyboardOnlyCapability[] = "KeyboardOnly";
1014 const char kDisplayYesNoCapability[] = "DisplayYesNo";
1015 const char kKeyboardDisplayCapability[] = "KeyboardDisplay";
1016
1017 // Bluetooth Agent Manager errors.
1018 const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
1019 const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists";
1020 const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist";
1021 }  // namespace bluetooth_agent_manager
1022
1023
1024 namespace bluetooth_agent {
1025 // Bluetooth Agent service indentifiers
1026 const char kBluetoothAgentInterface[] = "org.bluez.Agent1";
1027
1028 // Bluetooth Agent methods.
1029 const char kRelease[] = "Release";
1030 const char kRequestPinCode[] = "RequestPinCode";
1031 const char kDisplayPinCode[] = "DisplayPinCode";
1032 const char kRequestPasskey[] = "RequestPasskey";
1033 const char kDisplayPasskey[] = "DisplayPasskey";
1034 const char kRequestConfirmation[] = "RequestConfirmation";
1035 const char kRequestAuthorization[] = "RequestAuthorization";
1036 const char kAuthorizeService[] = "AuthorizeService";
1037 const char kCancel[] = "Cancel";
1038
1039 // Bluetooth Agent errors.
1040 const char kErrorRejected[] = "org.bluez.Error.Rejected";
1041 const char kErrorCanceled[] = "org.bluez.Error.Canceled";
1042 }  // namespace bluetooth_agent
1043
1044 namespace bluetooth_device {
1045 // Bluetooth Device service identifiers.
1046 const char kBluetoothDeviceServiceName[] = "org.bluez";
1047 const char kBluetoothDeviceInterface[] = "org.bluez.Device1";
1048
1049 // Bluetooth Device methods.
1050 const char kConnect[] = "Connect";
1051 const char kDisconnect[] = "Disconnect";
1052 const char kConnectProfile[] = "ConnectProfile";
1053 const char kDisconnectProfile[] = "DisconnectProfile";
1054 const char kPair[] = "Pair";
1055 const char kCancelPairing[] = "CancelPairing";
1056
1057 // Bluetooth Device properties.
1058 const char kAddressProperty[] = "Address";
1059 const char kNameProperty[] = "Name";
1060 const char kIconProperty[] = "Icon";
1061 const char kClassProperty[] = "Class";
1062 const char kAppearanceProperty[] = "Appearance";
1063 const char kUUIDsProperty[] = "UUIDs";
1064 const char kPairedProperty[] = "Paired";
1065 const char kConnectedProperty[] = "Connected";
1066 const char kTrustedProperty[] = "Trusted";
1067 const char kBlockedProperty[] = "Blocked";
1068 const char kAliasProperty[] = "Alias";
1069 const char kAdapterProperty[] = "Adapter";
1070 const char kLegacyPairingProperty[] = "LegacyPairing";
1071 const char kModaliasProperty[] = "Modalias";
1072 const char kRSSIProperty[] = "RSSI";
1073
1074 // Bluetooth Device errors.
1075 const char kErrorNotReady[] = "org.bluez.Error.NotReady";
1076 const char kErrorFailed[] = "org.bluez.Error.Failed";
1077 const char kErrorInProgress[] = "org.bluez.Error.InProgress";
1078 const char kErrorAlreadyConnected[] = "org.bluez.Error.AlreadyConnected";
1079 const char kErrorNotConnected[] = "org.bluez.Error.NotConnected";
1080 const char kErrorDoesNotExist[] = "org.bluez.Error.DoesNotExist";
1081 const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
1082
1083 // Undocumented errors that we know BlueZ returns for Bluetooth Device methods.
1084 const char kErrorNotSupported[] = "org.bluez.Error.NotSupported";
1085 const char kErrorAuthenticationCanceled[] =
1086     "org.bluez.Error.AuthenticationCanceled";
1087 const char kErrorAuthenticationFailed[] =
1088     "org.bluez.Error.AuthenticationFailed";
1089 const char kErrorAuthenticationRejected[] =
1090     "org.bluez.Error.AuthenticationRejected";
1091 const char kErrorAuthenticationTimeout[] =
1092     "org.bluez.Error.AuthenticationTimeout";
1093 const char kErrorConnectionAttemptFailed[] =
1094     "org.bluez.Error.ConnectionAttemptFailed";
1095 }  // namespace bluetooth_device
1096
1097 namespace bluetooth_input {
1098 // Bluetooth Input service identifiers.
1099 const char kBluetoothInputServiceName[] = "org.bluez";
1100 const char kBluetoothInputInterface[] = "org.bluez.Input1";
1101
1102 // Bluetooth Input properties.
1103 const char kReconnectModeProperty[] = "ReconnectMode";
1104
1105 // Bluetooth Input property values.
1106 const char kNoneReconnectModeProperty[] = "none";
1107 const char kHostReconnectModeProperty[] = "host";
1108 const char kDeviceReconnectModeProperty[] = "device";
1109 const char kAnyReconnectModeProperty[] = "any";
1110 }  // namespace bluetooth_input
1111
1112 namespace bluetooth_object_manager {
1113 // Bluetooth daemon Object Manager service identifiers.
1114 const char kBluetoothObjectManagerServiceName[] = "org.bluez";
1115 const char kBluetoothObjectManagerServicePath[] = "/";
1116 }  // namespace bluetooth_object_manager
1117
1118 namespace bluetooth_profile_manager {
1119 // Bluetooth Profile Manager service identifiers.
1120 const char kBluetoothProfileManagerServiceName[] = "org.bluez";
1121 const char kBluetoothProfileManagerServicePath[] = "/org/bluez";
1122 const char kBluetoothProfileManagerInterface[] = "org.bluez.ProfileManager1";
1123
1124 // Bluetooth Profile Manager methods.
1125 const char kRegisterProfile[] = "RegisterProfile";
1126 const char kUnregisterProfile[] = "UnregisterProfile";
1127
1128 // Bluetooth Profile Manager option names.
1129 const char kNameOption[] = "Name";
1130 const char kServiceOption[] = "Service";
1131 const char kRoleOption[] = "Role";
1132 const char kChannelOption[] = "Channel";
1133 const char kPSMOption[] = "PSM";
1134 const char kRequireAuthenticationOption[] = "RequireAuthentication";
1135 const char kRequireAuthorizationOption[] = "RequireAuthorization";
1136 const char kAutoConnectOption[] = "AutoConnect";
1137 const char kServiceRecordOption[] = "ServiceRecord";
1138 const char kVersionOption[] = "Version";
1139 const char kFeaturesOption[] = "Features";
1140
1141 // Bluetooth Profile Manager option values.
1142 const char kClientRoleOption[] = "client";
1143 const char kServerRoleOption[] = "server";
1144
1145 // Bluetooth Profile Manager errors.
1146 const char kErrorInvalidArguments[] = "org.bluez.Error.InvalidArguments";
1147 const char kErrorAlreadyExists[] = "org.bluez.Error.AlreadyExists";
1148 }  // namespace bluetooth_profile_manager
1149
1150 namespace bluetooth_profile {
1151 // Bluetooth Profile service identifiers.
1152 const char kBluetoothProfileInterface[] = "org.bluez.Profile1";
1153
1154 // Bluetooth Profile methods.
1155 const char kRelease[] = "Release";
1156 const char kNewConnection[] = "NewConnection";
1157 const char kRequestDisconnection[] = "RequestDisconnection";
1158 const char kCancel[] = "Cancel";
1159
1160 // Bluetooth Profile property names.
1161 const char kVersionProperty[] = "Version";
1162 const char kFeaturesProperty[] = "Features";
1163
1164 // Bluetooth Profile errors.
1165 const char kErrorRejected[] = "org.bluez.Error.Rejected";
1166 const char kErrorCanceled[] = "org.bluez.Error.Canceled";
1167 }  // namespace bluetooth_profile
1168
1169 namespace nfc_adapter {
1170 // NFC Adapter service identifiers.
1171 const char kNfcAdapterServiceName[] = "org.neard";
1172 const char kNfcAdapterInterface[] = "org.neard.Adapter";
1173
1174 // NFC Adapter methods.
1175 const char kStartEmulation[] = "StartEmulation";
1176 const char kStartPollLoop[] = "StartPollLoop";
1177 const char kStopEmulation[] = "StopEmulation";
1178 const char kStopPollLoop[] = "StopPollLoop";
1179
1180 // NFC Adapter signals.
1181 const char kTagFoundSignal[] = "TagFound";
1182 const char kTagLostSignal[] = "TagLost";
1183
1184 // NFC Adapter properties.
1185 const char kDevicesProperty[] = "Devices";
1186 const char kModeProperty[] = "Mode";
1187 const char kPollingProperty[] = "Polling";
1188 const char kPoweredProperty[] = "Powered";
1189 const char kProtocolsProperty[] = "Protocols";
1190 const char kTagsProperty[] = "Tags";
1191
1192 // NFC Adapter mode values.
1193 const char kModeInitiator[] = "Initiator";
1194 const char kModeTarget[] = "Target";
1195 const char kModeIdle[] = "Idle";
1196
1197 }  // namespace nfc_adapter
1198
1199 namespace nfc_device {
1200 // NFC Device service identifiers.
1201 const char kNfcDeviceServiceName[] = "org.neard";
1202 const char kNfcDeviceInterface[] = "org.neard.Device";
1203
1204 // NFC Device methods.
1205 const char kPush[] = "Push";
1206
1207 // NFC Device properties.
1208 const char kRecordsProperty[] = "Records";
1209
1210 }  // namespace nfc_device
1211
1212 namespace nfc_manager {
1213 // NFC Manager service identifiers.
1214 const char kNfcManagerServiceName[] = "org.neard";
1215 const char kNfcManagerServicePath[] = "/";
1216 const char kNfcManagerInterface[] = "org.neard.Manager";
1217
1218 // NFC Manager methods.
1219 const char kRegisterHandoverAgent[] = "RegisterHandoverAgent";
1220 const char kUnregisterHandoverAgent[] = "UnregisterHandoverAgent";
1221 const char kRegisterNDEFAgent[] = "RegisterNDEFAgent";
1222 const char kUnregisterNDEFAgent[] = "UnregisterNDEFAgent";
1223
1224 // NFC Manager signals.
1225 const char kAdapterAddedSignal[] = "AdapterAdded";
1226 const char kAdapterRemovedSignal[] = "AdapterRemoved";
1227
1228 // NFC Manager properties.
1229 const char kAdaptersProperty[] = "Adapters";
1230
1231 // NFC Manager handover carrier values.
1232 const char kCarrierBluetooth[] = "bluetooth";
1233 const char kCarrierWifi[] = "wifi";
1234 }  // namespace nfc_manager
1235
1236 namespace nfc_tag {
1237 // NFC Tag service identifiers.
1238 const char kNfcTagServiceName[] = "org.neard";
1239 const char kNfcTagInterface[] = "org.neard.Tag";
1240
1241 // NFC Tag methods.
1242 const char kWrite[] = "Write";
1243
1244 // NFC Tag properties.
1245 const char kProtocolProperty[] = "Protocol";
1246 const char kReadOnlyProperty[] = "ReadOnly";
1247 const char kRecordsProperty[] = "Records";
1248 const char kTypeProperty[] = "Type";
1249
1250 // NFC Tag type values.
1251 const char kTagType1[] = "Type 1";
1252 const char kTagType2[] = "Type 2";
1253 const char kTagType3[] = "Type 3";
1254 const char kTagType4[] = "Type 4";
1255
1256 }  // namespace nfc_tag
1257
1258 namespace nfc_record {
1259 // NFC Record service identifiers.
1260 const char kNfcRecordServiceName[] = "org.neard";
1261 const char kNfcRecordInterface[] = "org.neard.Record";
1262
1263 // NFC Record properties.
1264 const char kTypeProperty[] = "Type";
1265 const char kEncodingProperty[] = "Encoding";
1266 const char kLanguageProperty[] = "Language";
1267 const char kRepresentationProperty[] = "Representation";
1268 const char kUriProperty[] = "URI";
1269 const char kMimeTypeProperty[] = "MIMEType";
1270 const char kSizeProperty[] = "Size";
1271 const char kActionProperty[] = "Action";
1272
1273 // NFC Record type values.
1274 const char kTypeSmartPoster[] = "SmartPoster";
1275 const char kTypeText[] = "Text";
1276 const char kTypeUri[] = "URI";
1277 const char kTypeHandoverRequest[] = "HandoverRequest";
1278 const char kTypeHandoverSelect[] = "HandoverSelect";
1279 const char kTypeHandoverCarrier[] = "HandoverCarrier";
1280
1281 // NFC Record encoding values.
1282 const char kEncodingUtf8[] = "UTF-8";
1283 const char kEncodingUtf16[] = "UTF-16";
1284 }  // namespace nfc_record
1285
1286 namespace nfc_handover_agent {
1287 // NFC Handover Agent service identifiers.
1288 // TODO(armansito): Add the correct service name once the HandoverAgent feature
1289 // is fully implemented.
1290 const char kNfcHandoverAgentServiceName[] = "";
1291 const char kNfcHandoverInterface[] = "org.neard.HandoverAgent";
1292
1293 // NFC Handover Agent methods.
1294 const char kRequestOOB[] = "RequestOOB";
1295 const char kPushOOB[] = "PushOOB";
1296 const char kRelease[] = "Release";
1297
1298 // NFC Handover Agent properties.
1299 const char kEIRProperty[] = "EIR";
1300 const char kNokiaDotComBtProperty[] = "nokia.com:bt";
1301 const char kWSCProperty[] = "WSC";
1302 const char kStateProperty[] = "State";
1303 }  // namespace nfc_handover_agent
1304
1305 namespace nfc_ndef_agent {
1306 // NFC NDEF Agent service identifiers.
1307 // TODO(armansito): Add the correct service name once the NDEFAgent feature
1308 // is fully implemented.
1309 const char kNfcNdefAgentServiceName[] = "";
1310 const char kNfcNdefAgentInterface[] = "org.neard.NDEFAgent";
1311
1312 // NFC NDEF Agent methods.
1313 const char kGetNDEF[] = "GetNDEF";
1314 const char kRelease[] = "Release";
1315
1316 // NFC NDEF properties.
1317 const char kNDEFProperty[] = "NDEF";
1318 const char kRecordProperty[] = "Record";
1319 }  // namespace nfc_ndef_agent
1320
1321 namespace nfc_common {
1322 // NFC Adapter/Tag protocol values.
1323 const char kProtocolFelica[] = "Felica";
1324 const char kProtocolMifare[] = "MIFARE";
1325 const char kProtocolJewel[] = "Jewel";
1326 const char kProtocolIsoDep[] = "ISO-DEP";
1327 const char kProtocolNfcDep[] = "NFC-DEP";
1328
1329 // Common methods for NFC property access and signals.
1330 const char kGetProperties[] = "GetProperties";
1331 const char kSetProperty[] = "SetProperty";
1332 const char kPropertyChangedSignal[] = "PropertyChanged";
1333 }  // namespace nfc_common
1334
1335 namespace nfc_error {
1336 // NFC errors.
1337 const char kAlreadyExists[] = "org.neard.Error.AlreadyExists";
1338 const char kDoesNotExist[] = "org.neard.Error.DoesNotExist";
1339 const char kFailed[] = "org.neard.Error.Failed";
1340 const char kInProgress[] = "org.neard.Error.InProgress";
1341 const char kInvalidArguments[] = "org.neard.Error.InvalidArguments";
1342 const char kNotReady[] = "org.neard.Error.NotReady";
1343 const char kNotSupported[] = "org.neard.Error.NotSupported";
1344 const char kPermissionDenied[] = "org.neard.Error.PermissionDenied";
1345
1346 // NFC Handover Agent errors.
1347 const char kHandoverAgentFailed[] = "org.neard.HandoverAgent.Error.Failed";
1348 const char kHandoverAgentInProgress[] =
1349     "org.neard.HandoverAgent.Error.InProgress";
1350 }  // namespace nfc_error
1351
1352 namespace cros_disks {
1353 const char kCrosDisksInterface[] = "org.chromium.CrosDisks";
1354 const char kCrosDisksServicePath[] = "/org/chromium/CrosDisks";
1355 const char kCrosDisksServiceName[] = "org.chromium.CrosDisks";
1356 const char kCrosDisksServiceError[] = "org.chromium.CrosDisks.Error";
1357
1358 // Methods.
1359 const char kEnumerateAutoMountableDevices[] = "EnumerateAutoMountableDevices";
1360 const char kFormat[] = "Format";
1361 // TODO(benchan): Deprecate FormatDevice method (crosbug.com/22981)
1362 const char kFormatDevice[] = "FormatDevice";
1363 const char kGetDeviceProperties[] = "GetDeviceProperties";
1364 const char kMount[] = "Mount";
1365 const char kUnmount[] = "Unmount";
1366
1367 // Signals.
1368 const char kDeviceAdded[] = "DeviceAdded";
1369 const char kDeviceScanned[] = "DeviceScanned";
1370 const char kDeviceRemoved[] = "DeviceRemoved";
1371 const char kDiskAdded[] = "DiskAdded";
1372 const char kDiskChanged[] = "DiskChanged";
1373 const char kDiskRemoved[] = "DiskRemoved";
1374 // TODO(benchan): Deprecate FormattingFinished signal (crosbug.com/22981)
1375 const char kFormattingFinished[] = "FormattingFinished";
1376 const char kFormatCompleted[] = "FormatCompleted";
1377 const char kMountCompleted[] = "MountCompleted";
1378
1379 // Properties.
1380 const char kDeviceFile[] = "DeviceFile";
1381 const char kDeviceIsDrive[] = "DeviceIsDrive";
1382 const char kDeviceIsMediaAvailable[] = "DeviceIsMediaAvailable";
1383 const char kDeviceIsMounted[] = "DeviceIsMounted";
1384 const char kDeviceIsOnBootDevice[] = "DeviceIsOnBootDevice";
1385 const char kDeviceIsReadOnly[] = "DeviceIsReadOnly";
1386 const char kDeviceIsVirtual[] = "DeviceIsVirtual";
1387 const char kDeviceMediaType[] = "DeviceMediaType";
1388 const char kDeviceMountPaths[] = "DeviceMountPaths";
1389 const char kDevicePresentationHide[] = "DevicePresentationHide";
1390 const char kDeviceSize[] = "DeviceSize";
1391 const char kDriveIsRotational[] = "DriveIsRotational";
1392 const char kDriveModel[] = "DriveModel";
1393 const char kExperimentalFeaturesEnabled[] = "ExperimentalFeaturesEnabled";
1394 const char kIdLabel[] = "IdLabel";
1395 const char kIdUuid[] = "IdUuid";
1396 const char kVendorId[] = "VendorId";
1397 const char kVendorName[] = "VendorName";
1398 const char kProductId[] = "ProductId";
1399 const char kProductName[] = "ProductName";
1400 const char kNativePath[] = "NativePath";
1401
1402 // Enum values.
1403 // DeviceMediaType enum values are reported through UMA.
1404 // All values but DEVICE_MEDIA_NUM_VALUES should not be changed or removed.
1405 // Additional values can be added but DEVICE_MEDIA_NUM_VALUES should always
1406 // be the last value in the enum.
1407 enum DeviceMediaType {
1408   DEVICE_MEDIA_UNKNOWN = 0,
1409   DEVICE_MEDIA_USB = 1,
1410   DEVICE_MEDIA_SD = 2,
1411   DEVICE_MEDIA_OPTICAL_DISC = 3,
1412   DEVICE_MEDIA_MOBILE = 4,
1413   DEVICE_MEDIA_DVD = 5,
1414   DEVICE_MEDIA_NUM_VALUES,
1415 };
1416
1417 enum FormatErrorType {
1418   FORMAT_ERROR_NONE = 0,
1419   FORMAT_ERROR_UNKNOWN = 1,
1420   FORMAT_ERROR_INTERNAL = 2,
1421   FORMAT_ERROR_INVALID_DEVICE_PATH = 3,
1422   FORMAT_ERROR_DEVICE_BEING_FORMATTED = 4,
1423   FORMAT_ERROR_UNSUPPORTED_FILESYSTEM = 5,
1424   FORMAT_ERROR_FORMAT_PROGRAM_NOT_FOUND = 6,
1425   FORMAT_ERROR_FORMAT_PROGRAM_FAILED = 7,
1426   FORMAT_ERROR_DEVICE_NOT_ALLOWED = 8,
1427 };
1428
1429 // TODO(benchan): After both Chrome and cros-disks use these enum values,
1430 // make these error values contiguous so that they can be directly reported
1431 // via UMA.
1432 enum MountErrorType {
1433   MOUNT_ERROR_NONE = 0,
1434   MOUNT_ERROR_UNKNOWN = 1,
1435   MOUNT_ERROR_INTERNAL = 2,
1436   MOUNT_ERROR_INVALID_ARGUMENT = 3,
1437   MOUNT_ERROR_INVALID_PATH = 4,
1438   MOUNT_ERROR_PATH_ALREADY_MOUNTED = 5,
1439   MOUNT_ERROR_PATH_NOT_MOUNTED = 6,
1440   MOUNT_ERROR_DIRECTORY_CREATION_FAILED = 7,
1441   MOUNT_ERROR_INVALID_MOUNT_OPTIONS = 8,
1442   MOUNT_ERROR_INVALID_UNMOUNT_OPTIONS = 9,
1443   MOUNT_ERROR_INSUFFICIENT_PERMISSIONS = 10,
1444   MOUNT_ERROR_MOUNT_PROGRAM_NOT_FOUND = 11,
1445   MOUNT_ERROR_MOUNT_PROGRAM_FAILED = 12,
1446   MOUNT_ERROR_INVALID_DEVICE_PATH = 100,
1447   MOUNT_ERROR_UNKNOWN_FILESYSTEM = 101,
1448   MOUNT_ERROR_UNSUPPORTED_FILESYSTEM = 102,
1449   MOUNT_ERROR_INVALID_ARCHIVE = 201,
1450   MOUNT_ERROR_UNSUPPORTED_ARCHIVE = 202,
1451 };
1452
1453 // MountSourceType enum values are solely used by Chrome/CrosDisks in
1454 // the MountCompleted signal, and currently not reported through UMA.
1455 enum MountSourceType {
1456   MOUNT_SOURCE_INVALID = 0,
1457   MOUNT_SOURCE_REMOVABLE_DEVICE = 1,
1458   MOUNT_SOURCE_ARCHIVE = 2,
1459   MOUNT_SOURCE_NETWORK_STORAGE = 3,
1460 };
1461 }  // namespace cros_disks
1462
1463 namespace mtpd {
1464 const char kMtpdInterface[] = "org.chromium.Mtpd";
1465 const char kMtpdServicePath[] = "/org/chromium/Mtpd";
1466 const char kMtpdServiceName[] = "org.chromium.Mtpd";
1467 const char kMtpdServiceError[] = "org.chromium.Mtpd.Error";
1468
1469 // Methods.
1470 const char kEnumerateStorages[] = "EnumerateStorages";
1471 const char kGetStorageInfo[] = "GetStorageInfo";
1472 const char kOpenStorage[] = "OpenStorage";
1473 const char kCloseStorage[] = "CloseStorage";
1474 const char kReadDirectoryByPath[] = "ReadDirectoryByPath";
1475 const char kReadDirectoryById[] = "ReadDirectoryById";
1476 const char kReadFileChunkByPath[] = "ReadFileChunkByPath";
1477 const char kReadFileChunkById[] = "ReadFileChunkById";
1478 const char kGetFileInfoByPath[] = "GetFileInfoByPath";
1479 const char kGetFileInfoById[] = "GetFileInfoById";
1480
1481 // Signals.
1482 const char kMTPStorageAttached[] = "MTPStorageAttached";
1483 const char kMTPStorageDetached[] = "MTPStorageDetached";
1484
1485 // For FileEntry struct:
1486 const uint32_t kInvalidFileId = 0xffffffff;
1487
1488 // For OpenStorage method:
1489 const char kReadOnlyMode[] = "ro";
1490
1491 // For GetFileInfo() method:
1492 // The id of the root node in a storage, as defined by the PTP/MTP standards.
1493 // Use this when referring to the root node in the context of GetFileInfo().
1494 const uint32_t kRootFileId = 0;
1495 }  // namespace mtpd
1496
1497 namespace update_engine {
1498 const char kUpdateEngineInterface[] = "org.chromium.UpdateEngineInterface";
1499 const char kUpdateEngineServicePath[] = "/org/chromium/UpdateEngine";
1500 const char kUpdateEngineServiceName[] = "org.chromium.UpdateEngine";
1501
1502 // Methods.
1503 const char kAttemptUpdate[] = "AttemptUpdate";
1504 const char kGetStatus[] = "GetStatus";
1505 const char kRebootIfNeeded[] = "RebootIfNeeded";
1506 const char kSetChannel[] = "SetChannel";
1507 const char kGetChannel[] = "GetChannel";
1508
1509 // Signals.
1510 const char kStatusUpdate[] = "StatusUpdate";
1511
1512 // Operations contained in StatusUpdate signals.
1513 const char kUpdateStatusIdle[] = "UPDATE_STATUS_IDLE";
1514 const char kUpdateStatusCheckingForUpdate[] =
1515     "UPDATE_STATUS_CHECKING_FOR_UPDATE";
1516 const char kUpdateStatusUpdateAvailable[] = "UPDATE_STATUS_UPDATE_AVAILABLE";
1517 const char kUpdateStatusDownloading[] = "UPDATE_STATUS_DOWNLOADING";
1518 const char kUpdateStatusVerifying[] = "UPDATE_STATUS_VERIFYING";
1519 const char kUpdateStatusFinalizing[] = "UPDATE_STATUS_FINALIZING";
1520 const char kUpdateStatusUpdatedNeedReboot[] =
1521     "UPDATE_STATUS_UPDATED_NEED_REBOOT";
1522 const char kUpdateStatusReportingErrorEvent[] =
1523     "UPDATE_STATUS_REPORTING_ERROR_EVENT";
1524 const char kUpdateStatusAttemptingRollback[] =
1525     "UPDATE_STATUS_ATTEMPTING_ROLLBACK";
1526 }  // namespace update_engine
1527
1528 namespace debugd {
1529 const char kDebugdInterface[] = "org.chromium.debugd";
1530 const char kDebugdServicePath[] = "/org/chromium/debugd";
1531 const char kDebugdServiceName[] = "org.chromium.debugd";
1532
1533 // Methods.
1534 const char kGetDebugLogs[] = "GetDebugLogs";
1535 const char kGetInterfaces[] = "GetInterfaces";
1536 const char kGetModemStatus[] = "GetModemStatus";
1537 const char kGetNetworkStatus[] = "GetNetworkStatus";
1538 const char kGetPerfData[] = "GetPerfData";
1539 const char kGetRichPerfData[] = "GetRichPerfData";
1540 const char kGetRoutes[] = "GetRoutes";
1541 const char kGetWiMaxStatus[] = "GetWiMaxStatus";
1542 const char kSetDebugMode[] = "SetDebugMode";
1543 const char kSystraceStart[] = "SystraceStart";
1544 const char kSystraceStop[] = "SystraceStop";
1545 const char kSystraceStatus[] = "SystraceStatus";
1546 const char kGetLog[] = "GetLog";
1547 const char kGetAllLogs[] = "GetAllLogs";
1548 const char kGetUserLogFiles[] = "GetUserLogFiles";
1549 const char kGetFeedbackLogs[] = "GetFeedbackLogs";
1550 const char kTestICMP[] = "TestICMP";
1551 const char kTestICMPWithOptions[] = "TestICMPWithOptions";
1552 const char kLogKernelTaskStates[] = "LogKernelTaskStates";
1553 const char kUploadCrashes[] = "UploadCrashes";
1554 }  // namespace debugd
1555
1556 namespace permission_broker {
1557 const char kPermissionBrokerInterface[] = "org.chromium.PermissionBroker";
1558 const char kPermissionBrokerServicePath[] = "/org/chromium/PermissionBroker";
1559 const char kPermissionBrokerServiceName[] = "org.chromium.PermissionBroker";
1560
1561 // Methods
1562 const char kRequestPathAccess[] = "RequestPathAccess";
1563 const char kRequestUsbAccess[] = "RequestUsbAccess";
1564 }  // namespace permission_broker
1565
1566 namespace system_clock {
1567 const char kSystemClockInterface[] = "org.torproject.tlsdate";
1568 const char kSystemClockServicePath[] = "/org/torproject/tlsdate";
1569 const char kSystemClockServiceName[] = "org.torproject.tlsdate";
1570
1571 // Signals.
1572 const char kSystemClockUpdated[] = "TimeUpdated";
1573 }  // namespace system_clock
1574
1575 namespace cras {
1576 const char kCrasServicePath[] = "/org/chromium/cras";
1577 const char kCrasServiceName[] = "org.chromium.cras";
1578 const char kCrasControlInterface[] = "org.chromium.cras.Control";
1579
1580 // Methods.
1581 const char kSetOutputVolume[] = "SetOutputVolume";
1582 const char kSetOutputNodeVolume[] = "SetOutputNodeVolume";
1583 const char kSetOutputMute[] = "SetOutputMute";
1584 const char kSetOutputUserMute[] = "SetOutputUserMute";
1585 const char kSetInputGain[] = "SetInputGain";
1586 const char kSetInputNodeGain[] = "SetInputNodeGain";
1587 const char kSetInputMute[] = "SetInputMute";
1588 const char kGetVolumeState[] = "GetVolumeState";
1589 const char kGetNodes[] = "GetNodes";
1590 const char kSetActiveOutputNode[] = "SetActiveOutputNode";
1591 const char kSetActiveInputNode[] = "SetActiveInputNode";
1592 const char kGetNumberOfActiveStreams[] = "GetNumberOfActiveStreams";
1593
1594 // Names of properties returned by GetNodes()
1595 const char kIsInputProperty[] = "IsInput";
1596 const char kIdProperty[] = "Id";
1597 const char kTypeProperty[] = "Type";
1598 const char kNameProperty[] = "Name";
1599 const char kDeviceNameProperty[] = "DeviceName";
1600 const char kActiveProperty[] = "Active";
1601 const char kPluggedTimeProperty[] = "PluggedTime";
1602
1603 // Signals.
1604 const char kOutputVolumeChanged[] = "OutputVolumeChanged";
1605 const char kOutputMuteChanged[] = "OutputMuteChanged";
1606 const char kInputGainChanged[] = "InputGainChanged";
1607 const char kInputMuteChanged[] = "InputMuteChanged";
1608 const char kNodesChanged[] = "NodesChanged";
1609 const char kActiveOutputNodeChanged[] = "ActiveOutputNodeChanged";
1610 const char kActiveInputNodeChanged[] = "ActiveInputNodeChanged";
1611 const char kNumberOfActiveStreamsChanged[] = "NumberOfActiveStreamsChanged";
1612 }  // namespace cras
1613
1614 #endif  // DBUS_SERVICE_CONSTANTS_H_