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