| 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 13 matching lines...) Expand all Loading... |
| 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/dbus_client_bundle.h" | 26 #include "chromeos/dbus/dbus_client_bundle.h" |
| 27 #include "chromeos/dbus/debug_daemon_client.h" | 27 #include "chromeos/dbus/debug_daemon_client.h" |
| 28 #include "chromeos/dbus/easy_unlock_client.h" | 28 #include "chromeos/dbus/easy_unlock_client.h" |
| 29 #include "chromeos/dbus/gsm_sms_client.h" | 29 #include "chromeos/dbus/gsm_sms_client.h" |
| 30 #include "chromeos/dbus/image_burner_client.h" | 30 #include "chromeos/dbus/image_burner_client.h" |
| 31 #include "chromeos/dbus/introspectable_client.h" | 31 #include "chromeos/dbus/introspectable_client.h" |
| 32 #include "chromeos/dbus/leadership_daemon_manager_client.h" | 32 #include "chromeos/dbus/leadership_daemon_manager_client.h" |
| 33 #include "chromeos/dbus/lorgnette_manager_client.h" | 33 #include "chromeos/dbus/lorgnette_manager_client.h" |
| 34 #include "chromeos/dbus/metronome_client.h" |
| 34 #include "chromeos/dbus/modem_messaging_client.h" | 35 #include "chromeos/dbus/modem_messaging_client.h" |
| 35 #include "chromeos/dbus/nfc_adapter_client.h" | 36 #include "chromeos/dbus/nfc_adapter_client.h" |
| 36 #include "chromeos/dbus/nfc_device_client.h" | 37 #include "chromeos/dbus/nfc_device_client.h" |
| 37 #include "chromeos/dbus/nfc_manager_client.h" | 38 #include "chromeos/dbus/nfc_manager_client.h" |
| 38 #include "chromeos/dbus/nfc_record_client.h" | 39 #include "chromeos/dbus/nfc_record_client.h" |
| 39 #include "chromeos/dbus/nfc_tag_client.h" | 40 #include "chromeos/dbus/nfc_tag_client.h" |
| 40 #include "chromeos/dbus/peer_daemon_manager_client.h" | 41 #include "chromeos/dbus/peer_daemon_manager_client.h" |
| 41 #include "chromeos/dbus/permission_broker_client.h" | 42 #include "chromeos/dbus/permission_broker_client.h" |
| 42 #include "chromeos/dbus/power_manager_client.h" | 43 #include "chromeos/dbus/power_manager_client.h" |
| 43 #include "chromeos/dbus/privet_daemon_client.h" | 44 #include "chromeos/dbus/privet_daemon_client.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 LeadershipDaemonManagerClient* | 191 LeadershipDaemonManagerClient* |
| 191 DBusThreadManager::GetLeadershipDaemonManagerClient() { | 192 DBusThreadManager::GetLeadershipDaemonManagerClient() { |
| 192 return client_bundle_->leadership_daemon_manager_client(); | 193 return client_bundle_->leadership_daemon_manager_client(); |
| 193 } | 194 } |
| 194 | 195 |
| 195 LorgnetteManagerClient* | 196 LorgnetteManagerClient* |
| 196 DBusThreadManager::GetLorgnetteManagerClient() { | 197 DBusThreadManager::GetLorgnetteManagerClient() { |
| 197 return client_bundle_->lorgnette_manager_client(); | 198 return client_bundle_->lorgnette_manager_client(); |
| 198 } | 199 } |
| 199 | 200 |
| 201 MetronomeClient* DBusThreadManager::GetMetronomeClient() { |
| 202 return client_bundle_->metronome_client(); |
| 203 } |
| 204 |
| 200 ShillDeviceClient* | 205 ShillDeviceClient* |
| 201 DBusThreadManager::GetShillDeviceClient() { | 206 DBusThreadManager::GetShillDeviceClient() { |
| 202 return client_bundle_->shill_device_client(); | 207 return client_bundle_->shill_device_client(); |
| 203 } | 208 } |
| 204 | 209 |
| 205 ShillIPConfigClient* | 210 ShillIPConfigClient* |
| 206 DBusThreadManager::GetShillIPConfigClient() { | 211 DBusThreadManager::GetShillIPConfigClient() { |
| 207 return client_bundle_->shill_ipconfig_client(); | 212 return client_bundle_->shill_ipconfig_client(); |
| 208 } | 213 } |
| 209 | 214 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 GetCrasAudioClient()->Init(GetSystemBus()); | 315 GetCrasAudioClient()->Init(GetSystemBus()); |
| 311 GetCrosDisksClient()->Init(GetSystemBus()); | 316 GetCrosDisksClient()->Init(GetSystemBus()); |
| 312 GetCryptohomeClient()->Init(GetSystemBus()); | 317 GetCryptohomeClient()->Init(GetSystemBus()); |
| 313 GetDebugDaemonClient()->Init(GetSystemBus()); | 318 GetDebugDaemonClient()->Init(GetSystemBus()); |
| 314 GetEasyUnlockClient()->Init(GetSystemBus()); | 319 GetEasyUnlockClient()->Init(GetSystemBus()); |
| 315 GetGsmSMSClient()->Init(GetSystemBus()); | 320 GetGsmSMSClient()->Init(GetSystemBus()); |
| 316 GetImageBurnerClient()->Init(GetSystemBus()); | 321 GetImageBurnerClient()->Init(GetSystemBus()); |
| 317 GetIntrospectableClient()->Init(GetSystemBus()); | 322 GetIntrospectableClient()->Init(GetSystemBus()); |
| 318 GetLeadershipDaemonManagerClient()->Init(GetSystemBus()); | 323 GetLeadershipDaemonManagerClient()->Init(GetSystemBus()); |
| 319 GetLorgnetteManagerClient()->Init(GetSystemBus()); | 324 GetLorgnetteManagerClient()->Init(GetSystemBus()); |
| 325 GetMetronomeClient()->Init(GetSystemBus()); |
| 320 GetModemMessagingClient()->Init(GetSystemBus()); | 326 GetModemMessagingClient()->Init(GetSystemBus()); |
| 321 GetPermissionBrokerClient()->Init(GetSystemBus()); | 327 GetPermissionBrokerClient()->Init(GetSystemBus()); |
| 322 GetPeerDaemonManagerClient()->Init(GetSystemBus()); | 328 GetPeerDaemonManagerClient()->Init(GetSystemBus()); |
| 323 GetPowerManagerClient()->Init(GetSystemBus()); | 329 GetPowerManagerClient()->Init(GetSystemBus()); |
| 324 GetPrivetDaemonClient()->Init(GetSystemBus()); | 330 GetPrivetDaemonClient()->Init(GetSystemBus()); |
| 325 GetSessionManagerClient()->Init(GetSystemBus()); | 331 GetSessionManagerClient()->Init(GetSystemBus()); |
| 326 GetShillDeviceClient()->Init(GetSystemBus()); | 332 GetShillDeviceClient()->Init(GetSystemBus()); |
| 327 GetShillIPConfigClient()->Init(GetSystemBus()); | 333 GetShillIPConfigClient()->Init(GetSystemBus()); |
| 328 GetShillManagerClient()->Init(GetSystemBus()); | 334 GetShillManagerClient()->Init(GetSystemBus()); |
| 329 GetShillServiceClient()->Init(GetSystemBus()); | 335 GetShillServiceClient()->Init(GetSystemBus()); |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 DBusThreadManager::Get()->client_bundle_->leadership_daemon_manager_client_ = | 555 DBusThreadManager::Get()->client_bundle_->leadership_daemon_manager_client_ = |
| 550 client.Pass(); | 556 client.Pass(); |
| 551 } | 557 } |
| 552 | 558 |
| 553 void DBusThreadManagerSetter::SetLorgnetteManagerClient( | 559 void DBusThreadManagerSetter::SetLorgnetteManagerClient( |
| 554 scoped_ptr<LorgnetteManagerClient> client) { | 560 scoped_ptr<LorgnetteManagerClient> client) { |
| 555 DBusThreadManager::Get()->client_bundle_->lorgnette_manager_client_ = | 561 DBusThreadManager::Get()->client_bundle_->lorgnette_manager_client_ = |
| 556 client.Pass(); | 562 client.Pass(); |
| 557 } | 563 } |
| 558 | 564 |
| 565 void DBusThreadManagerSetter::SetMetronomeClient( |
| 566 scoped_ptr<MetronomeClient> client) { |
| 567 DBusThreadManager::Get()->client_bundle_->metronome_client_ = client.Pass(); |
| 568 } |
| 569 |
| 559 void DBusThreadManagerSetter::SetShillDeviceClient( | 570 void DBusThreadManagerSetter::SetShillDeviceClient( |
| 560 scoped_ptr<ShillDeviceClient> client) { | 571 scoped_ptr<ShillDeviceClient> client) { |
| 561 DBusThreadManager::Get()->client_bundle_->shill_device_client_ = | 572 DBusThreadManager::Get()->client_bundle_->shill_device_client_ = |
| 562 client.Pass(); | 573 client.Pass(); |
| 563 } | 574 } |
| 564 | 575 |
| 565 void DBusThreadManagerSetter::SetShillIPConfigClient( | 576 void DBusThreadManagerSetter::SetShillIPConfigClient( |
| 566 scoped_ptr<ShillIPConfigClient> client) { | 577 scoped_ptr<ShillIPConfigClient> client) { |
| 567 DBusThreadManager::Get()->client_bundle_->shill_ipconfig_client_ = | 578 DBusThreadManager::Get()->client_bundle_->shill_ipconfig_client_ = |
| 568 client.Pass(); | 579 client.Pass(); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 client.Pass(); | 685 client.Pass(); |
| 675 } | 686 } |
| 676 | 687 |
| 677 void DBusThreadManagerSetter::SetUpdateEngineClient( | 688 void DBusThreadManagerSetter::SetUpdateEngineClient( |
| 678 scoped_ptr<UpdateEngineClient> client) { | 689 scoped_ptr<UpdateEngineClient> client) { |
| 679 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = | 690 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = |
| 680 client.Pass(); | 691 client.Pass(); |
| 681 } | 692 } |
| 682 | 693 |
| 683 } // namespace chromeos | 694 } // namespace chromeos |
| OLD | NEW |