| 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 CHROME_BROWSER_CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // Style Note: Clients are sorted by names. | 22 // Style Note: Clients are sorted by names. |
| 23 class BluetoothAdapterClient; | 23 class BluetoothAdapterClient; |
| 24 class BluetoothDeviceClient; | 24 class BluetoothDeviceClient; |
| 25 class BluetoothInputClient; | 25 class BluetoothInputClient; |
| 26 class BluetoothManagerClient; | 26 class BluetoothManagerClient; |
| 27 class BluetoothNodeClient; | 27 class BluetoothNodeClient; |
| 28 class CashewClient; | 28 class CashewClient; |
| 29 class CrosDisksClient; | 29 class CrosDisksClient; |
| 30 class CryptohomeClient; | 30 class CryptohomeClient; |
| 31 class FlimflamIPConfigClient; |
| 31 class FlimflamNetworkClient; | 32 class FlimflamNetworkClient; |
| 32 class ImageBurnerClient; | 33 class ImageBurnerClient; |
| 33 class IntrospectableClient; | 34 class IntrospectableClient; |
| 34 class PowerManagerClient; | 35 class PowerManagerClient; |
| 35 class SessionManagerClient; | 36 class SessionManagerClient; |
| 36 class SpeechSynthesizerClient; | 37 class SpeechSynthesizerClient; |
| 37 class UpdateEngineClient; | 38 class UpdateEngineClient; |
| 38 | 39 |
| 39 // DBusThreadManager manages the D-Bus thread, the thread dedicated to | 40 // DBusThreadManager manages the D-Bus thread, the thread dedicated to |
| 40 // handling asynchronous D-Bus operations. | 41 // handling asynchronous D-Bus operations. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // Returns the cros-disks client, owned by DBusThreadManager. | 110 // Returns the cros-disks client, owned by DBusThreadManager. |
| 110 // Do not cache this pointer and use it after DBusThreadManager is shut | 111 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 111 // down. | 112 // down. |
| 112 virtual CrosDisksClient* GetCrosDisksClient() = 0; | 113 virtual CrosDisksClient* GetCrosDisksClient() = 0; |
| 113 | 114 |
| 114 // Returns the Cryptohome client, owned by DBusThreadManager. | 115 // Returns the Cryptohome client, owned by DBusThreadManager. |
| 115 // Do not cache this pointer and use it after DBusThreadManager is shut | 116 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 116 // down. | 117 // down. |
| 117 virtual CryptohomeClient* GetCryptohomeClient() = 0; | 118 virtual CryptohomeClient* GetCryptohomeClient() = 0; |
| 118 | 119 |
| 120 // Returns the Flimflam IPConfig client, owned by DBusThreadManager. |
| 121 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 122 // down. |
| 123 virtual FlimflamIPConfigClient* GetFlimflamIPConfigClient() = 0; |
| 124 |
| 119 // Returns the Flimflam Network client, owned by DBusThreadManager. | 125 // Returns the Flimflam Network client, owned by DBusThreadManager. |
| 120 // Do not cache this pointer and use it after DBusThreadManager is shut | 126 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 121 // down. | 127 // down. |
| 122 virtual FlimflamNetworkClient* GetFlimflamNetworkClient() = 0; | 128 virtual FlimflamNetworkClient* GetFlimflamNetworkClient() = 0; |
| 123 | 129 |
| 124 // Returns the image burner client, owned by DBusThreadManager. | 130 // Returns the image burner client, owned by DBusThreadManager. |
| 125 // Do not cache this pointer and use it after DBusThreadManger is shut | 131 // Do not cache this pointer and use it after DBusThreadManger is shut |
| 126 // down. | 132 // down. |
| 127 virtual ImageBurnerClient* GetImageBurnerClient() = 0; | 133 virtual ImageBurnerClient* GetImageBurnerClient() = 0; |
| 128 | 134 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 153 | 159 |
| 154 protected: | 160 protected: |
| 155 DBusThreadManager(); | 161 DBusThreadManager(); |
| 156 | 162 |
| 157 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); | 163 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); |
| 158 }; | 164 }; |
| 159 | 165 |
| 160 } // namespace chromeos | 166 } // namespace chromeos |
| 161 | 167 |
| 162 #endif // CHROME_BROWSER_CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 168 #endif // CHROME_BROWSER_CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
| OLD | NEW |