| 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 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 class SMSClient; | 45 class SMSClient; |
| 46 class SessionManagerClient; | 46 class SessionManagerClient; |
| 47 class ShillDeviceClient; | 47 class ShillDeviceClient; |
| 48 class ShillIPConfigClient; | 48 class ShillIPConfigClient; |
| 49 class ShillManagerClient; | 49 class ShillManagerClient; |
| 50 class ShillProfileClient; | 50 class ShillProfileClient; |
| 51 class ShillServiceClient; | 51 class ShillServiceClient; |
| 52 class ShillThirdPartyVpnDriverClient; | 52 class ShillThirdPartyVpnDriverClient; |
| 53 class SystemClockClient; | 53 class SystemClockClient; |
| 54 class UpdateEngineClient; | 54 class UpdateEngineClient; |
| 55 class UpstartClient; |
| 55 | 56 |
| 56 // DBusThreadManager manages the D-Bus thread, the thread dedicated to | 57 // DBusThreadManager manages the D-Bus thread, the thread dedicated to |
| 57 // handling asynchronous D-Bus operations. | 58 // handling asynchronous D-Bus operations. |
| 58 // | 59 // |
| 59 // This class also manages D-Bus connections and D-Bus clients, which | 60 // This class also manages D-Bus connections and D-Bus clients, which |
| 60 // depend on the D-Bus thread to ensure the right order of shutdowns for | 61 // depend on the D-Bus thread to ensure the right order of shutdowns for |
| 61 // the D-Bus thread, the D-Bus connections, and the D-Bus clients. | 62 // the D-Bus thread, the D-Bus connections, and the D-Bus clients. |
| 62 // | 63 // |
| 63 // CALLBACKS IN D-BUS CLIENTS: | 64 // CALLBACKS IN D-BUS CLIENTS: |
| 64 // | 65 // |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 SessionManagerClient* GetSessionManagerClient(); | 136 SessionManagerClient* GetSessionManagerClient(); |
| 136 ShillDeviceClient* GetShillDeviceClient(); | 137 ShillDeviceClient* GetShillDeviceClient(); |
| 137 ShillIPConfigClient* GetShillIPConfigClient(); | 138 ShillIPConfigClient* GetShillIPConfigClient(); |
| 138 ShillManagerClient* GetShillManagerClient(); | 139 ShillManagerClient* GetShillManagerClient(); |
| 139 ShillServiceClient* GetShillServiceClient(); | 140 ShillServiceClient* GetShillServiceClient(); |
| 140 ShillProfileClient* GetShillProfileClient(); | 141 ShillProfileClient* GetShillProfileClient(); |
| 141 ShillThirdPartyVpnDriverClient* GetShillThirdPartyVpnDriverClient(); | 142 ShillThirdPartyVpnDriverClient* GetShillThirdPartyVpnDriverClient(); |
| 142 SMSClient* GetSMSClient(); | 143 SMSClient* GetSMSClient(); |
| 143 SystemClockClient* GetSystemClockClient(); | 144 SystemClockClient* GetSystemClockClient(); |
| 144 UpdateEngineClient* GetUpdateEngineClient(); | 145 UpdateEngineClient* GetUpdateEngineClient(); |
| 146 UpstartClient* GetUpstartClient(); |
| 145 | 147 |
| 146 private: | 148 private: |
| 147 friend class DBusThreadManagerSetter; | 149 friend class DBusThreadManagerSetter; |
| 148 | 150 |
| 149 // Creates dbus clients for all process types in |process_mask|. Creates real | 151 // Creates dbus clients for all process types in |process_mask|. Creates real |
| 150 // clients if |use_real_clients| is set, otherwise creates fakes. | 152 // clients if |use_real_clients| is set, otherwise creates fakes. |
| 151 DBusThreadManager(ProcessMask process_mask, bool use_real_clients); | 153 DBusThreadManager(ProcessMask process_mask, bool use_real_clients); |
| 152 ~DBusThreadManager(); | 154 ~DBusThreadManager(); |
| 153 | 155 |
| 154 // Initializes all currently stored DBusClients with the system bus and | 156 // Initializes all currently stored DBusClients with the system bus and |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 friend class DBusThreadManager; | 200 friend class DBusThreadManager; |
| 199 | 201 |
| 200 DBusThreadManagerSetter(); | 202 DBusThreadManagerSetter(); |
| 201 | 203 |
| 202 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); | 204 DISALLOW_COPY_AND_ASSIGN(DBusThreadManagerSetter); |
| 203 }; | 205 }; |
| 204 | 206 |
| 205 } // namespace chromeos | 207 } // namespace chromeos |
| 206 | 208 |
| 207 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 209 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
| OLD | NEW |