| 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 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "chromeos/chromeos_export.h" | 14 #include "chromeos/chromeos_export.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class Thread; | 17 class Thread; |
| 18 } // namespace base | 18 } // namespace base |
| 19 | 19 |
| 20 namespace dbus { | 20 namespace dbus { |
| 21 class Bus; | 21 class Bus; |
| 22 class ObjectPath; | 22 class ObjectPath; |
| 23 } // namespace dbus | 23 } // namespace dbus |
| 24 | 24 |
| 25 namespace chromeos { | 25 namespace chromeos { |
| 26 | 26 |
| 27 // Style Note: Clients are sorted by names. | 27 // Style Note: Clients are sorted by names. |
| 28 class ArcObbMounterClient; | 28 class ArcObbMounterClient; |
| 29 class AuthPolicyClient; |
| 29 class CrasAudioClient; | 30 class CrasAudioClient; |
| 30 class CrosDisksClient; | 31 class CrosDisksClient; |
| 31 class CryptohomeClient; | 32 class CryptohomeClient; |
| 32 class DBusClientsBrowser; | 33 class DBusClientsBrowser; |
| 33 class DBusClientsCommon; | 34 class DBusClientsCommon; |
| 34 class DBusThreadManagerSetter; | 35 class DBusThreadManagerSetter; |
| 35 class DebugDaemonClient; | 36 class DebugDaemonClient; |
| 36 class EasyUnlockClient; | 37 class EasyUnlockClient; |
| 37 class GsmSMSClient; | 38 class GsmSMSClient; |
| 38 class ImageBurnerClient; | 39 class ImageBurnerClient; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 bool IsUsingFakes(); | 111 bool IsUsingFakes(); |
| 111 | 112 |
| 112 // Returns various D-Bus bus instances, owned by DBusThreadManager. | 113 // Returns various D-Bus bus instances, owned by DBusThreadManager. |
| 113 dbus::Bus* GetSystemBus(); | 114 dbus::Bus* GetSystemBus(); |
| 114 | 115 |
| 115 // All returned objects are owned by DBusThreadManager. Do not use these | 116 // All returned objects are owned by DBusThreadManager. Do not use these |
| 116 // pointers after DBusThreadManager has been shut down. | 117 // pointers after DBusThreadManager has been shut down. |
| 117 // TODO(jamescook): Replace this with calls to FooClient::Get(). | 118 // TODO(jamescook): Replace this with calls to FooClient::Get(). |
| 118 // http://crbug.com/647367 | 119 // http://crbug.com/647367 |
| 119 ArcObbMounterClient* GetArcObbMounterClient(); | 120 ArcObbMounterClient* GetArcObbMounterClient(); |
| 121 AuthPolicyClient* GetAuthPolicyClient(); |
| 120 CrasAudioClient* GetCrasAudioClient(); | 122 CrasAudioClient* GetCrasAudioClient(); |
| 121 CrosDisksClient* GetCrosDisksClient(); | 123 CrosDisksClient* GetCrosDisksClient(); |
| 122 CryptohomeClient* GetCryptohomeClient(); | 124 CryptohomeClient* GetCryptohomeClient(); |
| 123 DebugDaemonClient* GetDebugDaemonClient(); | 125 DebugDaemonClient* GetDebugDaemonClient(); |
| 124 EasyUnlockClient* GetEasyUnlockClient(); | 126 EasyUnlockClient* GetEasyUnlockClient(); |
| 125 GsmSMSClient* GetGsmSMSClient(); | 127 GsmSMSClient* GetGsmSMSClient(); |
| 126 ImageBurnerClient* GetImageBurnerClient(); | 128 ImageBurnerClient* GetImageBurnerClient(); |
| 127 LorgnetteManagerClient* GetLorgnetteManagerClient(); | 129 LorgnetteManagerClient* GetLorgnetteManagerClient(); |
| 128 ModemMessagingClient* GetModemMessagingClient(); | 130 ModemMessagingClient* GetModemMessagingClient(); |
| 129 PermissionBrokerClient* GetPermissionBrokerClient(); | 131 PermissionBrokerClient* GetPermissionBrokerClient(); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 friend class DBusThreadManager; | 195 friend class DBusThreadManager; |
| 194 | 196 |
| 195 DBusThreadManagerSetter(); | 197 DBusThreadManagerSetter(); |
| 196 | 198 |
| 197 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); | 199 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); |
| 198 }; | 200 }; |
| 199 | 201 |
| 200 } // namespace chromeos | 202 } // namespace chromeos |
| 201 | 203 |
| 202 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 204 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
| OLD | NEW |