| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // Destroys the global instance. | 78 // Destroys the global instance. |
| 79 static void Shutdown(); | 79 static void Shutdown(); |
| 80 | 80 |
| 81 // Gets the global instance. Initialize() must be called first. | 81 // Gets the global instance. Initialize() must be called first. |
| 82 static DBusThreadManager* Get(); | 82 static DBusThreadManager* Get(); |
| 83 | 83 |
| 84 // Returns the D-Bus system bus instance, owned by DBusThreadManager. | 84 // Returns the D-Bus system bus instance, owned by DBusThreadManager. |
| 85 virtual dbus::Bus* GetSystemBus() = 0; | 85 virtual dbus::Bus* GetSystemBus() = 0; |
| 86 | 86 |
| 87 // Returns the IBus bus instance, owned by DBusThreadManager. |
| 88 virtual dbus::Bus* GetIBusBus() = 0; |
| 89 |
| 87 // Returns the bluetooth adapter client, owned by DBusThreadManager. | 90 // Returns the bluetooth adapter client, owned by DBusThreadManager. |
| 88 // Do not cache this pointer and use it after DBusThreadManager is shut | 91 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 89 // down. | 92 // down. |
| 90 virtual BluetoothAdapterClient* GetBluetoothAdapterClient() = 0; | 93 virtual BluetoothAdapterClient* GetBluetoothAdapterClient() = 0; |
| 91 | 94 |
| 92 // Returns the bluetooth device client, owned by DBusThreadManager. | 95 // Returns the bluetooth device client, owned by DBusThreadManager. |
| 93 // Do not cache this pointer and use it after DBusThreadManager is shut | 96 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 94 // down. | 97 // down. |
| 95 virtual BluetoothDeviceClient* GetBluetoothDeviceClient() = 0; | 98 virtual BluetoothDeviceClient* GetBluetoothDeviceClient() = 0; |
| 96 | 99 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 199 |
| 197 protected: | 200 protected: |
| 198 DBusThreadManager(); | 201 DBusThreadManager(); |
| 199 | 202 |
| 200 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); | 203 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); |
| 201 }; | 204 }; |
| 202 | 205 |
| 203 } // namespace chromeos | 206 } // namespace chromeos |
| 204 | 207 |
| 205 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 208 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
| OLD | NEW |