Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: chromeos/dbus/dbus_thread_manager.cc

Issue 887083002: Add DBus Bindings for leaderd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ctl-X Ctl-S saves your work dave... Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 11 matching lines...) Expand all
22 #include "chromeos/dbus/cras_audio_client.h" 22 #include "chromeos/dbus/cras_audio_client.h"
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/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/lorgnette_manager_client.h" 33 #include "chromeos/dbus/lorgnette_manager_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"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 return client_bundle_->cryptohome_client(); 179 return client_bundle_->cryptohome_client();
179 } 180 }
180 181
181 DebugDaemonClient* DBusThreadManager::GetDebugDaemonClient() { 182 DebugDaemonClient* DBusThreadManager::GetDebugDaemonClient() {
182 return client_bundle_->debug_daemon_client(); 183 return client_bundle_->debug_daemon_client();
183 } 184 }
184 185
185 EasyUnlockClient* DBusThreadManager::GetEasyUnlockClient() { 186 EasyUnlockClient* DBusThreadManager::GetEasyUnlockClient() {
186 return client_bundle_->easy_unlock_client(); 187 return client_bundle_->easy_unlock_client();
187 } 188 }
189
190 LeadershipDaemonManagerClient*
191 DBusThreadManager::GetLeadershipDaemonManagerClient() {
192 return client_bundle_->leadership_daemon_manager_client();
193 }
194
188 LorgnetteManagerClient* 195 LorgnetteManagerClient*
189 DBusThreadManager::GetLorgnetteManagerClient() { 196 DBusThreadManager::GetLorgnetteManagerClient() {
190 return client_bundle_->lorgnette_manager_client(); 197 return client_bundle_->lorgnette_manager_client();
191 } 198 }
192 199
193 ShillDeviceClient* 200 ShillDeviceClient*
194 DBusThreadManager::GetShillDeviceClient() { 201 DBusThreadManager::GetShillDeviceClient() {
195 return client_bundle_->shill_device_client(); 202 return client_bundle_->shill_device_client();
196 } 203 }
197 204
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 GetBluetoothMediaTransportClient()->Init(GetSystemBus()); 308 GetBluetoothMediaTransportClient()->Init(GetSystemBus());
302 GetBluetoothProfileManagerClient()->Init(GetSystemBus()); 309 GetBluetoothProfileManagerClient()->Init(GetSystemBus());
303 GetCrasAudioClient()->Init(GetSystemBus()); 310 GetCrasAudioClient()->Init(GetSystemBus());
304 GetCrosDisksClient()->Init(GetSystemBus()); 311 GetCrosDisksClient()->Init(GetSystemBus());
305 GetCryptohomeClient()->Init(GetSystemBus()); 312 GetCryptohomeClient()->Init(GetSystemBus());
306 GetDebugDaemonClient()->Init(GetSystemBus()); 313 GetDebugDaemonClient()->Init(GetSystemBus());
307 GetEasyUnlockClient()->Init(GetSystemBus()); 314 GetEasyUnlockClient()->Init(GetSystemBus());
308 GetGsmSMSClient()->Init(GetSystemBus()); 315 GetGsmSMSClient()->Init(GetSystemBus());
309 GetImageBurnerClient()->Init(GetSystemBus()); 316 GetImageBurnerClient()->Init(GetSystemBus());
310 GetIntrospectableClient()->Init(GetSystemBus()); 317 GetIntrospectableClient()->Init(GetSystemBus());
318 GetLeadershipDaemonManagerClient()->Init(GetSystemBus());
311 GetLorgnetteManagerClient()->Init(GetSystemBus()); 319 GetLorgnetteManagerClient()->Init(GetSystemBus());
312 GetModemMessagingClient()->Init(GetSystemBus()); 320 GetModemMessagingClient()->Init(GetSystemBus());
313 GetPermissionBrokerClient()->Init(GetSystemBus()); 321 GetPermissionBrokerClient()->Init(GetSystemBus());
314 GetPeerDaemonManagerClient()->Init(GetSystemBus()); 322 GetPeerDaemonManagerClient()->Init(GetSystemBus());
315 GetPowerManagerClient()->Init(GetSystemBus()); 323 GetPowerManagerClient()->Init(GetSystemBus());
316 GetPrivetDaemonClient()->Init(GetSystemBus()); 324 GetPrivetDaemonClient()->Init(GetSystemBus());
317 GetSessionManagerClient()->Init(GetSystemBus()); 325 GetSessionManagerClient()->Init(GetSystemBus());
318 GetShillDeviceClient()->Init(GetSystemBus()); 326 GetShillDeviceClient()->Init(GetSystemBus());
319 GetShillIPConfigClient()->Init(GetSystemBus()); 327 GetShillIPConfigClient()->Init(GetSystemBus());
320 GetShillManagerClient()->Init(GetSystemBus()); 328 GetShillManagerClient()->Init(GetSystemBus());
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 scoped_ptr<DebugDaemonClient> client) { 537 scoped_ptr<DebugDaemonClient> client) {
530 DBusThreadManager::Get()->client_bundle_->debug_daemon_client_ = 538 DBusThreadManager::Get()->client_bundle_->debug_daemon_client_ =
531 client.Pass(); 539 client.Pass();
532 } 540 }
533 541
534 void DBusThreadManagerSetter::SetEasyUnlockClient( 542 void DBusThreadManagerSetter::SetEasyUnlockClient(
535 scoped_ptr<EasyUnlockClient> client) { 543 scoped_ptr<EasyUnlockClient> client) {
536 DBusThreadManager::Get()->client_bundle_->easy_unlock_client_ = client.Pass(); 544 DBusThreadManager::Get()->client_bundle_->easy_unlock_client_ = client.Pass();
537 } 545 }
538 546
547 void DBusThreadManagerSetter::SetLeadershipDaemonManagerClient(
548 scoped_ptr<LeadershipDaemonManagerClient> client) {
549 DBusThreadManager::Get()->client_bundle_->leadership_daemon_manager_client_ =
550 client.Pass();
551 }
552
539 void DBusThreadManagerSetter::SetLorgnetteManagerClient( 553 void DBusThreadManagerSetter::SetLorgnetteManagerClient(
540 scoped_ptr<LorgnetteManagerClient> client) { 554 scoped_ptr<LorgnetteManagerClient> client) {
541 DBusThreadManager::Get()->client_bundle_->lorgnette_manager_client_ = 555 DBusThreadManager::Get()->client_bundle_->lorgnette_manager_client_ =
542 client.Pass(); 556 client.Pass();
543 } 557 }
544 558
545 void DBusThreadManagerSetter::SetShillDeviceClient( 559 void DBusThreadManagerSetter::SetShillDeviceClient(
546 scoped_ptr<ShillDeviceClient> client) { 560 scoped_ptr<ShillDeviceClient> client) {
547 DBusThreadManager::Get()->client_bundle_->shill_device_client_ = 561 DBusThreadManager::Get()->client_bundle_->shill_device_client_ =
548 client.Pass(); 562 client.Pass();
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 client.Pass(); 674 client.Pass();
661 } 675 }
662 676
663 void DBusThreadManagerSetter::SetUpdateEngineClient( 677 void DBusThreadManagerSetter::SetUpdateEngineClient(
664 scoped_ptr<UpdateEngineClient> client) { 678 scoped_ptr<UpdateEngineClient> client) {
665 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = 679 DBusThreadManager::Get()->client_bundle_->update_engine_client_ =
666 client.Pass(); 680 client.Pass();
667 } 681 }
668 682
669 } // namespace chromeos 683 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/fake_leadership_daemon_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698