| 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 #include "chromeos/dbus/dbus_thread_manager.h" | 5 #include "chromeos/dbus/dbus_thread_manager.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
| 9 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
| 10 #include "chromeos/chromeos_switches.h" | 10 #include "chromeos/chromeos_switches.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "chromeos/dbus/cros_disks_client.h" | 23 #include "chromeos/dbus/cros_disks_client.h" |
| 24 #include "chromeos/dbus/cryptohome_client.h" | 24 #include "chromeos/dbus/cryptohome_client.h" |
| 25 #include "chromeos/dbus/dbus_client.h" | 25 #include "chromeos/dbus/dbus_client.h" |
| 26 #include "chromeos/dbus/debug_daemon_client.h" | 26 #include "chromeos/dbus/debug_daemon_client.h" |
| 27 #include "chromeos/dbus/easy_unlock_client.h" | 27 #include "chromeos/dbus/easy_unlock_client.h" |
| 28 #include "chromeos/dbus/gsm_sms_client.h" | 28 #include "chromeos/dbus/gsm_sms_client.h" |
| 29 #include "chromeos/dbus/image_burner_client.h" | 29 #include "chromeos/dbus/image_burner_client.h" |
| 30 #include "chromeos/dbus/introspectable_client.h" | 30 #include "chromeos/dbus/introspectable_client.h" |
| 31 #include "chromeos/dbus/leadership_daemon_manager_client.h" | 31 #include "chromeos/dbus/leadership_daemon_manager_client.h" |
| 32 #include "chromeos/dbus/lorgnette_manager_client.h" | 32 #include "chromeos/dbus/lorgnette_manager_client.h" |
| 33 #include "chromeos/dbus/metronome_client.h" |
| 33 #include "chromeos/dbus/modem_messaging_client.h" | 34 #include "chromeos/dbus/modem_messaging_client.h" |
| 34 #include "chromeos/dbus/nfc_adapter_client.h" | 35 #include "chromeos/dbus/nfc_adapter_client.h" |
| 35 #include "chromeos/dbus/nfc_device_client.h" | 36 #include "chromeos/dbus/nfc_device_client.h" |
| 36 #include "chromeos/dbus/nfc_manager_client.h" | 37 #include "chromeos/dbus/nfc_manager_client.h" |
| 37 #include "chromeos/dbus/nfc_record_client.h" | 38 #include "chromeos/dbus/nfc_record_client.h" |
| 38 #include "chromeos/dbus/nfc_tag_client.h" | 39 #include "chromeos/dbus/nfc_tag_client.h" |
| 39 #include "chromeos/dbus/peer_daemon_manager_client.h" | 40 #include "chromeos/dbus/peer_daemon_manager_client.h" |
| 40 #include "chromeos/dbus/permission_broker_client.h" | 41 #include "chromeos/dbus/permission_broker_client.h" |
| 41 #include "chromeos/dbus/power_manager_client.h" | 42 #include "chromeos/dbus/power_manager_client.h" |
| 42 #include "chromeos/dbus/session_manager_client.h" | 43 #include "chromeos/dbus/session_manager_client.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 LeadershipDaemonManagerClient* | 186 LeadershipDaemonManagerClient* |
| 186 DBusThreadManager::GetLeadershipDaemonManagerClient() { | 187 DBusThreadManager::GetLeadershipDaemonManagerClient() { |
| 187 return client_bundle_->leadership_daemon_manager_client(); | 188 return client_bundle_->leadership_daemon_manager_client(); |
| 188 } | 189 } |
| 189 | 190 |
| 190 LorgnetteManagerClient* | 191 LorgnetteManagerClient* |
| 191 DBusThreadManager::GetLorgnetteManagerClient() { | 192 DBusThreadManager::GetLorgnetteManagerClient() { |
| 192 return client_bundle_->lorgnette_manager_client(); | 193 return client_bundle_->lorgnette_manager_client(); |
| 193 } | 194 } |
| 194 | 195 |
| 196 MetronomeClient* DBusThreadManager::GetMetronomeClient() { |
| 197 return client_bundle_->metronome_client(); |
| 198 } |
| 199 |
| 195 ShillDeviceClient* | 200 ShillDeviceClient* |
| 196 DBusThreadManager::GetShillDeviceClient() { | 201 DBusThreadManager::GetShillDeviceClient() { |
| 197 return client_bundle_->shill_device_client(); | 202 return client_bundle_->shill_device_client(); |
| 198 } | 203 } |
| 199 | 204 |
| 200 ShillIPConfigClient* | 205 ShillIPConfigClient* |
| 201 DBusThreadManager::GetShillIPConfigClient() { | 206 DBusThreadManager::GetShillIPConfigClient() { |
| 202 return client_bundle_->shill_ipconfig_client(); | 207 return client_bundle_->shill_ipconfig_client(); |
| 203 } | 208 } |
| 204 | 209 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 GetCrasAudioClient()->Init(GetSystemBus()); | 306 GetCrasAudioClient()->Init(GetSystemBus()); |
| 302 GetCrosDisksClient()->Init(GetSystemBus()); | 307 GetCrosDisksClient()->Init(GetSystemBus()); |
| 303 GetCryptohomeClient()->Init(GetSystemBus()); | 308 GetCryptohomeClient()->Init(GetSystemBus()); |
| 304 GetDebugDaemonClient()->Init(GetSystemBus()); | 309 GetDebugDaemonClient()->Init(GetSystemBus()); |
| 305 GetEasyUnlockClient()->Init(GetSystemBus()); | 310 GetEasyUnlockClient()->Init(GetSystemBus()); |
| 306 GetGsmSMSClient()->Init(GetSystemBus()); | 311 GetGsmSMSClient()->Init(GetSystemBus()); |
| 307 GetImageBurnerClient()->Init(GetSystemBus()); | 312 GetImageBurnerClient()->Init(GetSystemBus()); |
| 308 GetIntrospectableClient()->Init(GetSystemBus()); | 313 GetIntrospectableClient()->Init(GetSystemBus()); |
| 309 GetLeadershipDaemonManagerClient()->Init(GetSystemBus()); | 314 GetLeadershipDaemonManagerClient()->Init(GetSystemBus()); |
| 310 GetLorgnetteManagerClient()->Init(GetSystemBus()); | 315 GetLorgnetteManagerClient()->Init(GetSystemBus()); |
| 316 GetMetronomeClient()->Init(GetSystemBus()); |
| 311 GetModemMessagingClient()->Init(GetSystemBus()); | 317 GetModemMessagingClient()->Init(GetSystemBus()); |
| 312 GetPermissionBrokerClient()->Init(GetSystemBus()); | 318 GetPermissionBrokerClient()->Init(GetSystemBus()); |
| 313 GetPeerDaemonManagerClient()->Init(GetSystemBus()); | 319 GetPeerDaemonManagerClient()->Init(GetSystemBus()); |
| 314 GetPowerManagerClient()->Init(GetSystemBus()); | 320 GetPowerManagerClient()->Init(GetSystemBus()); |
| 315 GetSessionManagerClient()->Init(GetSystemBus()); | 321 GetSessionManagerClient()->Init(GetSystemBus()); |
| 316 GetShillDeviceClient()->Init(GetSystemBus()); | 322 GetShillDeviceClient()->Init(GetSystemBus()); |
| 317 GetShillIPConfigClient()->Init(GetSystemBus()); | 323 GetShillIPConfigClient()->Init(GetSystemBus()); |
| 318 GetShillManagerClient()->Init(GetSystemBus()); | 324 GetShillManagerClient()->Init(GetSystemBus()); |
| 319 GetShillServiceClient()->Init(GetSystemBus()); | 325 GetShillServiceClient()->Init(GetSystemBus()); |
| 320 GetShillProfileClient()->Init(GetSystemBus()); | 326 GetShillProfileClient()->Init(GetSystemBus()); |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 DBusThreadManager::Get()->client_bundle_->leadership_daemon_manager_client_ = | 545 DBusThreadManager::Get()->client_bundle_->leadership_daemon_manager_client_ = |
| 540 client.Pass(); | 546 client.Pass(); |
| 541 } | 547 } |
| 542 | 548 |
| 543 void DBusThreadManagerSetter::SetLorgnetteManagerClient( | 549 void DBusThreadManagerSetter::SetLorgnetteManagerClient( |
| 544 scoped_ptr<LorgnetteManagerClient> client) { | 550 scoped_ptr<LorgnetteManagerClient> client) { |
| 545 DBusThreadManager::Get()->client_bundle_->lorgnette_manager_client_ = | 551 DBusThreadManager::Get()->client_bundle_->lorgnette_manager_client_ = |
| 546 client.Pass(); | 552 client.Pass(); |
| 547 } | 553 } |
| 548 | 554 |
| 555 void DBusThreadManagerSetter::SetMetronomeClient( |
| 556 scoped_ptr<MetronomeClient> client) { |
| 557 DBusThreadManager::Get()->client_bundle_->metronome_client_ = client.Pass(); |
| 558 } |
| 559 |
| 549 void DBusThreadManagerSetter::SetShillDeviceClient( | 560 void DBusThreadManagerSetter::SetShillDeviceClient( |
| 550 scoped_ptr<ShillDeviceClient> client) { | 561 scoped_ptr<ShillDeviceClient> client) { |
| 551 DBusThreadManager::Get()->client_bundle_->shill_device_client_ = | 562 DBusThreadManager::Get()->client_bundle_->shill_device_client_ = |
| 552 client.Pass(); | 563 client.Pass(); |
| 553 } | 564 } |
| 554 | 565 |
| 555 void DBusThreadManagerSetter::SetShillIPConfigClient( | 566 void DBusThreadManagerSetter::SetShillIPConfigClient( |
| 556 scoped_ptr<ShillIPConfigClient> client) { | 567 scoped_ptr<ShillIPConfigClient> client) { |
| 557 DBusThreadManager::Get()->client_bundle_->shill_ipconfig_client_ = | 568 DBusThreadManager::Get()->client_bundle_->shill_ipconfig_client_ = |
| 558 client.Pass(); | 569 client.Pass(); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 client.Pass(); | 669 client.Pass(); |
| 659 } | 670 } |
| 660 | 671 |
| 661 void DBusThreadManagerSetter::SetUpdateEngineClient( | 672 void DBusThreadManagerSetter::SetUpdateEngineClient( |
| 662 scoped_ptr<UpdateEngineClient> client) { | 673 scoped_ptr<UpdateEngineClient> client) { |
| 663 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = | 674 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = |
| 664 client.Pass(); | 675 client.Pass(); |
| 665 } | 676 } |
| 666 | 677 |
| 667 } // namespace chromeos | 678 } // namespace chromeos |
| OLD | NEW |