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