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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chromeos/dbus/lorgnette_manager_client.h" | 25 #include "chromeos/dbus/lorgnette_manager_client.h" |
26 #include "chromeos/dbus/modem_messaging_client.h" | 26 #include "chromeos/dbus/modem_messaging_client.h" |
27 #include "chromeos/dbus/nfc_adapter_client.h" | 27 #include "chromeos/dbus/nfc_adapter_client.h" |
28 #include "chromeos/dbus/nfc_device_client.h" | 28 #include "chromeos/dbus/nfc_device_client.h" |
29 #include "chromeos/dbus/nfc_manager_client.h" | 29 #include "chromeos/dbus/nfc_manager_client.h" |
30 #include "chromeos/dbus/nfc_record_client.h" | 30 #include "chromeos/dbus/nfc_record_client.h" |
31 #include "chromeos/dbus/nfc_tag_client.h" | 31 #include "chromeos/dbus/nfc_tag_client.h" |
32 #include "chromeos/dbus/peer_daemon_manager_client.h" | 32 #include "chromeos/dbus/peer_daemon_manager_client.h" |
33 #include "chromeos/dbus/permission_broker_client.h" | 33 #include "chromeos/dbus/permission_broker_client.h" |
34 #include "chromeos/dbus/power_manager_client.h" | 34 #include "chromeos/dbus/power_manager_client.h" |
35 #include "chromeos/dbus/privet_daemon_manager_client.h" | |
36 #include "chromeos/dbus/session_manager_client.h" | 35 #include "chromeos/dbus/session_manager_client.h" |
37 #include "chromeos/dbus/shill_device_client.h" | 36 #include "chromeos/dbus/shill_device_client.h" |
38 #include "chromeos/dbus/shill_ipconfig_client.h" | 37 #include "chromeos/dbus/shill_ipconfig_client.h" |
39 #include "chromeos/dbus/shill_manager_client.h" | 38 #include "chromeos/dbus/shill_manager_client.h" |
40 #include "chromeos/dbus/shill_profile_client.h" | 39 #include "chromeos/dbus/shill_profile_client.h" |
41 #include "chromeos/dbus/shill_service_client.h" | 40 #include "chromeos/dbus/shill_service_client.h" |
42 #include "chromeos/dbus/shill_third_party_vpn_driver_client.h" | 41 #include "chromeos/dbus/shill_third_party_vpn_driver_client.h" |
43 #include "chromeos/dbus/sms_client.h" | 42 #include "chromeos/dbus/sms_client.h" |
44 #include "chromeos/dbus/system_clock_client.h" | 43 #include "chromeos/dbus/system_clock_client.h" |
45 #include "chromeos/dbus/update_engine_client.h" | 44 #include "chromeos/dbus/update_engine_client.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 } | 209 } |
211 | 210 |
212 PermissionBrokerClient* DBusThreadManager::GetPermissionBrokerClient() { | 211 PermissionBrokerClient* DBusThreadManager::GetPermissionBrokerClient() { |
213 return client_bundle_->permission_broker_client(); | 212 return client_bundle_->permission_broker_client(); |
214 } | 213 } |
215 | 214 |
216 PowerManagerClient* DBusThreadManager::GetPowerManagerClient() { | 215 PowerManagerClient* DBusThreadManager::GetPowerManagerClient() { |
217 return client_bundle_->power_manager_client(); | 216 return client_bundle_->power_manager_client(); |
218 } | 217 } |
219 | 218 |
220 PrivetDaemonManagerClient* DBusThreadManager::GetPrivetDaemonManagerClient() { | |
221 return client_bundle_->privet_daemon_manager_client(); | |
222 } | |
223 | |
224 SessionManagerClient* DBusThreadManager::GetSessionManagerClient() { | 219 SessionManagerClient* DBusThreadManager::GetSessionManagerClient() { |
225 return client_bundle_->session_manager_client(); | 220 return client_bundle_->session_manager_client(); |
226 } | 221 } |
227 | 222 |
228 SMSClient* DBusThreadManager::GetSMSClient() { | 223 SMSClient* DBusThreadManager::GetSMSClient() { |
229 return client_bundle_->sms_client(); | 224 return client_bundle_->sms_client(); |
230 } | 225 } |
231 | 226 |
232 SystemClockClient* DBusThreadManager::GetSystemClockClient() { | 227 SystemClockClient* DBusThreadManager::GetSystemClockClient() { |
233 return client_bundle_->system_clock_client(); | 228 return client_bundle_->system_clock_client(); |
(...skipping 11 matching lines...) Expand all Loading... |
245 GetCryptohomeClient()->Init(GetSystemBus()); | 240 GetCryptohomeClient()->Init(GetSystemBus()); |
246 GetDebugDaemonClient()->Init(GetSystemBus()); | 241 GetDebugDaemonClient()->Init(GetSystemBus()); |
247 GetEasyUnlockClient()->Init(GetSystemBus()); | 242 GetEasyUnlockClient()->Init(GetSystemBus()); |
248 GetGsmSMSClient()->Init(GetSystemBus()); | 243 GetGsmSMSClient()->Init(GetSystemBus()); |
249 GetImageBurnerClient()->Init(GetSystemBus()); | 244 GetImageBurnerClient()->Init(GetSystemBus()); |
250 GetIntrospectableClient()->Init(GetSystemBus()); | 245 GetIntrospectableClient()->Init(GetSystemBus()); |
251 GetLorgnetteManagerClient()->Init(GetSystemBus()); | 246 GetLorgnetteManagerClient()->Init(GetSystemBus()); |
252 GetModemMessagingClient()->Init(GetSystemBus()); | 247 GetModemMessagingClient()->Init(GetSystemBus()); |
253 GetPermissionBrokerClient()->Init(GetSystemBus()); | 248 GetPermissionBrokerClient()->Init(GetSystemBus()); |
254 GetPeerDaemonManagerClient()->Init(GetSystemBus()); | 249 GetPeerDaemonManagerClient()->Init(GetSystemBus()); |
255 GetPrivetDaemonManagerClient()->Init(GetSystemBus()); | |
256 GetPowerManagerClient()->Init(GetSystemBus()); | 250 GetPowerManagerClient()->Init(GetSystemBus()); |
257 GetSessionManagerClient()->Init(GetSystemBus()); | 251 GetSessionManagerClient()->Init(GetSystemBus()); |
258 GetShillDeviceClient()->Init(GetSystemBus()); | 252 GetShillDeviceClient()->Init(GetSystemBus()); |
259 GetShillIPConfigClient()->Init(GetSystemBus()); | 253 GetShillIPConfigClient()->Init(GetSystemBus()); |
260 GetShillManagerClient()->Init(GetSystemBus()); | 254 GetShillManagerClient()->Init(GetSystemBus()); |
261 GetShillServiceClient()->Init(GetSystemBus()); | 255 GetShillServiceClient()->Init(GetSystemBus()); |
262 GetShillProfileClient()->Init(GetSystemBus()); | 256 GetShillProfileClient()->Init(GetSystemBus()); |
263 GetShillThirdPartyVpnDriverClient()->Init(GetSystemBus()); | 257 GetShillThirdPartyVpnDriverClient()->Init(GetSystemBus()); |
264 GetSMSClient()->Init(GetSystemBus()); | 258 GetSMSClient()->Init(GetSystemBus()); |
265 GetSystemClockClient()->Init(GetSystemBus()); | 259 GetSystemClockClient()->Init(GetSystemBus()); |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 DBusThreadManager::Get()->client_bundle_->peer_daemon_manager_client_ = | 509 DBusThreadManager::Get()->client_bundle_->peer_daemon_manager_client_ = |
516 std::move(client); | 510 std::move(client); |
517 } | 511 } |
518 | 512 |
519 void DBusThreadManagerSetter::SetPermissionBrokerClient( | 513 void DBusThreadManagerSetter::SetPermissionBrokerClient( |
520 std::unique_ptr<PermissionBrokerClient> client) { | 514 std::unique_ptr<PermissionBrokerClient> client) { |
521 DBusThreadManager::Get()->client_bundle_->permission_broker_client_ = | 515 DBusThreadManager::Get()->client_bundle_->permission_broker_client_ = |
522 std::move(client); | 516 std::move(client); |
523 } | 517 } |
524 | 518 |
525 void DBusThreadManagerSetter::SetPrivetDaemonManagerClient( | |
526 std::unique_ptr<PrivetDaemonManagerClient> client) { | |
527 DBusThreadManager::Get()->client_bundle_->privet_daemon_manager_client_ = | |
528 std::move(client); | |
529 } | |
530 | |
531 void DBusThreadManagerSetter::SetPowerManagerClient( | 519 void DBusThreadManagerSetter::SetPowerManagerClient( |
532 std::unique_ptr<PowerManagerClient> client) { | 520 std::unique_ptr<PowerManagerClient> client) { |
533 DBusThreadManager::Get()->client_bundle_->power_manager_client_ = | 521 DBusThreadManager::Get()->client_bundle_->power_manager_client_ = |
534 std::move(client); | 522 std::move(client); |
535 } | 523 } |
536 | 524 |
537 void DBusThreadManagerSetter::SetSessionManagerClient( | 525 void DBusThreadManagerSetter::SetSessionManagerClient( |
538 std::unique_ptr<SessionManagerClient> client) { | 526 std::unique_ptr<SessionManagerClient> client) { |
539 DBusThreadManager::Get()->client_bundle_->session_manager_client_ = | 527 DBusThreadManager::Get()->client_bundle_->session_manager_client_ = |
540 std::move(client); | 528 std::move(client); |
541 } | 529 } |
542 | 530 |
543 void DBusThreadManagerSetter::SetSMSClient(std::unique_ptr<SMSClient> client) { | 531 void DBusThreadManagerSetter::SetSMSClient(std::unique_ptr<SMSClient> client) { |
544 DBusThreadManager::Get()->client_bundle_->sms_client_ = std::move(client); | 532 DBusThreadManager::Get()->client_bundle_->sms_client_ = std::move(client); |
545 } | 533 } |
546 | 534 |
547 void DBusThreadManagerSetter::SetSystemClockClient( | 535 void DBusThreadManagerSetter::SetSystemClockClient( |
548 std::unique_ptr<SystemClockClient> client) { | 536 std::unique_ptr<SystemClockClient> client) { |
549 DBusThreadManager::Get()->client_bundle_->system_clock_client_ = | 537 DBusThreadManager::Get()->client_bundle_->system_clock_client_ = |
550 std::move(client); | 538 std::move(client); |
551 } | 539 } |
552 | 540 |
553 void DBusThreadManagerSetter::SetUpdateEngineClient( | 541 void DBusThreadManagerSetter::SetUpdateEngineClient( |
554 std::unique_ptr<UpdateEngineClient> client) { | 542 std::unique_ptr<UpdateEngineClient> client) { |
555 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = | 543 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = |
556 std::move(client); | 544 std::move(client); |
557 } | 545 } |
558 | 546 |
559 } // namespace chromeos | 547 } // namespace chromeos |
OLD | NEW |