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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 virtual SessionManagerClient* GetSessionManagerClient() = 0; | 143 virtual SessionManagerClient* GetSessionManagerClient() = 0; |
144 virtual ShillDeviceClient* GetShillDeviceClient() = 0; | 144 virtual ShillDeviceClient* GetShillDeviceClient() = 0; |
145 virtual ShillIPConfigClient* GetShillIPConfigClient() = 0; | 145 virtual ShillIPConfigClient* GetShillIPConfigClient() = 0; |
146 virtual ShillManagerClient* GetShillManagerClient() = 0; | 146 virtual ShillManagerClient* GetShillManagerClient() = 0; |
147 virtual ShillServiceClient* GetShillServiceClient() = 0; | 147 virtual ShillServiceClient* GetShillServiceClient() = 0; |
148 virtual ShillProfileClient* GetShillProfileClient() = 0; | 148 virtual ShillProfileClient* GetShillProfileClient() = 0; |
149 virtual SMSClient* GetSMSClient() = 0; | 149 virtual SMSClient* GetSMSClient() = 0; |
150 virtual SystemClockClient* GetSystemClockClient() = 0; | 150 virtual SystemClockClient* GetSystemClockClient() = 0; |
151 virtual UpdateEngineClient* GetUpdateEngineClient() = 0; | 151 virtual UpdateEngineClient* GetUpdateEngineClient() = 0; |
152 | 152 |
153 // These methods can be overridden by Fake or Test implementations to provide | |
154 // initial behavior overrides (e.g. based on command line flags). | |
155 virtual int GetPowerCycleDelay() const; | |
156 virtual int GetShillInteractiveDelay() const; | |
pneubeck (no reviews)
2014/02/27 09:04:37
not sure about GetPowerCycleDelay,
but the GetShil
stevenjb
2014/02/28 02:44:06
I'm not super thrilled about passing FakeDBusThrea
| |
157 virtual std::string GetShillInitialState(const std::string& type) const; | |
158 | |
153 virtual ~DBusThreadManager(); | 159 virtual ~DBusThreadManager(); |
154 | 160 |
155 protected: | 161 protected: |
156 DBusThreadManager(); | 162 DBusThreadManager(); |
157 | 163 |
158 private: | 164 private: |
159 // InitializeClients is called after g_dbus_thread_manager is set. | 165 // InitializeClients is called after g_dbus_thread_manager is set. |
160 // NOTE: Clients that access other clients in their Init() must be | 166 // NOTE: Clients that access other clients in their Init() must be |
161 // initialized in the correct order. | 167 // initialized in the correct order. |
162 static void InitializeClients(); | 168 static void InitializeClients(); |
163 | 169 |
164 // Initializes |client| with the |system_bus_|. | 170 // Initializes |client| with the |system_bus_|. |
165 static void InitClient(DBusClient* client); | 171 static void InitClient(DBusClient* client); |
166 | 172 |
167 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); | 173 DISALLOW_COPY_AND_ASSIGN(DBusThreadManager); |
168 }; | 174 }; |
169 | 175 |
170 } // namespace chromeos | 176 } // namespace chromeos |
171 | 177 |
172 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ | 178 #endif // CHROMEOS_DBUS_DBUS_THREAD_MANAGER_H_ |
OLD | NEW |