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

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

Issue 996013003: privetd: Expose dbus API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mysterious build failure Created 5 years, 9 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
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/fake_privet_daemon_manager_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23 matching lines...) Expand all
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
279 PowerManagerClient* DBusThreadManager::GetPowerManagerClient() { 280 PowerManagerClient* DBusThreadManager::GetPowerManagerClient() {
280 return client_bundle_->power_manager_client(); 281 return client_bundle_->power_manager_client();
281 } 282 }
282 283
284 PrivetDaemonManagerClient* DBusThreadManager::GetPrivetDaemonManagerClient() {
285 return client_bundle_->privet_daemon_manager_client();
286 }
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();
289 } 294 }
290 295
291 SystemClockClient* DBusThreadManager::GetSystemClockClient() { 296 SystemClockClient* DBusThreadManager::GetSystemClockClient() {
292 return client_bundle_->system_clock_client(); 297 return client_bundle_->system_clock_client();
(...skipping 23 matching lines...) Expand all
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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 DBusThreadManager::Get()->client_bundle_->peer_daemon_manager_client_ = 658 DBusThreadManager::Get()->client_bundle_->peer_daemon_manager_client_ =
653 client.Pass(); 659 client.Pass();
654 } 660 }
655 661
656 void DBusThreadManagerSetter::SetPermissionBrokerClient( 662 void DBusThreadManagerSetter::SetPermissionBrokerClient(
657 scoped_ptr<PermissionBrokerClient> client) { 663 scoped_ptr<PermissionBrokerClient> client) {
658 DBusThreadManager::Get()->client_bundle_->permission_broker_client_ = 664 DBusThreadManager::Get()->client_bundle_->permission_broker_client_ =
659 client.Pass(); 665 client.Pass();
660 } 666 }
661 667
668 void DBusThreadManagerSetter::SetPrivetDaemonManagerClient(
669 scoped_ptr<PrivetDaemonManagerClient> client) {
670 DBusThreadManager::Get()->client_bundle_->privet_daemon_manager_client_ =
671 client.Pass();
672 }
673
662 void DBusThreadManagerSetter::SetPowerManagerClient( 674 void DBusThreadManagerSetter::SetPowerManagerClient(
663 scoped_ptr<PowerManagerClient> client) { 675 scoped_ptr<PowerManagerClient> client) {
664 DBusThreadManager::Get()->client_bundle_->power_manager_client_ = 676 DBusThreadManager::Get()->client_bundle_->power_manager_client_ =
665 client.Pass(); 677 client.Pass();
666 } 678 }
667 679
668 void DBusThreadManagerSetter::SetSessionManagerClient( 680 void DBusThreadManagerSetter::SetSessionManagerClient(
669 scoped_ptr<SessionManagerClient> client) { 681 scoped_ptr<SessionManagerClient> client) {
670 DBusThreadManager::Get()->client_bundle_->session_manager_client_ = 682 DBusThreadManager::Get()->client_bundle_->session_manager_client_ =
671 client.Pass(); 683 client.Pass();
672 } 684 }
673 685
674 void DBusThreadManagerSetter::SetSMSClient(scoped_ptr<SMSClient> client) { 686 void DBusThreadManagerSetter::SetSMSClient(scoped_ptr<SMSClient> client) {
675 DBusThreadManager::Get()->client_bundle_->sms_client_ = client.Pass(); 687 DBusThreadManager::Get()->client_bundle_->sms_client_ = client.Pass();
676 } 688 }
677 689
678 void DBusThreadManagerSetter::SetSystemClockClient( 690 void DBusThreadManagerSetter::SetSystemClockClient(
679 scoped_ptr<SystemClockClient> client) { 691 scoped_ptr<SystemClockClient> client) {
680 DBusThreadManager::Get()->client_bundle_->system_clock_client_ = 692 DBusThreadManager::Get()->client_bundle_->system_clock_client_ =
681 client.Pass(); 693 client.Pass();
682 } 694 }
683 695
684 void DBusThreadManagerSetter::SetUpdateEngineClient( 696 void DBusThreadManagerSetter::SetUpdateEngineClient(
685 scoped_ptr<UpdateEngineClient> client) { 697 scoped_ptr<UpdateEngineClient> client) {
686 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = 698 DBusThreadManager::Get()->client_bundle_->update_engine_client_ =
687 client.Pass(); 699 client.Pass();
688 } 700 }
689 701
690 } // namespace chromeos 702 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/fake_privet_daemon_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698