| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_THREAD_MANAGER_H_ | 5 #ifndef CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
| 6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 6 #define CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class ObjectPath; | 23 class ObjectPath; |
| 24 } // namespace dbus | 24 } // namespace dbus |
| 25 | 25 |
| 26 namespace chromeos { | 26 namespace chromeos { |
| 27 | 27 |
| 28 // Style Note: Clients are sorted by names. | 28 // Style Note: Clients are sorted by names. |
| 29 class ArcObbMounterClient; | 29 class ArcObbMounterClient; |
| 30 class CrasAudioClient; | 30 class CrasAudioClient; |
| 31 class CrosDisksClient; | 31 class CrosDisksClient; |
| 32 class CryptohomeClient; | 32 class CryptohomeClient; |
| 33 class CupsClient; |
| 33 class DBusThreadManagerSetter; | 34 class DBusThreadManagerSetter; |
| 34 class DebugDaemonClient; | 35 class DebugDaemonClient; |
| 35 class EasyUnlockClient; | 36 class EasyUnlockClient; |
| 36 class GsmSMSClient; | 37 class GsmSMSClient; |
| 37 class ImageBurnerClient; | 38 class ImageBurnerClient; |
| 38 class LorgnetteManagerClient; | 39 class LorgnetteManagerClient; |
| 39 class ModemMessagingClient; | 40 class ModemMessagingClient; |
| 40 class PermissionBrokerClient; | 41 class PermissionBrokerClient; |
| 41 class PowerManagerClient; | 42 class PowerManagerClient; |
| 42 class SMSClient; | 43 class SMSClient; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 98 |
| 98 // Returns various D-Bus bus instances, owned by DBusThreadManager. | 99 // Returns various D-Bus bus instances, owned by DBusThreadManager. |
| 99 dbus::Bus* GetSystemBus(); | 100 dbus::Bus* GetSystemBus(); |
| 100 | 101 |
| 101 // All returned objects are owned by DBusThreadManager. Do not use these | 102 // All returned objects are owned by DBusThreadManager. Do not use these |
| 102 // pointers after DBusThreadManager has been shut down. | 103 // pointers after DBusThreadManager has been shut down. |
| 103 ArcObbMounterClient* GetArcObbMounterClient(); | 104 ArcObbMounterClient* GetArcObbMounterClient(); |
| 104 CrasAudioClient* GetCrasAudioClient(); | 105 CrasAudioClient* GetCrasAudioClient(); |
| 105 CrosDisksClient* GetCrosDisksClient(); | 106 CrosDisksClient* GetCrosDisksClient(); |
| 106 CryptohomeClient* GetCryptohomeClient(); | 107 CryptohomeClient* GetCryptohomeClient(); |
| 108 CupsClient* GetCupsClient(); |
| 107 DebugDaemonClient* GetDebugDaemonClient(); | 109 DebugDaemonClient* GetDebugDaemonClient(); |
| 108 EasyUnlockClient* GetEasyUnlockClient(); | 110 EasyUnlockClient* GetEasyUnlockClient(); |
| 109 GsmSMSClient* GetGsmSMSClient(); | 111 GsmSMSClient* GetGsmSMSClient(); |
| 110 ImageBurnerClient* GetImageBurnerClient(); | 112 ImageBurnerClient* GetImageBurnerClient(); |
| 111 LorgnetteManagerClient* GetLorgnetteManagerClient(); | 113 LorgnetteManagerClient* GetLorgnetteManagerClient(); |
| 112 ModemMessagingClient* GetModemMessagingClient(); | 114 ModemMessagingClient* GetModemMessagingClient(); |
| 113 PermissionBrokerClient* GetPermissionBrokerClient(); | 115 PermissionBrokerClient* GetPermissionBrokerClient(); |
| 114 PowerManagerClient* GetPowerManagerClient(); | 116 PowerManagerClient* GetPowerManagerClient(); |
| 115 SessionManagerClient* GetSessionManagerClient(); | 117 SessionManagerClient* GetSessionManagerClient(); |
| 116 ShillDeviceClient* GetShillDeviceClient(); | 118 ShillDeviceClient* GetShillDeviceClient(); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); | 163 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); |
| 162 }; | 164 }; |
| 163 | 165 |
| 164 class CHROMEOS_EXPORT DBusThreadManagerSetter { | 166 class CHROMEOS_EXPORT DBusThreadManagerSetter { |
| 165 public: | 167 public: |
| 166 ~DBusThreadManagerSetter(); | 168 ~DBusThreadManagerSetter(); |
| 167 | 169 |
| 168 void SetCrasAudioClient(std::unique_ptr<CrasAudioClient> client); | 170 void SetCrasAudioClient(std::unique_ptr<CrasAudioClient> client); |
| 169 void SetCrosDisksClient(std::unique_ptr<CrosDisksClient> client); | 171 void SetCrosDisksClient(std::unique_ptr<CrosDisksClient> client); |
| 170 void SetCryptohomeClient(std::unique_ptr<CryptohomeClient> client); | 172 void SetCryptohomeClient(std::unique_ptr<CryptohomeClient> client); |
| 173 void SetCupsClient(std::unique_ptr<CupsClient> client); |
| 171 void SetDebugDaemonClient(std::unique_ptr<DebugDaemonClient> client); | 174 void SetDebugDaemonClient(std::unique_ptr<DebugDaemonClient> client); |
| 172 void SetEasyUnlockClient(std::unique_ptr<EasyUnlockClient> client); | 175 void SetEasyUnlockClient(std::unique_ptr<EasyUnlockClient> client); |
| 173 void SetLorgnetteManagerClient( | 176 void SetLorgnetteManagerClient( |
| 174 std::unique_ptr<LorgnetteManagerClient> client); | 177 std::unique_ptr<LorgnetteManagerClient> client); |
| 175 void SetShillDeviceClient(std::unique_ptr<ShillDeviceClient> client); | 178 void SetShillDeviceClient(std::unique_ptr<ShillDeviceClient> client); |
| 176 void SetShillIPConfigClient(std::unique_ptr<ShillIPConfigClient> client); | 179 void SetShillIPConfigClient(std::unique_ptr<ShillIPConfigClient> client); |
| 177 void SetShillManagerClient(std::unique_ptr<ShillManagerClient> client); | 180 void SetShillManagerClient(std::unique_ptr<ShillManagerClient> client); |
| 178 void SetShillServiceClient(std::unique_ptr<ShillServiceClient> client); | 181 void SetShillServiceClient(std::unique_ptr<ShillServiceClient> client); |
| 179 void SetShillProfileClient(std::unique_ptr<ShillProfileClient> client); | 182 void SetShillProfileClient(std::unique_ptr<ShillProfileClient> client); |
| 180 void SetShillThirdPartyVpnDriverClient( | 183 void SetShillThirdPartyVpnDriverClient( |
| (...skipping 13 matching lines...) Expand all Loading... |
| 194 friend class DBusThreadManager; | 197 friend class DBusThreadManager; |
| 195 | 198 |
| 196 DBusThreadManagerSetter(); | 199 DBusThreadManagerSetter(); |
| 197 | 200 |
| 198 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); | 201 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); |
| 199 }; | 202 }; |
| 200 | 203 |
| 201 } // namespace chromeos | 204 } // namespace chromeos |
| 202 | 205 |
| 203 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 206 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
| OLD | NEW |