| 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 11 matching lines...) Expand all Loading... |
| 22 class GsmSMSClient; | 22 class GsmSMSClient; |
| 23 class ImageBurnerClient; | 23 class ImageBurnerClient; |
| 24 class IntrospectableClient; | 24 class IntrospectableClient; |
| 25 class LorgnetteManagerClient; | 25 class LorgnetteManagerClient; |
| 26 class ModemMessagingClient; | 26 class ModemMessagingClient; |
| 27 class NfcAdapterClient; | 27 class NfcAdapterClient; |
| 28 class NfcDeviceClient; | 28 class NfcDeviceClient; |
| 29 class NfcManagerClient; | 29 class NfcManagerClient; |
| 30 class NfcRecordClient; | 30 class NfcRecordClient; |
| 31 class NfcTagClient; | 31 class NfcTagClient; |
| 32 class PeerDaemonManagerClient; | |
| 33 class PermissionBrokerClient; | 32 class PermissionBrokerClient; |
| 34 class PowerManagerClient; | 33 class PowerManagerClient; |
| 35 class SMSClient; | 34 class SMSClient; |
| 36 class SessionManagerClient; | 35 class SessionManagerClient; |
| 37 class ShillDeviceClient; | 36 class ShillDeviceClient; |
| 38 class ShillIPConfigClient; | 37 class ShillIPConfigClient; |
| 39 class ShillManagerClient; | 38 class ShillManagerClient; |
| 40 class ShillProfileClient; | 39 class ShillProfileClient; |
| 41 class ShillServiceClient; | 40 class ShillServiceClient; |
| 42 class ShillThirdPartyVpnDriverClient; | 41 class ShillThirdPartyVpnDriverClient; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 66 IMAGE_BURNER = 1 << 9, | 65 IMAGE_BURNER = 1 << 9, |
| 67 INTROSPECTABLE = 1 << 10, | 66 INTROSPECTABLE = 1 << 10, |
| 68 MODEM_MESSAGING = 1 << 11, | 67 MODEM_MESSAGING = 1 << 11, |
| 69 NFC = 1 << 12, | 68 NFC = 1 << 12, |
| 70 PERMISSION_BROKER = 1 << 13, | 69 PERMISSION_BROKER = 1 << 13, |
| 71 POWER_MANAGER = 1 << 14, | 70 POWER_MANAGER = 1 << 14, |
| 72 SESSION_MANAGER = 1 << 15, | 71 SESSION_MANAGER = 1 << 15, |
| 73 SMS = 1 << 16, | 72 SMS = 1 << 16, |
| 74 SYSTEM_CLOCK = 1 << 17, | 73 SYSTEM_CLOCK = 1 << 17, |
| 75 UPDATE_ENGINE = 1 << 18, | 74 UPDATE_ENGINE = 1 << 18, |
| 76 PEER_DAEMON = 1 << 19, | 75 ARC_OBB_MOUNTER = 1 << 19, |
| 77 ARC_OBB_MOUNTER = 1 << 20, | |
| 78 }; | 76 }; |
| 79 | 77 |
| 80 explicit DBusClientBundle(DBusClientTypeMask unstub_client_mask); | 78 explicit DBusClientBundle(DBusClientTypeMask unstub_client_mask); |
| 81 ~DBusClientBundle(); | 79 ~DBusClientBundle(); |
| 82 | 80 |
| 83 // Returns true if |client| is stubbed. | 81 // Returns true if |client| is stubbed. |
| 84 bool IsUsingStub(DBusClientType client); | 82 bool IsUsingStub(DBusClientType client); |
| 85 | 83 |
| 86 // Returns true if any real DBusClient is used. | 84 // Returns true if any real DBusClient is used. |
| 87 bool IsUsingAnyRealClient(); | 85 bool IsUsingAnyRealClient(); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 } | 172 } |
| 175 | 173 |
| 176 NfcTagClient* nfc_tag_client() { | 174 NfcTagClient* nfc_tag_client() { |
| 177 return nfc_tag_client_.get(); | 175 return nfc_tag_client_.get(); |
| 178 } | 176 } |
| 179 | 177 |
| 180 NfcRecordClient* nfc_record_client() { | 178 NfcRecordClient* nfc_record_client() { |
| 181 return nfc_record_client_.get(); | 179 return nfc_record_client_.get(); |
| 182 } | 180 } |
| 183 | 181 |
| 184 PeerDaemonManagerClient* peer_daemon_manager_client() { | |
| 185 return peer_daemon_manager_client_.get(); | |
| 186 } | |
| 187 | |
| 188 PermissionBrokerClient* permission_broker_client() { | 182 PermissionBrokerClient* permission_broker_client() { |
| 189 return permission_broker_client_.get(); | 183 return permission_broker_client_.get(); |
| 190 } | 184 } |
| 191 | 185 |
| 192 SystemClockClient* system_clock_client() { | 186 SystemClockClient* system_clock_client() { |
| 193 return system_clock_client_.get(); | 187 return system_clock_client_.get(); |
| 194 } | 188 } |
| 195 | 189 |
| 196 PowerManagerClient* power_manager_client() { | 190 PowerManagerClient* power_manager_client() { |
| 197 return power_manager_client_.get(); | 191 return power_manager_client_.get(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 216 // are defined within DBusClientType enum. | 210 // are defined within DBusClientType enum. |
| 217 DBusClientTypeMask unstub_client_mask_; | 211 DBusClientTypeMask unstub_client_mask_; |
| 218 | 212 |
| 219 std::unique_ptr<ArcObbMounterClient> arc_obb_mounter_client_; | 213 std::unique_ptr<ArcObbMounterClient> arc_obb_mounter_client_; |
| 220 std::unique_ptr<CrasAudioClient> cras_audio_client_; | 214 std::unique_ptr<CrasAudioClient> cras_audio_client_; |
| 221 std::unique_ptr<CrosDisksClient> cros_disks_client_; | 215 std::unique_ptr<CrosDisksClient> cros_disks_client_; |
| 222 std::unique_ptr<CryptohomeClient> cryptohome_client_; | 216 std::unique_ptr<CryptohomeClient> cryptohome_client_; |
| 223 std::unique_ptr<DebugDaemonClient> debug_daemon_client_; | 217 std::unique_ptr<DebugDaemonClient> debug_daemon_client_; |
| 224 std::unique_ptr<EasyUnlockClient> easy_unlock_client_; | 218 std::unique_ptr<EasyUnlockClient> easy_unlock_client_; |
| 225 std::unique_ptr<LorgnetteManagerClient> lorgnette_manager_client_; | 219 std::unique_ptr<LorgnetteManagerClient> lorgnette_manager_client_; |
| 226 std::unique_ptr<PeerDaemonManagerClient> peer_daemon_manager_client_; | |
| 227 std::unique_ptr<ShillDeviceClient> shill_device_client_; | 220 std::unique_ptr<ShillDeviceClient> shill_device_client_; |
| 228 std::unique_ptr<ShillIPConfigClient> shill_ipconfig_client_; | 221 std::unique_ptr<ShillIPConfigClient> shill_ipconfig_client_; |
| 229 std::unique_ptr<ShillManagerClient> shill_manager_client_; | 222 std::unique_ptr<ShillManagerClient> shill_manager_client_; |
| 230 std::unique_ptr<ShillServiceClient> shill_service_client_; | 223 std::unique_ptr<ShillServiceClient> shill_service_client_; |
| 231 std::unique_ptr<ShillProfileClient> shill_profile_client_; | 224 std::unique_ptr<ShillProfileClient> shill_profile_client_; |
| 232 std::unique_ptr<ShillThirdPartyVpnDriverClient> | 225 std::unique_ptr<ShillThirdPartyVpnDriverClient> |
| 233 shill_third_party_vpn_driver_client_; | 226 shill_third_party_vpn_driver_client_; |
| 234 std::unique_ptr<GsmSMSClient> gsm_sms_client_; | 227 std::unique_ptr<GsmSMSClient> gsm_sms_client_; |
| 235 std::unique_ptr<ImageBurnerClient> image_burner_client_; | 228 std::unique_ptr<ImageBurnerClient> image_burner_client_; |
| 236 std::unique_ptr<IntrospectableClient> introspectable_client_; | 229 std::unique_ptr<IntrospectableClient> introspectable_client_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 248 std::unique_ptr<SessionManagerClient> session_manager_client_; | 241 std::unique_ptr<SessionManagerClient> session_manager_client_; |
| 249 std::unique_ptr<SMSClient> sms_client_; | 242 std::unique_ptr<SMSClient> sms_client_; |
| 250 std::unique_ptr<UpdateEngineClient> update_engine_client_; | 243 std::unique_ptr<UpdateEngineClient> update_engine_client_; |
| 251 | 244 |
| 252 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); | 245 DISALLOW_COPY_AND_ASSIGN(DBusClientBundle); |
| 253 }; | 246 }; |
| 254 | 247 |
| 255 } // namespace chromeos | 248 } // namespace chromeos |
| 256 | 249 |
| 257 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ | 250 #endif // CHROMEOS_DBUS_DBUS_CLIENT_BUNDLE_H_ |
| OLD | NEW |