| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ | 5 #ifndef CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
| 6 #define CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ | 6 #define CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class LorgnetteManagerClient; | 26 class LorgnetteManagerClient; |
| 27 class ModemMessagingClient; | 27 class ModemMessagingClient; |
| 28 class NfcAdapterClient; | 28 class NfcAdapterClient; |
| 29 class NfcDeviceClient; | 29 class NfcDeviceClient; |
| 30 class NfcManagerClient; | 30 class NfcManagerClient; |
| 31 class NfcRecordClient; | 31 class NfcRecordClient; |
| 32 class NfcTagClient; | 32 class NfcTagClient; |
| 33 class PeerDaemonManagerClient; | 33 class PeerDaemonManagerClient; |
| 34 class PermissionBrokerClient; | 34 class PermissionBrokerClient; |
| 35 class PowerManagerClient; | 35 class PowerManagerClient; |
| 36 class PrivetDaemonManagerClient; | |
| 37 class SMSClient; | 36 class SMSClient; |
| 38 class SessionManagerClient; | 37 class SessionManagerClient; |
| 39 class ShillDeviceClient; | 38 class ShillDeviceClient; |
| 40 class ShillIPConfigClient; | 39 class ShillIPConfigClient; |
| 41 class ShillManagerClient; | 40 class ShillManagerClient; |
| 42 class ShillProfileClient; | 41 class ShillProfileClient; |
| 43 class ShillServiceClient; | 42 class ShillServiceClient; |
| 44 class ShillThirdPartyVpnDriverClient; | 43 class ShillThirdPartyVpnDriverClient; |
| 45 class SystemClockClient; | 44 class SystemClockClient; |
| 46 class UpdateEngineClient; | 45 class UpdateEngineClient; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 70 MODEM_MESSAGING = 1 << 11, | 69 MODEM_MESSAGING = 1 << 11, |
| 71 NFC = 1 << 12, | 70 NFC = 1 << 12, |
| 72 PERMISSION_BROKER = 1 << 13, | 71 PERMISSION_BROKER = 1 << 13, |
| 73 POWER_MANAGER = 1 << 14, | 72 POWER_MANAGER = 1 << 14, |
| 74 SESSION_MANAGER = 1 << 15, | 73 SESSION_MANAGER = 1 << 15, |
| 75 SMS = 1 << 16, | 74 SMS = 1 << 16, |
| 76 SYSTEM_CLOCK = 1 << 17, | 75 SYSTEM_CLOCK = 1 << 17, |
| 77 UPDATE_ENGINE = 1 << 18, | 76 UPDATE_ENGINE = 1 << 18, |
| 78 PEER_DAEMON = 1 << 19, | 77 PEER_DAEMON = 1 << 19, |
| 79 AP_MANAGER = 1 << 20, | 78 AP_MANAGER = 1 << 20, |
| 80 PRIVET_DAEMON = 1 << 21, | 79 ARC_OBB_MOUNTER = 1 << 21, |
| 81 ARC_OBB_MOUNTER = 1 << 22, | |
| 82 }; | 80 }; |
| 83 | 81 |
| 84 explicit DBusClientBundle(DBusClientTypeMask unstub_client_mask); | 82 explicit DBusClientBundle(DBusClientTypeMask unstub_client_mask); |
| 85 ~DBusClientBundle(); | 83 ~DBusClientBundle(); |
| 86 | 84 |
| 87 // Returns true if |client| is stubbed. | 85 // Returns true if |client| is stubbed. |
| 88 bool IsUsingStub(DBusClientType client); | 86 bool IsUsingStub(DBusClientType client); |
| 89 | 87 |
| 90 // Returns true if any real DBusClient is used. | 88 // Returns true if any real DBusClient is used. |
| 91 bool IsUsingAnyRealClient(); | 89 bool IsUsingAnyRealClient(); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 } | 186 } |
| 189 | 187 |
| 190 PeerDaemonManagerClient* peer_daemon_manager_client() { | 188 PeerDaemonManagerClient* peer_daemon_manager_client() { |
| 191 return peer_daemon_manager_client_.get(); | 189 return peer_daemon_manager_client_.get(); |
| 192 } | 190 } |
| 193 | 191 |
| 194 PermissionBrokerClient* permission_broker_client() { | 192 PermissionBrokerClient* permission_broker_client() { |
| 195 return permission_broker_client_.get(); | 193 return permission_broker_client_.get(); |
| 196 } | 194 } |
| 197 | 195 |
| 198 PrivetDaemonManagerClient* privet_daemon_manager_client() { | |
| 199 return privet_daemon_manager_client_.get(); | |
| 200 } | |
| 201 | |
| 202 SystemClockClient* system_clock_client() { | 196 SystemClockClient* system_clock_client() { |
| 203 return system_clock_client_.get(); | 197 return system_clock_client_.get(); |
| 204 } | 198 } |
| 205 | 199 |
| 206 PowerManagerClient* power_manager_client() { | 200 PowerManagerClient* power_manager_client() { |
| 207 return power_manager_client_.get(); | 201 return power_manager_client_.get(); |
| 208 } | 202 } |
| 209 | 203 |
| 210 SessionManagerClient* session_manager_client() { | 204 SessionManagerClient* session_manager_client() { |
| 211 return session_manager_client_.get(); | 205 return session_manager_client_.get(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 228 | 222 |
| 229 std::unique_ptr<ApManagerClient> ap_manager_client_; | 223 std::unique_ptr<ApManagerClient> ap_manager_client_; |
| 230 std::unique_ptr<ArcObbMounterClient> arc_obb_mounter_client_; | 224 std::unique_ptr<ArcObbMounterClient> arc_obb_mounter_client_; |
| 231 std::unique_ptr<CrasAudioClient> cras_audio_client_; | 225 std::unique_ptr<CrasAudioClient> cras_audio_client_; |
| 232 std::unique_ptr<CrosDisksClient> cros_disks_client_; | 226 std::unique_ptr<CrosDisksClient> cros_disks_client_; |
| 233 std::unique_ptr<CryptohomeClient> cryptohome_client_; | 227 std::unique_ptr<CryptohomeClient> cryptohome_client_; |
| 234 std::unique_ptr<DebugDaemonClient> debug_daemon_client_; | 228 std::unique_ptr<DebugDaemonClient> debug_daemon_client_; |
| 235 std::unique_ptr<EasyUnlockClient> easy_unlock_client_; | 229 std::unique_ptr<EasyUnlockClient> easy_unlock_client_; |
| 236 std::unique_ptr<LorgnetteManagerClient> lorgnette_manager_client_; | 230 std::unique_ptr<LorgnetteManagerClient> lorgnette_manager_client_; |
| 237 std::unique_ptr<PeerDaemonManagerClient> peer_daemon_manager_client_; | 231 std::unique_ptr<PeerDaemonManagerClient> peer_daemon_manager_client_; |
| 238 std::unique_ptr<PrivetDaemonManagerClient> privet_daemon_manager_client_; | |
| 239 std::unique_ptr<ShillDeviceClient> shill_device_client_; | 232 std::unique_ptr<ShillDeviceClient> shill_device_client_; |
| 240 std::unique_ptr<ShillIPConfigClient> shill_ipconfig_client_; | 233 std::unique_ptr<ShillIPConfigClient> shill_ipconfig_client_; |
| 241 std::unique_ptr<ShillManagerClient> shill_manager_client_; | 234 std::unique_ptr<ShillManagerClient> shill_manager_client_; |
| 242 std::unique_ptr<ShillServiceClient> shill_service_client_; | 235 std::unique_ptr<ShillServiceClient> shill_service_client_; |
| 243 std::unique_ptr<ShillProfileClient> shill_profile_client_; | 236 std::unique_ptr<ShillProfileClient> shill_profile_client_; |
| 244 std::unique_ptr<ShillThirdPartyVpnDriverClient> | 237 std::unique_ptr<ShillThirdPartyVpnDriverClient> |
| 245 shill_third_party_vpn_driver_client_; | 238 shill_third_party_vpn_driver_client_; |
| 246 std::unique_ptr<GsmSMSClient> gsm_sms_client_; | 239 std::unique_ptr<GsmSMSClient> gsm_sms_client_; |
| 247 std::unique_ptr<ImageBurnerClient> image_burner_client_; | 240 std::unique_ptr<ImageBurnerClient> image_burner_client_; |
| 248 std::unique_ptr<IntrospectableClient> introspectable_client_; | 241 std::unique_ptr<IntrospectableClient> introspectable_client_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 260 std::unique_ptr<SessionManagerClient> session_manager_client_; | 253 std::unique_ptr<SessionManagerClient> session_manager_client_; |
| 261 std::unique_ptr<SMSClient> sms_client_; | 254 std::unique_ptr<SMSClient> sms_client_; |
| 262 std::unique_ptr<UpdateEngineClient> update_engine_client_; | 255 std::unique_ptr<UpdateEngineClient> update_engine_client_; |
| 263 | 256 |
| 264 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); | 257 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); |
| 265 }; | 258 }; |
| 266 | 259 |
| 267 } // namespace chromeos | 260 } // namespace chromeos |
| 268 | 261 |
| 269 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ | 262 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
| OLD | NEW |