| 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 ImageBurnerClient; | 32 class ImageBurnerClient; |
| 32 class IntrospectableClient; | 33 class IntrospectableClient; |
| 33 class PowerManagerClient; | 34 class PowerManagerClient; |
| 34 class SessionManagerClient; | 35 class SessionManagerClient; |
| 35 class SpeechSynthesizerClient; | 36 class SpeechSynthesizerClient; |
| 36 class UpdateEngineClient; | 37 class UpdateEngineClient; |
| 37 | 38 |
| 38 // DBusThreadManager manages the D-Bus thread, the thread dedicated to | 39 // DBusThreadManager manages the D-Bus thread, the thread dedicated to |
| 39 // handling asynchronous D-Bus operations. | 40 // handling asynchronous D-Bus operations. |
| 40 // | 41 // |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Returns the cros-disks client, owned by DBusThreadManager. | 109 // Returns the cros-disks client, owned by DBusThreadManager. |
| 109 // Do not cache this pointer and use it after DBusThreadManager is shut | 110 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 110 // down. | 111 // down. |
| 111 virtual CrosDisksClient* GetCrosDisksClient() = 0; | 112 virtual CrosDisksClient* GetCrosDisksClient() = 0; |
| 112 | 113 |
| 113 // Returns the Cryptohome client, owned by DBusThreadManager. | 114 // Returns the Cryptohome client, owned by DBusThreadManager. |
| 114 // Do not cache this pointer and use it after DBusThreadManager is shut | 115 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 115 // down. | 116 // down. |
| 116 virtual CryptohomeClient* GetCryptohomeClient() = 0; | 117 virtual CryptohomeClient* GetCryptohomeClient() = 0; |
| 117 | 118 |
| 119 // Returns the Flimflam IPConfig client, owned by DBusThreadManager. |
| 120 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 121 // down. |
| 122 virtual FlimflamIPConfigClient* GetFlimflamIPConfigClient() = 0; |
| 123 |
| 118 // Returns the image burner client, owned by DBusThreadManager. | 124 // Returns the image burner client, owned by DBusThreadManager. |
| 119 // Do not cache this pointer and use it after DBusThreadManger is shut | 125 // Do not cache this pointer and use it after DBusThreadManger is shut |
| 120 // down. | 126 // down. |
| 121 virtual ImageBurnerClient* GetImageBurnerClient() = 0; | 127 virtual ImageBurnerClient* GetImageBurnerClient() = 0; |
| 122 | 128 |
| 123 // Returns the introspectable object client, owned by DBusThreadManager. | 129 // Returns the introspectable object client, owned by DBusThreadManager. |
| 124 // Do not cache this pointer and use it after DBusThreadManger is shut | 130 // Do not cache this pointer and use it after DBusThreadManger is shut |
| 125 // down. | 131 // down. |
| 126 virtual IntrospectableClient* GetIntrospectableClient() = 0; | 132 virtual IntrospectableClient* GetIntrospectableClient() = 0; |
| 127 | 133 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 147 | 153 |
| 148 protected: | 154 protected: |
| 149 DBusThreadManager(); | 155 DBusThreadManager(); |
| 150 | 156 |
| 151 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); | 157 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); |
| 152 }; | 158 }; |
| 153 | 159 |
| 154 } // namespace chromeos | 160 } // namespace chromeos |
| 155 | 161 |
| 156 #endif // CHROME_BROWSER_CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 162 #endif // CHROME_BROWSER_CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
| OLD | NEW |