| 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_FAKE_DBUS_THREAD_MANAGER_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_DBUS_THREAD_MANAGER_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_DBUS_THREAD_MANAGER_H_ | 6 #define CHROMEOS_DBUS_FAKE_DBUS_THREAD_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void SetNfcManagerClient(scoped_ptr<NfcManagerClient> client); | 56 void SetNfcManagerClient(scoped_ptr<NfcManagerClient> client); |
| 57 void SetNfcRecordClient(scoped_ptr<NfcRecordClient> client); | 57 void SetNfcRecordClient(scoped_ptr<NfcRecordClient> client); |
| 58 void SetNfcTagClient(scoped_ptr<NfcTagClient> client); | 58 void SetNfcTagClient(scoped_ptr<NfcTagClient> client); |
| 59 void SetPermissionBrokerClient(scoped_ptr<PermissionBrokerClient> client); | 59 void SetPermissionBrokerClient(scoped_ptr<PermissionBrokerClient> client); |
| 60 void SetPowerManagerClient(scoped_ptr<PowerManagerClient> client); | 60 void SetPowerManagerClient(scoped_ptr<PowerManagerClient> client); |
| 61 void SetPowerPolicyController(scoped_ptr<PowerPolicyController> client); | 61 void SetPowerPolicyController(scoped_ptr<PowerPolicyController> client); |
| 62 void SetSessionManagerClient(scoped_ptr<SessionManagerClient> client); | 62 void SetSessionManagerClient(scoped_ptr<SessionManagerClient> client); |
| 63 void SetSMSClient(scoped_ptr<SMSClient> client); | 63 void SetSMSClient(scoped_ptr<SMSClient> client); |
| 64 void SetSystemClockClient(scoped_ptr<SystemClockClient> client); | 64 void SetSystemClockClient(scoped_ptr<SystemClockClient> client); |
| 65 void SetUpdateEngineClient(scoped_ptr<UpdateEngineClient> client); | 65 void SetUpdateEngineClient(scoped_ptr<UpdateEngineClient> client); |
| 66 void SetIBusClient(scoped_ptr<IBusClient> client); | |
| 67 | 66 |
| 68 virtual void AddObserver(DBusThreadManagerObserver* observer) OVERRIDE; | 67 virtual void AddObserver(DBusThreadManagerObserver* observer) OVERRIDE; |
| 69 virtual void RemoveObserver(DBusThreadManagerObserver* observer) OVERRIDE; | 68 virtual void RemoveObserver(DBusThreadManagerObserver* observer) OVERRIDE; |
| 70 virtual void InitIBusBus(const std::string& ibus_address, | |
| 71 const base::Closure& closure) OVERRIDE; | |
| 72 virtual dbus::Bus* GetSystemBus() OVERRIDE; | 69 virtual dbus::Bus* GetSystemBus() OVERRIDE; |
| 73 | 70 |
| 74 virtual BluetoothAdapterClient* GetBluetoothAdapterClient() OVERRIDE; | 71 virtual BluetoothAdapterClient* GetBluetoothAdapterClient() OVERRIDE; |
| 75 virtual BluetoothAgentManagerClient* | 72 virtual BluetoothAgentManagerClient* |
| 76 GetBluetoothAgentManagerClient() OVERRIDE; | 73 GetBluetoothAgentManagerClient() OVERRIDE; |
| 77 virtual BluetoothDeviceClient* GetBluetoothDeviceClient() OVERRIDE; | 74 virtual BluetoothDeviceClient* GetBluetoothDeviceClient() OVERRIDE; |
| 78 virtual BluetoothInputClient* GetBluetoothInputClient() OVERRIDE; | 75 virtual BluetoothInputClient* GetBluetoothInputClient() OVERRIDE; |
| 79 virtual BluetoothProfileManagerClient* | 76 virtual BluetoothProfileManagerClient* |
| 80 GetBluetoothProfileManagerClient() OVERRIDE; | 77 GetBluetoothProfileManagerClient() OVERRIDE; |
| 81 virtual CrasAudioClient* GetCrasAudioClient() OVERRIDE; | 78 virtual CrasAudioClient* GetCrasAudioClient() OVERRIDE; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 96 virtual NfcManagerClient* GetNfcManagerClient() OVERRIDE; | 93 virtual NfcManagerClient* GetNfcManagerClient() OVERRIDE; |
| 97 virtual NfcRecordClient* GetNfcRecordClient() OVERRIDE; | 94 virtual NfcRecordClient* GetNfcRecordClient() OVERRIDE; |
| 98 virtual NfcTagClient* GetNfcTagClient() OVERRIDE; | 95 virtual NfcTagClient* GetNfcTagClient() OVERRIDE; |
| 99 virtual PermissionBrokerClient* GetPermissionBrokerClient() OVERRIDE; | 96 virtual PermissionBrokerClient* GetPermissionBrokerClient() OVERRIDE; |
| 100 virtual PowerManagerClient* GetPowerManagerClient() OVERRIDE; | 97 virtual PowerManagerClient* GetPowerManagerClient() OVERRIDE; |
| 101 virtual PowerPolicyController* GetPowerPolicyController() OVERRIDE; | 98 virtual PowerPolicyController* GetPowerPolicyController() OVERRIDE; |
| 102 virtual SessionManagerClient* GetSessionManagerClient() OVERRIDE; | 99 virtual SessionManagerClient* GetSessionManagerClient() OVERRIDE; |
| 103 virtual SMSClient* GetSMSClient() OVERRIDE; | 100 virtual SMSClient* GetSMSClient() OVERRIDE; |
| 104 virtual SystemClockClient* GetSystemClockClient() OVERRIDE; | 101 virtual SystemClockClient* GetSystemClockClient() OVERRIDE; |
| 105 virtual UpdateEngineClient* GetUpdateEngineClient() OVERRIDE; | 102 virtual UpdateEngineClient* GetUpdateEngineClient() OVERRIDE; |
| 106 virtual IBusClient* GetIBusClient() OVERRIDE; | |
| 107 | 103 |
| 108 private: | 104 private: |
| 109 // Note: Keep this before other members so they can call AddObserver() in | 105 // Note: Keep this before other members so they can call AddObserver() in |
| 110 // their c'tors. | 106 // their c'tors. |
| 111 ObserverList<DBusThreadManagerObserver> observers_; | 107 ObserverList<DBusThreadManagerObserver> observers_; |
| 112 | 108 |
| 113 scoped_ptr<BluetoothAdapterClient> bluetooth_adapter_client_; | 109 scoped_ptr<BluetoothAdapterClient> bluetooth_adapter_client_; |
| 114 scoped_ptr<BluetoothAgentManagerClient> bluetooth_agent_manager_client_; | 110 scoped_ptr<BluetoothAgentManagerClient> bluetooth_agent_manager_client_; |
| 115 scoped_ptr<BluetoothDeviceClient> bluetooth_device_client_; | 111 scoped_ptr<BluetoothDeviceClient> bluetooth_device_client_; |
| 116 scoped_ptr<BluetoothInputClient> bluetooth_input_client_; | 112 scoped_ptr<BluetoothInputClient> bluetooth_input_client_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 132 scoped_ptr<NfcDeviceClient> nfc_device_client_; | 128 scoped_ptr<NfcDeviceClient> nfc_device_client_; |
| 133 scoped_ptr<NfcManagerClient> nfc_manager_client_; | 129 scoped_ptr<NfcManagerClient> nfc_manager_client_; |
| 134 scoped_ptr<NfcRecordClient> nfc_record_client_; | 130 scoped_ptr<NfcRecordClient> nfc_record_client_; |
| 135 scoped_ptr<NfcTagClient> nfc_tag_client_; | 131 scoped_ptr<NfcTagClient> nfc_tag_client_; |
| 136 scoped_ptr<PermissionBrokerClient> permission_broker_client_; | 132 scoped_ptr<PermissionBrokerClient> permission_broker_client_; |
| 137 scoped_ptr<SystemClockClient> system_clock_client_; | 133 scoped_ptr<SystemClockClient> system_clock_client_; |
| 138 scoped_ptr<PowerManagerClient> power_manager_client_; | 134 scoped_ptr<PowerManagerClient> power_manager_client_; |
| 139 scoped_ptr<SessionManagerClient> session_manager_client_; | 135 scoped_ptr<SessionManagerClient> session_manager_client_; |
| 140 scoped_ptr<SMSClient> sms_client_; | 136 scoped_ptr<SMSClient> sms_client_; |
| 141 scoped_ptr<UpdateEngineClient> update_engine_client_; | 137 scoped_ptr<UpdateEngineClient> update_engine_client_; |
| 142 scoped_ptr<IBusClient> ibus_client_; | |
| 143 | 138 |
| 144 scoped_ptr<PowerPolicyController> power_policy_controller_; | 139 scoped_ptr<PowerPolicyController> power_policy_controller_; |
| 145 | 140 |
| 146 DISALLOW_COPY_AND_ASSIGN(FakeDBusThreadManager); | 141 DISALLOW_COPY_AND_ASSIGN(FakeDBusThreadManager); |
| 147 }; | 142 }; |
| 148 | 143 |
| 149 } // namespace chromeos | 144 } // namespace chromeos |
| 150 | 145 |
| 151 #endif // CHROMEOS_DBUS_FAKE_DBUS_THREAD_MANAGER_H_ | 146 #endif // CHROMEOS_DBUS_FAKE_DBUS_THREAD_MANAGER_H_ |
| OLD | NEW |