| 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 10 matching lines...) Expand all Loading... |
| 21 #include "chromeos/dbus/gsm_sms_client.h" | 21 #include "chromeos/dbus/gsm_sms_client.h" |
| 22 #include "chromeos/dbus/image_burner_client.h" | 22 #include "chromeos/dbus/image_burner_client.h" |
| 23 #include "chromeos/dbus/introspectable_client.h" | 23 #include "chromeos/dbus/introspectable_client.h" |
| 24 #include "chromeos/dbus/lorgnette_manager_client.h" | 24 #include "chromeos/dbus/lorgnette_manager_client.h" |
| 25 #include "chromeos/dbus/modem_messaging_client.h" | 25 #include "chromeos/dbus/modem_messaging_client.h" |
| 26 #include "chromeos/dbus/nfc_adapter_client.h" | 26 #include "chromeos/dbus/nfc_adapter_client.h" |
| 27 #include "chromeos/dbus/nfc_device_client.h" | 27 #include "chromeos/dbus/nfc_device_client.h" |
| 28 #include "chromeos/dbus/nfc_manager_client.h" | 28 #include "chromeos/dbus/nfc_manager_client.h" |
| 29 #include "chromeos/dbus/nfc_record_client.h" | 29 #include "chromeos/dbus/nfc_record_client.h" |
| 30 #include "chromeos/dbus/nfc_tag_client.h" | 30 #include "chromeos/dbus/nfc_tag_client.h" |
| 31 #include "chromeos/dbus/peer_daemon_manager_client.h" | |
| 32 #include "chromeos/dbus/permission_broker_client.h" | 31 #include "chromeos/dbus/permission_broker_client.h" |
| 33 #include "chromeos/dbus/power_manager_client.h" | 32 #include "chromeos/dbus/power_manager_client.h" |
| 34 #include "chromeos/dbus/session_manager_client.h" | 33 #include "chromeos/dbus/session_manager_client.h" |
| 35 #include "chromeos/dbus/shill_device_client.h" | 34 #include "chromeos/dbus/shill_device_client.h" |
| 36 #include "chromeos/dbus/shill_ipconfig_client.h" | 35 #include "chromeos/dbus/shill_ipconfig_client.h" |
| 37 #include "chromeos/dbus/shill_manager_client.h" | 36 #include "chromeos/dbus/shill_manager_client.h" |
| 38 #include "chromeos/dbus/shill_profile_client.h" | 37 #include "chromeos/dbus/shill_profile_client.h" |
| 39 #include "chromeos/dbus/shill_service_client.h" | 38 #include "chromeos/dbus/shill_service_client.h" |
| 40 #include "chromeos/dbus/shill_third_party_vpn_driver_client.h" | 39 #include "chromeos/dbus/shill_third_party_vpn_driver_client.h" |
| 41 #include "chromeos/dbus/sms_client.h" | 40 #include "chromeos/dbus/sms_client.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 } | 191 } |
| 193 | 192 |
| 194 NfcRecordClient* DBusThreadManager::GetNfcRecordClient() { | 193 NfcRecordClient* DBusThreadManager::GetNfcRecordClient() { |
| 195 return client_bundle_->nfc_record_client(); | 194 return client_bundle_->nfc_record_client(); |
| 196 } | 195 } |
| 197 | 196 |
| 198 NfcTagClient* DBusThreadManager::GetNfcTagClient() { | 197 NfcTagClient* DBusThreadManager::GetNfcTagClient() { |
| 199 return client_bundle_->nfc_tag_client(); | 198 return client_bundle_->nfc_tag_client(); |
| 200 } | 199 } |
| 201 | 200 |
| 202 PeerDaemonManagerClient* DBusThreadManager::GetPeerDaemonManagerClient() { | |
| 203 return client_bundle_->peer_daemon_manager_client(); | |
| 204 } | |
| 205 | |
| 206 PermissionBrokerClient* DBusThreadManager::GetPermissionBrokerClient() { | 201 PermissionBrokerClient* DBusThreadManager::GetPermissionBrokerClient() { |
| 207 return client_bundle_->permission_broker_client(); | 202 return client_bundle_->permission_broker_client(); |
| 208 } | 203 } |
| 209 | 204 |
| 210 PowerManagerClient* DBusThreadManager::GetPowerManagerClient() { | 205 PowerManagerClient* DBusThreadManager::GetPowerManagerClient() { |
| 211 return client_bundle_->power_manager_client(); | 206 return client_bundle_->power_manager_client(); |
| 212 } | 207 } |
| 213 | 208 |
| 214 SessionManagerClient* DBusThreadManager::GetSessionManagerClient() { | 209 SessionManagerClient* DBusThreadManager::GetSessionManagerClient() { |
| 215 return client_bundle_->session_manager_client(); | 210 return client_bundle_->session_manager_client(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 233 GetCrosDisksClient()->Init(GetSystemBus()); | 228 GetCrosDisksClient()->Init(GetSystemBus()); |
| 234 GetCryptohomeClient()->Init(GetSystemBus()); | 229 GetCryptohomeClient()->Init(GetSystemBus()); |
| 235 GetDebugDaemonClient()->Init(GetSystemBus()); | 230 GetDebugDaemonClient()->Init(GetSystemBus()); |
| 236 GetEasyUnlockClient()->Init(GetSystemBus()); | 231 GetEasyUnlockClient()->Init(GetSystemBus()); |
| 237 GetGsmSMSClient()->Init(GetSystemBus()); | 232 GetGsmSMSClient()->Init(GetSystemBus()); |
| 238 GetImageBurnerClient()->Init(GetSystemBus()); | 233 GetImageBurnerClient()->Init(GetSystemBus()); |
| 239 GetIntrospectableClient()->Init(GetSystemBus()); | 234 GetIntrospectableClient()->Init(GetSystemBus()); |
| 240 GetLorgnetteManagerClient()->Init(GetSystemBus()); | 235 GetLorgnetteManagerClient()->Init(GetSystemBus()); |
| 241 GetModemMessagingClient()->Init(GetSystemBus()); | 236 GetModemMessagingClient()->Init(GetSystemBus()); |
| 242 GetPermissionBrokerClient()->Init(GetSystemBus()); | 237 GetPermissionBrokerClient()->Init(GetSystemBus()); |
| 243 GetPeerDaemonManagerClient()->Init(GetSystemBus()); | |
| 244 GetPowerManagerClient()->Init(GetSystemBus()); | 238 GetPowerManagerClient()->Init(GetSystemBus()); |
| 245 GetSessionManagerClient()->Init(GetSystemBus()); | 239 GetSessionManagerClient()->Init(GetSystemBus()); |
| 246 GetShillDeviceClient()->Init(GetSystemBus()); | 240 GetShillDeviceClient()->Init(GetSystemBus()); |
| 247 GetShillIPConfigClient()->Init(GetSystemBus()); | 241 GetShillIPConfigClient()->Init(GetSystemBus()); |
| 248 GetShillManagerClient()->Init(GetSystemBus()); | 242 GetShillManagerClient()->Init(GetSystemBus()); |
| 249 GetShillServiceClient()->Init(GetSystemBus()); | 243 GetShillServiceClient()->Init(GetSystemBus()); |
| 250 GetShillProfileClient()->Init(GetSystemBus()); | 244 GetShillProfileClient()->Init(GetSystemBus()); |
| 251 GetShillThirdPartyVpnDriverClient()->Init(GetSystemBus()); | 245 GetShillThirdPartyVpnDriverClient()->Init(GetSystemBus()); |
| 252 GetSMSClient()->Init(GetSystemBus()); | 246 GetSMSClient()->Init(GetSystemBus()); |
| 253 GetSystemClockClient()->Init(GetSystemBus()); | 247 GetSystemClockClient()->Init(GetSystemBus()); |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 std::unique_ptr<NfcRecordClient> client) { | 485 std::unique_ptr<NfcRecordClient> client) { |
| 492 DBusThreadManager::Get()->client_bundle_->nfc_record_client_ = | 486 DBusThreadManager::Get()->client_bundle_->nfc_record_client_ = |
| 493 std::move(client); | 487 std::move(client); |
| 494 } | 488 } |
| 495 | 489 |
| 496 void DBusThreadManagerSetter::SetNfcTagClient( | 490 void DBusThreadManagerSetter::SetNfcTagClient( |
| 497 std::unique_ptr<NfcTagClient> client) { | 491 std::unique_ptr<NfcTagClient> client) { |
| 498 DBusThreadManager::Get()->client_bundle_->nfc_tag_client_ = std::move(client); | 492 DBusThreadManager::Get()->client_bundle_->nfc_tag_client_ = std::move(client); |
| 499 } | 493 } |
| 500 | 494 |
| 501 void DBusThreadManagerSetter::SetPeerDaemonManagerClient( | |
| 502 std::unique_ptr<PeerDaemonManagerClient> client) { | |
| 503 DBusThreadManager::Get()->client_bundle_->peer_daemon_manager_client_ = | |
| 504 std::move(client); | |
| 505 } | |
| 506 | |
| 507 void DBusThreadManagerSetter::SetPermissionBrokerClient( | 495 void DBusThreadManagerSetter::SetPermissionBrokerClient( |
| 508 std::unique_ptr<PermissionBrokerClient> client) { | 496 std::unique_ptr<PermissionBrokerClient> client) { |
| 509 DBusThreadManager::Get()->client_bundle_->permission_broker_client_ = | 497 DBusThreadManager::Get()->client_bundle_->permission_broker_client_ = |
| 510 std::move(client); | 498 std::move(client); |
| 511 } | 499 } |
| 512 | 500 |
| 513 void DBusThreadManagerSetter::SetPowerManagerClient( | 501 void DBusThreadManagerSetter::SetPowerManagerClient( |
| 514 std::unique_ptr<PowerManagerClient> client) { | 502 std::unique_ptr<PowerManagerClient> client) { |
| 515 DBusThreadManager::Get()->client_bundle_->power_manager_client_ = | 503 DBusThreadManager::Get()->client_bundle_->power_manager_client_ = |
| 516 std::move(client); | 504 std::move(client); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 532 std::move(client); | 520 std::move(client); |
| 533 } | 521 } |
| 534 | 522 |
| 535 void DBusThreadManagerSetter::SetUpdateEngineClient( | 523 void DBusThreadManagerSetter::SetUpdateEngineClient( |
| 536 std::unique_ptr<UpdateEngineClient> client) { | 524 std::unique_ptr<UpdateEngineClient> client) { |
| 537 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = | 525 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = |
| 538 std::move(client); | 526 std::move(client); |
| 539 } | 527 } |
| 540 | 528 |
| 541 } // namespace chromeos | 529 } // namespace chromeos |
| OLD | NEW |