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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 class FlimflamIPConfigClient; | 36 class FlimflamIPConfigClient; |
37 class FlimflamManagerClient; | 37 class FlimflamManagerClient; |
38 class FlimflamNetworkClient; | 38 class FlimflamNetworkClient; |
39 class FlimflamProfileClient; | 39 class FlimflamProfileClient; |
40 class FlimflamServiceClient; | 40 class FlimflamServiceClient; |
41 class GsmSMSClient; | 41 class GsmSMSClient; |
42 class IBusClient; | 42 class IBusClient; |
43 class IBusInputContextClient; | 43 class IBusInputContextClient; |
44 class ImageBurnerClient; | 44 class ImageBurnerClient; |
45 class IntrospectableClient; | 45 class IntrospectableClient; |
| 46 class ModemMessagingClient; |
46 class PowerManagerClient; | 47 class PowerManagerClient; |
47 class SessionManagerClient; | 48 class SessionManagerClient; |
| 49 class SMSClient; |
48 class SpeechSynthesizerClient; | 50 class SpeechSynthesizerClient; |
49 class UpdateEngineClient; | 51 class UpdateEngineClient; |
50 | 52 |
51 // DBusThreadManager manages the D-Bus thread, the thread dedicated to | 53 // DBusThreadManager manages the D-Bus thread, the thread dedicated to |
52 // handling asynchronous D-Bus operations. | 54 // handling asynchronous D-Bus operations. |
53 // | 55 // |
54 // This class also manages D-Bus connections and D-Bus clients, which | 56 // This class also manages D-Bus connections and D-Bus clients, which |
55 // depend on the D-Bus thread to ensure the right order of shutdowns for | 57 // depend on the D-Bus thread to ensure the right order of shutdowns for |
56 // the D-Bus thread, the D-Bus connections, and the D-Bus clients. | 58 // the D-Bus thread, the D-Bus connections, and the D-Bus clients. |
57 // | 59 // |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // Returns the image burner client, owned by DBusThreadManager. | 184 // Returns the image burner client, owned by DBusThreadManager. |
183 // Do not cache this pointer and use it after DBusThreadManger is shut | 185 // Do not cache this pointer and use it after DBusThreadManger is shut |
184 // down. | 186 // down. |
185 virtual ImageBurnerClient* GetImageBurnerClient() = 0; | 187 virtual ImageBurnerClient* GetImageBurnerClient() = 0; |
186 | 188 |
187 // Returns the introspectable object client, owned by DBusThreadManager. | 189 // Returns the introspectable object client, owned by DBusThreadManager. |
188 // Do not cache this pointer and use it after DBusThreadManger is shut | 190 // Do not cache this pointer and use it after DBusThreadManger is shut |
189 // down. | 191 // down. |
190 virtual IntrospectableClient* GetIntrospectableClient() = 0; | 192 virtual IntrospectableClient* GetIntrospectableClient() = 0; |
191 | 193 |
| 194 // Returns the Modem Messaging client, owned by DBusThreadManager. |
| 195 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 196 // down. |
| 197 virtual ModemMessagingClient* GetModemMessagingClient() = 0; |
| 198 |
192 // Returns the power manager client, owned by DBusThreadManager. | 199 // Returns the power manager client, owned by DBusThreadManager. |
193 // See also comments at session_manager_client(). | 200 // See also comments at session_manager_client(). |
194 virtual PowerManagerClient* GetPowerManagerClient() = 0; | 201 virtual PowerManagerClient* GetPowerManagerClient() = 0; |
195 | 202 |
196 // Returns the session manager client, owned by DBusThreadManager. | 203 // Returns the session manager client, owned by DBusThreadManager. |
197 // Do not cache this pointer and use it after DBusThreadManager is shut | 204 // Do not cache this pointer and use it after DBusThreadManager is shut |
198 // down. | 205 // down. |
199 virtual SessionManagerClient* GetSessionManagerClient() = 0; | 206 virtual SessionManagerClient* GetSessionManagerClient() = 0; |
200 | 207 |
| 208 // Returns the SMS client, owned by DBusThreadManager. |
| 209 // Do not cache this pointer and use it after DBusThreadManager is shut |
| 210 // down. |
| 211 virtual SMSClient* GetSMSClient() = 0; |
| 212 |
201 // Returns the speech synthesizer client, owned by DBusThreadManager. | 213 // Returns the speech synthesizer client, owned by DBusThreadManager. |
202 // Do not cache this pointer and use it after DBusThreadManager is shut | 214 // Do not cache this pointer and use it after DBusThreadManager is shut |
203 // down. | 215 // down. |
204 virtual SpeechSynthesizerClient* GetSpeechSynthesizerClient() = 0; | 216 virtual SpeechSynthesizerClient* GetSpeechSynthesizerClient() = 0; |
205 | 217 |
206 // Returns the update engine client, owned by DBusThreadManager. Do not | 218 // Returns the update engine client, owned by DBusThreadManager. Do not |
207 // cache this pointer and use it after DBusThreadManager is shut down. | 219 // cache this pointer and use it after DBusThreadManager is shut down. |
208 virtual UpdateEngineClient* GetUpdateEngineClient() = 0; | 220 virtual UpdateEngineClient* GetUpdateEngineClient() = 0; |
209 | 221 |
210 // Returns the ibus client, owned by DBusThreadManager. Do not cache this | 222 // Returns the ibus client, owned by DBusThreadManager. Do not cache this |
211 // pointer and use it after DBusThreadManager is shut down. | 223 // pointer and use it after DBusThreadManager is shut down. |
212 virtual IBusClient* GetIBusClient() = 0; | 224 virtual IBusClient* GetIBusClient() = 0; |
213 | 225 |
214 // Returns the ibus input context client, owned by DBusThreadManager. Do not | 226 // Returns the ibus input context client, owned by DBusThreadManager. Do not |
215 // cache this pointer and use it after DBusThreadManager is shut down. | 227 // cache this pointer and use it after DBusThreadManager is shut down. |
216 virtual IBusInputContextClient* GetIBusInputContextClient() = 0; | 228 virtual IBusInputContextClient* GetIBusInputContextClient() = 0; |
217 | 229 |
218 virtual ~DBusThreadManager(); | 230 virtual ~DBusThreadManager(); |
219 | 231 |
220 protected: | 232 protected: |
221 DBusThreadManager(); | 233 DBusThreadManager(); |
222 | 234 |
223 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); | 235 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); |
224 }; | 236 }; |
225 | 237 |
226 } // namespace chromeos | 238 } // namespace chromeos |
227 | 239 |
228 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 240 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
OLD | NEW |