| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class Thread; | 13 class Thread; |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 namespace dbus { | 16 namespace dbus { |
| 17 class Bus; | 17 class Bus; |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 namespace chromeos { | 20 namespace chromeos { |
| 21 | 21 |
| 22 class BluetoothAdapterClient; | 22 class BluetoothAdapterClient; |
| 23 class BluetoothManagerClient; | 23 class BluetoothManagerClient; |
| 24 class CrosDisksClient; |
| 24 class CrosDBusService; | 25 class CrosDBusService; |
| 25 class PowerManagerClient; | 26 class PowerManagerClient; |
| 26 class SessionManagerClient; | 27 class SessionManagerClient; |
| 27 class SensorsClient; | 28 class SensorsClient; |
| 28 class SpeechSynthesizerClient; | 29 class SpeechSynthesizerClient; |
| 29 | 30 |
| 30 // DBusThreadManager manages the D-Bus thread, the thread dedicated to | 31 // DBusThreadManager manages the D-Bus thread, the thread dedicated to |
| 31 // handling asynchronous D-Bus operations. | 32 // handling asynchronous D-Bus operations. |
| 32 // | 33 // |
| 33 // This class also manages D-Bus connections and D-Bus clients, which | 34 // This class also manages D-Bus connections and D-Bus clients, which |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // Returns the session manager client, owned by DBusThreadManager. | 90 // Returns the session manager client, owned by DBusThreadManager. |
| 90 // 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 |
| 91 // down. | 92 // down. |
| 92 virtual SessionManagerClient* GetSessionManagerClient() = 0; | 93 virtual SessionManagerClient* GetSessionManagerClient() = 0; |
| 93 | 94 |
| 94 // Returns the speech synthesizer client, owned by DBusThreadManager. | 95 // Returns the speech synthesizer client, owned by DBusThreadManager. |
| 95 // 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 |
| 96 // down. | 97 // down. |
| 97 virtual SpeechSynthesizerClient* GetSpeechSynthesizerClient() = 0; | 98 virtual SpeechSynthesizerClient* GetSpeechSynthesizerClient() = 0; |
| 98 | 99 |
| 100 // Returns the cros-disks client, owned by DBusThreadManager. |
| 101 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 102 // down. |
| 103 virtual CrosDisksClient* GetCrosDisksClient() = 0; |
| 104 |
| 99 virtual ~DBusThreadManager(); | 105 virtual ~DBusThreadManager(); |
| 100 | 106 |
| 101 protected: | 107 protected: |
| 102 DBusThreadManager(); | 108 DBusThreadManager(); |
| 103 | 109 |
| 104 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); | 110 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); |
| 105 }; | 111 }; |
| 106 | 112 |
| 107 } // namespace chromeos | 113 } // namespace chromeos |
| 108 | 114 |
| 109 #endif // CHROME_BROWSER_CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 115 #endif // CHROME_BROWSER_CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
| OLD | NEW |