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

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

Issue 1421023002: Remove the ARC Bridge Service (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Created 5 years, 2 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"
11 #include "chromeos/dbus/amplifier_client.h" 11 #include "chromeos/dbus/amplifier_client.h"
12 #include "chromeos/dbus/ap_manager_client.h" 12 #include "chromeos/dbus/ap_manager_client.h"
13 #include "chromeos/dbus/arc_bridge_client.h" 13 #include "chromeos/dbus/arc_instance_client.h"
14 #include "chromeos/dbus/audio_dsp_client.h" 14 #include "chromeos/dbus/audio_dsp_client.h"
15 #include "chromeos/dbus/bluetooth_adapter_client.h" 15 #include "chromeos/dbus/bluetooth_adapter_client.h"
16 #include "chromeos/dbus/bluetooth_agent_manager_client.h" 16 #include "chromeos/dbus/bluetooth_agent_manager_client.h"
17 #include "chromeos/dbus/bluetooth_device_client.h" 17 #include "chromeos/dbus/bluetooth_device_client.h"
18 #include "chromeos/dbus/bluetooth_gatt_characteristic_client.h" 18 #include "chromeos/dbus/bluetooth_gatt_characteristic_client.h"
19 #include "chromeos/dbus/bluetooth_gatt_descriptor_client.h" 19 #include "chromeos/dbus/bluetooth_gatt_descriptor_client.h"
20 #include "chromeos/dbus/bluetooth_gatt_manager_client.h" 20 #include "chromeos/dbus/bluetooth_gatt_manager_client.h"
21 #include "chromeos/dbus/bluetooth_gatt_service_client.h" 21 #include "chromeos/dbus/bluetooth_gatt_service_client.h"
22 #include "chromeos/dbus/bluetooth_input_client.h" 22 #include "chromeos/dbus/bluetooth_input_client.h"
23 #include "chromeos/dbus/bluetooth_le_advertising_manager_client.h" 23 #include "chromeos/dbus/bluetooth_le_advertising_manager_client.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 113 }
114 114
115 dbus::Bus* DBusThreadManager::GetSystemBus() { 115 dbus::Bus* DBusThreadManager::GetSystemBus() {
116 return system_bus_.get(); 116 return system_bus_.get();
117 } 117 }
118 118
119 AmplifierClient* DBusThreadManager::GetAmplifierClient() { 119 AmplifierClient* DBusThreadManager::GetAmplifierClient() {
120 return client_bundle_->amplifier_client(); 120 return client_bundle_->amplifier_client();
121 } 121 }
122 122
123 ArcBridgeClient* DBusThreadManager::GetArcBridgeClient() { 123 ArcInstanceClient* DBusThreadManager::GetArcInstanceClient() {
124 return client_bundle_->arc_bridge_client(); 124 return client_bundle_->arc_instance_client();
125 } 125 }
126 126
127 ApManagerClient* DBusThreadManager::GetApManagerClient() { 127 ApManagerClient* DBusThreadManager::GetApManagerClient() {
128 return client_bundle_->ap_manager_client(); 128 return client_bundle_->ap_manager_client();
129 } 129 }
130 130
131 AudioDspClient* DBusThreadManager::GetAudioDspClient() { 131 AudioDspClient* DBusThreadManager::GetAudioDspClient() {
132 return client_bundle_->audio_dsp_client(); 132 return client_bundle_->audio_dsp_client();
133 } 133 }
134 134
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 return client_bundle_->system_clock_client(); 305 return client_bundle_->system_clock_client();
306 } 306 }
307 307
308 UpdateEngineClient* DBusThreadManager::GetUpdateEngineClient() { 308 UpdateEngineClient* DBusThreadManager::GetUpdateEngineClient() {
309 return client_bundle_->update_engine_client(); 309 return client_bundle_->update_engine_client();
310 } 310 }
311 311
312 void DBusThreadManager::InitializeClients() { 312 void DBusThreadManager::InitializeClients() {
313 GetAmplifierClient()->Init(GetSystemBus()); 313 GetAmplifierClient()->Init(GetSystemBus());
314 GetApManagerClient()->Init(GetSystemBus()); 314 GetApManagerClient()->Init(GetSystemBus());
315 GetArcBridgeClient()->Init(GetSystemBus()); 315 GetArcInstanceClient()->Init(GetSystemBus());
316 GetAudioDspClient()->Init(GetSystemBus()); 316 GetAudioDspClient()->Init(GetSystemBus());
317 GetBluetoothAdapterClient()->Init(GetSystemBus()); 317 GetBluetoothAdapterClient()->Init(GetSystemBus());
318 GetBluetoothAgentManagerClient()->Init(GetSystemBus()); 318 GetBluetoothAgentManagerClient()->Init(GetSystemBus());
319 GetBluetoothDeviceClient()->Init(GetSystemBus()); 319 GetBluetoothDeviceClient()->Init(GetSystemBus());
320 GetBluetoothGattCharacteristicClient()->Init(GetSystemBus()); 320 GetBluetoothGattCharacteristicClient()->Init(GetSystemBus());
321 GetBluetoothGattDescriptorClient()->Init(GetSystemBus()); 321 GetBluetoothGattDescriptorClient()->Init(GetSystemBus());
322 GetBluetoothGattManagerClient()->Init(GetSystemBus()); 322 GetBluetoothGattManagerClient()->Init(GetSystemBus());
323 GetBluetoothGattServiceClient()->Init(GetSystemBus()); 323 GetBluetoothGattServiceClient()->Init(GetSystemBus());
324 GetBluetoothInputClient()->Init(GetSystemBus()); 324 GetBluetoothInputClient()->Init(GetSystemBus());
325 GetBluetoothLEAdvertisingManagerClient()->Init(GetSystemBus()); 325 GetBluetoothLEAdvertisingManagerClient()->Init(GetSystemBus());
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 } 468 }
469 469
470 DBusThreadManagerSetter::~DBusThreadManagerSetter() { 470 DBusThreadManagerSetter::~DBusThreadManagerSetter() {
471 } 471 }
472 472
473 void DBusThreadManagerSetter::SetAmplifierClient( 473 void DBusThreadManagerSetter::SetAmplifierClient(
474 scoped_ptr<AmplifierClient> client) { 474 scoped_ptr<AmplifierClient> client) {
475 DBusThreadManager::Get()->client_bundle_->amplifier_client_ = client.Pass(); 475 DBusThreadManager::Get()->client_bundle_->amplifier_client_ = client.Pass();
476 } 476 }
477 477
478 void DBusThreadManagerSetter::SetArcBridgeClient( 478 void DBusThreadManagerSetter::SetArcInstanceClient(
479 scoped_ptr<ArcBridgeClient> client) { 479 scoped_ptr<ArcInstanceClient> client) {
480 DBusThreadManager::Get()->client_bundle_->arc_bridge_client_ = client.Pass(); 480 DBusThreadManager::Get()->client_bundle_->arc_instance_client_ =
481 client.Pass();
481 } 482 }
482 483
483 void DBusThreadManagerSetter::SetAudioDspClient( 484 void DBusThreadManagerSetter::SetAudioDspClient(
484 scoped_ptr<AudioDspClient> client) { 485 scoped_ptr<AudioDspClient> client) {
485 DBusThreadManager::Get()->client_bundle_->audio_dsp_client_ = client.Pass(); 486 DBusThreadManager::Get()->client_bundle_->audio_dsp_client_ = client.Pass();
486 } 487 }
487 488
488 void DBusThreadManagerSetter::SetBluetoothAdapterClient( 489 void DBusThreadManagerSetter::SetBluetoothAdapterClient(
489 scoped_ptr<BluetoothAdapterClient> client) { 490 scoped_ptr<BluetoothAdapterClient> client) {
490 DBusThreadManager::Get()->client_bundle_->bluetooth_adapter_client_ = 491 DBusThreadManager::Get()->client_bundle_->bluetooth_adapter_client_ =
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 client.Pass(); 715 client.Pass();
715 } 716 }
716 717
717 void DBusThreadManagerSetter::SetUpdateEngineClient( 718 void DBusThreadManagerSetter::SetUpdateEngineClient(
718 scoped_ptr<UpdateEngineClient> client) { 719 scoped_ptr<UpdateEngineClient> client) {
719 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = 720 DBusThreadManager::Get()->client_bundle_->update_engine_client_ =
720 client.Pass(); 721 client.Pass();
721 } 722 }
722 723
723 } // namespace chromeos 724 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698