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

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

Issue 935933002: Adds metronome time sync dbus client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 13 matching lines...) Expand all
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/session_manager_client.h" 44 #include "chromeos/dbus/session_manager_client.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 LeadershipDaemonManagerClient* 187 LeadershipDaemonManagerClient*
187 DBusThreadManager::GetLeadershipDaemonManagerClient() { 188 DBusThreadManager::GetLeadershipDaemonManagerClient() {
188 return client_bundle_->leadership_daemon_manager_client(); 189 return client_bundle_->leadership_daemon_manager_client();
189 } 190 }
190 191
191 LorgnetteManagerClient* 192 LorgnetteManagerClient*
192 DBusThreadManager::GetLorgnetteManagerClient() { 193 DBusThreadManager::GetLorgnetteManagerClient() {
193 return client_bundle_->lorgnette_manager_client(); 194 return client_bundle_->lorgnette_manager_client();
194 } 195 }
195 196
197 MetronomeClient* DBusThreadManager::GetMetronomeClient() {
198 return client_bundle_->metronome_client();
199 }
200
196 ShillDeviceClient* 201 ShillDeviceClient*
197 DBusThreadManager::GetShillDeviceClient() { 202 DBusThreadManager::GetShillDeviceClient() {
198 return client_bundle_->shill_device_client(); 203 return client_bundle_->shill_device_client();
199 } 204 }
200 205
201 ShillIPConfigClient* 206 ShillIPConfigClient*
202 DBusThreadManager::GetShillIPConfigClient() { 207 DBusThreadManager::GetShillIPConfigClient() {
203 return client_bundle_->shill_ipconfig_client(); 208 return client_bundle_->shill_ipconfig_client();
204 } 209 }
205 210
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 GetCrasAudioClient()->Init(GetSystemBus()); 307 GetCrasAudioClient()->Init(GetSystemBus());
303 GetCrosDisksClient()->Init(GetSystemBus()); 308 GetCrosDisksClient()->Init(GetSystemBus());
304 GetCryptohomeClient()->Init(GetSystemBus()); 309 GetCryptohomeClient()->Init(GetSystemBus());
305 GetDebugDaemonClient()->Init(GetSystemBus()); 310 GetDebugDaemonClient()->Init(GetSystemBus());
306 GetEasyUnlockClient()->Init(GetSystemBus()); 311 GetEasyUnlockClient()->Init(GetSystemBus());
307 GetGsmSMSClient()->Init(GetSystemBus()); 312 GetGsmSMSClient()->Init(GetSystemBus());
308 GetImageBurnerClient()->Init(GetSystemBus()); 313 GetImageBurnerClient()->Init(GetSystemBus());
309 GetIntrospectableClient()->Init(GetSystemBus()); 314 GetIntrospectableClient()->Init(GetSystemBus());
310 GetLeadershipDaemonManagerClient()->Init(GetSystemBus()); 315 GetLeadershipDaemonManagerClient()->Init(GetSystemBus());
311 GetLorgnetteManagerClient()->Init(GetSystemBus()); 316 GetLorgnetteManagerClient()->Init(GetSystemBus());
317 GetMetronomeClient()->Init(GetSystemBus());
312 GetModemMessagingClient()->Init(GetSystemBus()); 318 GetModemMessagingClient()->Init(GetSystemBus());
313 GetPermissionBrokerClient()->Init(GetSystemBus()); 319 GetPermissionBrokerClient()->Init(GetSystemBus());
314 GetPeerDaemonManagerClient()->Init(GetSystemBus()); 320 GetPeerDaemonManagerClient()->Init(GetSystemBus());
315 GetPowerManagerClient()->Init(GetSystemBus()); 321 GetPowerManagerClient()->Init(GetSystemBus());
316 GetSessionManagerClient()->Init(GetSystemBus()); 322 GetSessionManagerClient()->Init(GetSystemBus());
317 GetShillDeviceClient()->Init(GetSystemBus()); 323 GetShillDeviceClient()->Init(GetSystemBus());
318 GetShillIPConfigClient()->Init(GetSystemBus()); 324 GetShillIPConfigClient()->Init(GetSystemBus());
319 GetShillManagerClient()->Init(GetSystemBus()); 325 GetShillManagerClient()->Init(GetSystemBus());
320 GetShillServiceClient()->Init(GetSystemBus()); 326 GetShillServiceClient()->Init(GetSystemBus());
321 GetShillProfileClient()->Init(GetSystemBus()); 327 GetShillProfileClient()->Init(GetSystemBus());
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 DBusThreadManager::Get()->client_bundle_->leadership_daemon_manager_client_ = 546 DBusThreadManager::Get()->client_bundle_->leadership_daemon_manager_client_ =
541 client.Pass(); 547 client.Pass();
542 } 548 }
543 549
544 void DBusThreadManagerSetter::SetLorgnetteManagerClient( 550 void DBusThreadManagerSetter::SetLorgnetteManagerClient(
545 scoped_ptr<LorgnetteManagerClient> client) { 551 scoped_ptr<LorgnetteManagerClient> client) {
546 DBusThreadManager::Get()->client_bundle_->lorgnette_manager_client_ = 552 DBusThreadManager::Get()->client_bundle_->lorgnette_manager_client_ =
547 client.Pass(); 553 client.Pass();
548 } 554 }
549 555
556 void DBusThreadManagerSetter::SetMetronomeClient(
557 scoped_ptr<MetronomeClient> client) {
558 DBusThreadManager::Get()->client_bundle_->metronome_client_ = client.Pass();
559 }
560
550 void DBusThreadManagerSetter::SetShillDeviceClient( 561 void DBusThreadManagerSetter::SetShillDeviceClient(
551 scoped_ptr<ShillDeviceClient> client) { 562 scoped_ptr<ShillDeviceClient> client) {
552 DBusThreadManager::Get()->client_bundle_->shill_device_client_ = 563 DBusThreadManager::Get()->client_bundle_->shill_device_client_ =
553 client.Pass(); 564 client.Pass();
554 } 565 }
555 566
556 void DBusThreadManagerSetter::SetShillIPConfigClient( 567 void DBusThreadManagerSetter::SetShillIPConfigClient(
557 scoped_ptr<ShillIPConfigClient> client) { 568 scoped_ptr<ShillIPConfigClient> client) {
558 DBusThreadManager::Get()->client_bundle_->shill_ipconfig_client_ = 569 DBusThreadManager::Get()->client_bundle_->shill_ipconfig_client_ =
559 client.Pass(); 570 client.Pass();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 client.Pass(); 670 client.Pass();
660 } 671 }
661 672
662 void DBusThreadManagerSetter::SetUpdateEngineClient( 673 void DBusThreadManagerSetter::SetUpdateEngineClient(
663 scoped_ptr<UpdateEngineClient> client) { 674 scoped_ptr<UpdateEngineClient> client) {
664 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = 675 DBusThreadManager::Get()->client_bundle_->update_engine_client_ =
665 client.Pass(); 676 client.Pass();
666 } 677 }
667 678
668 } // namespace chromeos 679 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698