Chromium Code Reviews| 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 23 matching lines...) Expand all Loading... | |
| 34 #include "chromeos/dbus/metronome_client.h" | 34 #include "chromeos/dbus/metronome_client.h" |
| 35 #include "chromeos/dbus/modem_messaging_client.h" | 35 #include "chromeos/dbus/modem_messaging_client.h" |
| 36 #include "chromeos/dbus/nfc_adapter_client.h" | 36 #include "chromeos/dbus/nfc_adapter_client.h" |
| 37 #include "chromeos/dbus/nfc_device_client.h" | 37 #include "chromeos/dbus/nfc_device_client.h" |
| 38 #include "chromeos/dbus/nfc_manager_client.h" | 38 #include "chromeos/dbus/nfc_manager_client.h" |
| 39 #include "chromeos/dbus/nfc_record_client.h" | 39 #include "chromeos/dbus/nfc_record_client.h" |
| 40 #include "chromeos/dbus/nfc_tag_client.h" | 40 #include "chromeos/dbus/nfc_tag_client.h" |
| 41 #include "chromeos/dbus/peer_daemon_manager_client.h" | 41 #include "chromeos/dbus/peer_daemon_manager_client.h" |
| 42 #include "chromeos/dbus/permission_broker_client.h" | 42 #include "chromeos/dbus/permission_broker_client.h" |
| 43 #include "chromeos/dbus/power_manager_client.h" | 43 #include "chromeos/dbus/power_manager_client.h" |
| 44 #include "chromeos/dbus/privet_daemon_manager_client.h" | |
| 44 #include "chromeos/dbus/session_manager_client.h" | 45 #include "chromeos/dbus/session_manager_client.h" |
| 45 #include "chromeos/dbus/shill_device_client.h" | 46 #include "chromeos/dbus/shill_device_client.h" |
| 46 #include "chromeos/dbus/shill_ipconfig_client.h" | 47 #include "chromeos/dbus/shill_ipconfig_client.h" |
| 47 #include "chromeos/dbus/shill_manager_client.h" | 48 #include "chromeos/dbus/shill_manager_client.h" |
| 48 #include "chromeos/dbus/shill_profile_client.h" | 49 #include "chromeos/dbus/shill_profile_client.h" |
| 49 #include "chromeos/dbus/shill_service_client.h" | 50 #include "chromeos/dbus/shill_service_client.h" |
| 50 #include "chromeos/dbus/shill_third_party_vpn_driver_client.h" | 51 #include "chromeos/dbus/shill_third_party_vpn_driver_client.h" |
| 51 #include "chromeos/dbus/sms_client.h" | 52 #include "chromeos/dbus/sms_client.h" |
| 52 #include "chromeos/dbus/system_clock_client.h" | 53 #include "chromeos/dbus/system_clock_client.h" |
| 53 #include "chromeos/dbus/update_engine_client.h" | 54 #include "chromeos/dbus/update_engine_client.h" |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 } | 270 } |
| 270 | 271 |
| 271 PeerDaemonManagerClient* DBusThreadManager::GetPeerDaemonManagerClient() { | 272 PeerDaemonManagerClient* DBusThreadManager::GetPeerDaemonManagerClient() { |
| 272 return client_bundle_->peer_daemon_manager_client(); | 273 return client_bundle_->peer_daemon_manager_client(); |
| 273 } | 274 } |
| 274 | 275 |
| 275 PermissionBrokerClient* DBusThreadManager::GetPermissionBrokerClient() { | 276 PermissionBrokerClient* DBusThreadManager::GetPermissionBrokerClient() { |
| 276 return client_bundle_->permission_broker_client(); | 277 return client_bundle_->permission_broker_client(); |
| 277 } | 278 } |
| 278 | 279 |
| 280 PrivetDaemonManagerClient* DBusThreadManager::GetPrivetDaemonManagerClient() { | |
|
wtc
2015/03/17 17:31:05
Nit: list "Private" after "Power".
This also appl
dtapuska
2015/03/18 14:28:53
I believe I was using a different alphabet the day
| |
| 281 return client_bundle_->privet_daemon_manager_client(); | |
| 282 } | |
| 283 | |
| 279 PowerManagerClient* DBusThreadManager::GetPowerManagerClient() { | 284 PowerManagerClient* DBusThreadManager::GetPowerManagerClient() { |
| 280 return client_bundle_->power_manager_client(); | 285 return client_bundle_->power_manager_client(); |
| 281 } | 286 } |
| 282 | 287 |
| 283 SessionManagerClient* DBusThreadManager::GetSessionManagerClient() { | 288 SessionManagerClient* DBusThreadManager::GetSessionManagerClient() { |
| 284 return client_bundle_->session_manager_client(); | 289 return client_bundle_->session_manager_client(); |
| 285 } | 290 } |
| 286 | 291 |
| 287 SMSClient* DBusThreadManager::GetSMSClient() { | 292 SMSClient* DBusThreadManager::GetSMSClient() { |
| 288 return client_bundle_->sms_client(); | 293 return client_bundle_->sms_client(); |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 316 GetEasyUnlockClient()->Init(GetSystemBus()); | 321 GetEasyUnlockClient()->Init(GetSystemBus()); |
| 317 GetGsmSMSClient()->Init(GetSystemBus()); | 322 GetGsmSMSClient()->Init(GetSystemBus()); |
| 318 GetImageBurnerClient()->Init(GetSystemBus()); | 323 GetImageBurnerClient()->Init(GetSystemBus()); |
| 319 GetIntrospectableClient()->Init(GetSystemBus()); | 324 GetIntrospectableClient()->Init(GetSystemBus()); |
| 320 GetLeadershipDaemonManagerClient()->Init(GetSystemBus()); | 325 GetLeadershipDaemonManagerClient()->Init(GetSystemBus()); |
| 321 GetLorgnetteManagerClient()->Init(GetSystemBus()); | 326 GetLorgnetteManagerClient()->Init(GetSystemBus()); |
| 322 GetMetronomeClient()->Init(GetSystemBus()); | 327 GetMetronomeClient()->Init(GetSystemBus()); |
| 323 GetModemMessagingClient()->Init(GetSystemBus()); | 328 GetModemMessagingClient()->Init(GetSystemBus()); |
| 324 GetPermissionBrokerClient()->Init(GetSystemBus()); | 329 GetPermissionBrokerClient()->Init(GetSystemBus()); |
| 325 GetPeerDaemonManagerClient()->Init(GetSystemBus()); | 330 GetPeerDaemonManagerClient()->Init(GetSystemBus()); |
| 331 GetPrivetDaemonManagerClient()->Init(GetSystemBus()); | |
| 326 GetPowerManagerClient()->Init(GetSystemBus()); | 332 GetPowerManagerClient()->Init(GetSystemBus()); |
| 327 GetSessionManagerClient()->Init(GetSystemBus()); | 333 GetSessionManagerClient()->Init(GetSystemBus()); |
| 328 GetShillDeviceClient()->Init(GetSystemBus()); | 334 GetShillDeviceClient()->Init(GetSystemBus()); |
| 329 GetShillIPConfigClient()->Init(GetSystemBus()); | 335 GetShillIPConfigClient()->Init(GetSystemBus()); |
| 330 GetShillManagerClient()->Init(GetSystemBus()); | 336 GetShillManagerClient()->Init(GetSystemBus()); |
| 331 GetShillServiceClient()->Init(GetSystemBus()); | 337 GetShillServiceClient()->Init(GetSystemBus()); |
| 332 GetShillProfileClient()->Init(GetSystemBus()); | 338 GetShillProfileClient()->Init(GetSystemBus()); |
| 333 GetShillThirdPartyVpnDriverClient()->Init(GetSystemBus()); | 339 GetShillThirdPartyVpnDriverClient()->Init(GetSystemBus()); |
| 334 GetSMSClient()->Init(GetSystemBus()); | 340 GetSMSClient()->Init(GetSystemBus()); |
| 335 GetSystemClockClient()->Init(GetSystemBus()); | 341 GetSystemClockClient()->Init(GetSystemBus()); |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 646 DBusThreadManager::Get()->client_bundle_->peer_daemon_manager_client_ = | 652 DBusThreadManager::Get()->client_bundle_->peer_daemon_manager_client_ = |
| 647 client.Pass(); | 653 client.Pass(); |
| 648 } | 654 } |
| 649 | 655 |
| 650 void DBusThreadManagerSetter::SetPermissionBrokerClient( | 656 void DBusThreadManagerSetter::SetPermissionBrokerClient( |
| 651 scoped_ptr<PermissionBrokerClient> client) { | 657 scoped_ptr<PermissionBrokerClient> client) { |
| 652 DBusThreadManager::Get()->client_bundle_->permission_broker_client_ = | 658 DBusThreadManager::Get()->client_bundle_->permission_broker_client_ = |
| 653 client.Pass(); | 659 client.Pass(); |
| 654 } | 660 } |
| 655 | 661 |
| 662 void DBusThreadManagerSetter::SetPrivetDaemonManagerClient( | |
| 663 scoped_ptr<PrivetDaemonManagerClient> client) { | |
| 664 DBusThreadManager::Get()->client_bundle_->privet_daemon_manager_client_ = | |
| 665 client.Pass(); | |
| 666 } | |
| 667 | |
| 656 void DBusThreadManagerSetter::SetPowerManagerClient( | 668 void DBusThreadManagerSetter::SetPowerManagerClient( |
| 657 scoped_ptr<PowerManagerClient> client) { | 669 scoped_ptr<PowerManagerClient> client) { |
| 658 DBusThreadManager::Get()->client_bundle_->power_manager_client_ = | 670 DBusThreadManager::Get()->client_bundle_->power_manager_client_ = |
| 659 client.Pass(); | 671 client.Pass(); |
| 660 } | 672 } |
| 661 | 673 |
| 662 void DBusThreadManagerSetter::SetSessionManagerClient( | 674 void DBusThreadManagerSetter::SetSessionManagerClient( |
| 663 scoped_ptr<SessionManagerClient> client) { | 675 scoped_ptr<SessionManagerClient> client) { |
| 664 DBusThreadManager::Get()->client_bundle_->session_manager_client_ = | 676 DBusThreadManager::Get()->client_bundle_->session_manager_client_ = |
| 665 client.Pass(); | 677 client.Pass(); |
| 666 } | 678 } |
| 667 | 679 |
| 668 void DBusThreadManagerSetter::SetSMSClient(scoped_ptr<SMSClient> client) { | 680 void DBusThreadManagerSetter::SetSMSClient(scoped_ptr<SMSClient> client) { |
| 669 DBusThreadManager::Get()->client_bundle_->sms_client_ = client.Pass(); | 681 DBusThreadManager::Get()->client_bundle_->sms_client_ = client.Pass(); |
| 670 } | 682 } |
| 671 | 683 |
| 672 void DBusThreadManagerSetter::SetSystemClockClient( | 684 void DBusThreadManagerSetter::SetSystemClockClient( |
| 673 scoped_ptr<SystemClockClient> client) { | 685 scoped_ptr<SystemClockClient> client) { |
| 674 DBusThreadManager::Get()->client_bundle_->system_clock_client_ = | 686 DBusThreadManager::Get()->client_bundle_->system_clock_client_ = |
| 675 client.Pass(); | 687 client.Pass(); |
| 676 } | 688 } |
| 677 | 689 |
| 678 void DBusThreadManagerSetter::SetUpdateEngineClient( | 690 void DBusThreadManagerSetter::SetUpdateEngineClient( |
| 679 scoped_ptr<UpdateEngineClient> client) { | 691 scoped_ptr<UpdateEngineClient> client) { |
| 680 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = | 692 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = |
| 681 client.Pass(); | 693 client.Pass(); |
| 682 } | 694 } |
| 683 | 695 |
| 684 } // namespace chromeos | 696 } // namespace chromeos |
| OLD | NEW |