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

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: Removing the service instead of renaming it Created 5 years, 1 month 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_arc_bridge_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"
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"
14 #include "chromeos/dbus/audio_dsp_client.h" 13 #include "chromeos/dbus/audio_dsp_client.h"
15 #include "chromeos/dbus/bluetooth_adapter_client.h" 14 #include "chromeos/dbus/bluetooth_adapter_client.h"
16 #include "chromeos/dbus/bluetooth_agent_manager_client.h" 15 #include "chromeos/dbus/bluetooth_agent_manager_client.h"
17 #include "chromeos/dbus/bluetooth_device_client.h" 16 #include "chromeos/dbus/bluetooth_device_client.h"
18 #include "chromeos/dbus/bluetooth_gatt_characteristic_client.h" 17 #include "chromeos/dbus/bluetooth_gatt_characteristic_client.h"
19 #include "chromeos/dbus/bluetooth_gatt_descriptor_client.h" 18 #include "chromeos/dbus/bluetooth_gatt_descriptor_client.h"
20 #include "chromeos/dbus/bluetooth_gatt_manager_client.h" 19 #include "chromeos/dbus/bluetooth_gatt_manager_client.h"
21 #include "chromeos/dbus/bluetooth_gatt_service_client.h" 20 #include "chromeos/dbus/bluetooth_gatt_service_client.h"
22 #include "chromeos/dbus/bluetooth_input_client.h" 21 #include "chromeos/dbus/bluetooth_input_client.h"
23 #include "chromeos/dbus/bluetooth_le_advertising_manager_client.h" 22 #include "chromeos/dbus/bluetooth_le_advertising_manager_client.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 112 }
114 113
115 dbus::Bus* DBusThreadManager::GetSystemBus() { 114 dbus::Bus* DBusThreadManager::GetSystemBus() {
116 return system_bus_.get(); 115 return system_bus_.get();
117 } 116 }
118 117
119 AmplifierClient* DBusThreadManager::GetAmplifierClient() { 118 AmplifierClient* DBusThreadManager::GetAmplifierClient() {
120 return client_bundle_->amplifier_client(); 119 return client_bundle_->amplifier_client();
121 } 120 }
122 121
123 ArcBridgeClient* DBusThreadManager::GetArcBridgeClient() {
124 return client_bundle_->arc_bridge_client();
125 }
126
127 ApManagerClient* DBusThreadManager::GetApManagerClient() { 122 ApManagerClient* DBusThreadManager::GetApManagerClient() {
128 return client_bundle_->ap_manager_client(); 123 return client_bundle_->ap_manager_client();
129 } 124 }
130 125
131 AudioDspClient* DBusThreadManager::GetAudioDspClient() { 126 AudioDspClient* DBusThreadManager::GetAudioDspClient() {
132 return client_bundle_->audio_dsp_client(); 127 return client_bundle_->audio_dsp_client();
133 } 128 }
134 129
135 BluetoothAdapterClient* DBusThreadManager::GetBluetoothAdapterClient() { 130 BluetoothAdapterClient* DBusThreadManager::GetBluetoothAdapterClient() {
136 return client_bundle_->bluetooth_adapter_client(); 131 return client_bundle_->bluetooth_adapter_client();
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 return client_bundle_->system_clock_client(); 300 return client_bundle_->system_clock_client();
306 } 301 }
307 302
308 UpdateEngineClient* DBusThreadManager::GetUpdateEngineClient() { 303 UpdateEngineClient* DBusThreadManager::GetUpdateEngineClient() {
309 return client_bundle_->update_engine_client(); 304 return client_bundle_->update_engine_client();
310 } 305 }
311 306
312 void DBusThreadManager::InitializeClients() { 307 void DBusThreadManager::InitializeClients() {
313 GetAmplifierClient()->Init(GetSystemBus()); 308 GetAmplifierClient()->Init(GetSystemBus());
314 GetApManagerClient()->Init(GetSystemBus()); 309 GetApManagerClient()->Init(GetSystemBus());
315 GetArcBridgeClient()->Init(GetSystemBus());
316 GetAudioDspClient()->Init(GetSystemBus()); 310 GetAudioDspClient()->Init(GetSystemBus());
317 GetBluetoothAdapterClient()->Init(GetSystemBus()); 311 GetBluetoothAdapterClient()->Init(GetSystemBus());
318 GetBluetoothAgentManagerClient()->Init(GetSystemBus()); 312 GetBluetoothAgentManagerClient()->Init(GetSystemBus());
319 GetBluetoothDeviceClient()->Init(GetSystemBus()); 313 GetBluetoothDeviceClient()->Init(GetSystemBus());
320 GetBluetoothGattCharacteristicClient()->Init(GetSystemBus()); 314 GetBluetoothGattCharacteristicClient()->Init(GetSystemBus());
321 GetBluetoothGattDescriptorClient()->Init(GetSystemBus()); 315 GetBluetoothGattDescriptorClient()->Init(GetSystemBus());
322 GetBluetoothGattManagerClient()->Init(GetSystemBus()); 316 GetBluetoothGattManagerClient()->Init(GetSystemBus());
323 GetBluetoothGattServiceClient()->Init(GetSystemBus()); 317 GetBluetoothGattServiceClient()->Init(GetSystemBus());
324 GetBluetoothInputClient()->Init(GetSystemBus()); 318 GetBluetoothInputClient()->Init(GetSystemBus());
325 GetBluetoothLEAdvertisingManagerClient()->Init(GetSystemBus()); 319 GetBluetoothLEAdvertisingManagerClient()->Init(GetSystemBus());
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 } 462 }
469 463
470 DBusThreadManagerSetter::~DBusThreadManagerSetter() { 464 DBusThreadManagerSetter::~DBusThreadManagerSetter() {
471 } 465 }
472 466
473 void DBusThreadManagerSetter::SetAmplifierClient( 467 void DBusThreadManagerSetter::SetAmplifierClient(
474 scoped_ptr<AmplifierClient> client) { 468 scoped_ptr<AmplifierClient> client) {
475 DBusThreadManager::Get()->client_bundle_->amplifier_client_ = client.Pass(); 469 DBusThreadManager::Get()->client_bundle_->amplifier_client_ = client.Pass();
476 } 470 }
477 471
478 void DBusThreadManagerSetter::SetArcBridgeClient(
479 scoped_ptr<ArcBridgeClient> client) {
480 DBusThreadManager::Get()->client_bundle_->arc_bridge_client_ = client.Pass();
481 }
482
483 void DBusThreadManagerSetter::SetAudioDspClient( 472 void DBusThreadManagerSetter::SetAudioDspClient(
484 scoped_ptr<AudioDspClient> client) { 473 scoped_ptr<AudioDspClient> client) {
485 DBusThreadManager::Get()->client_bundle_->audio_dsp_client_ = client.Pass(); 474 DBusThreadManager::Get()->client_bundle_->audio_dsp_client_ = client.Pass();
486 } 475 }
487 476
488 void DBusThreadManagerSetter::SetBluetoothAdapterClient( 477 void DBusThreadManagerSetter::SetBluetoothAdapterClient(
489 scoped_ptr<BluetoothAdapterClient> client) { 478 scoped_ptr<BluetoothAdapterClient> client) {
490 DBusThreadManager::Get()->client_bundle_->bluetooth_adapter_client_ = 479 DBusThreadManager::Get()->client_bundle_->bluetooth_adapter_client_ =
491 client.Pass(); 480 client.Pass();
492 } 481 }
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 client.Pass(); 703 client.Pass();
715 } 704 }
716 705
717 void DBusThreadManagerSetter::SetUpdateEngineClient( 706 void DBusThreadManagerSetter::SetUpdateEngineClient(
718 scoped_ptr<UpdateEngineClient> client) { 707 scoped_ptr<UpdateEngineClient> client) {
719 DBusThreadManager::Get()->client_bundle_->update_engine_client_ = 708 DBusThreadManager::Get()->client_bundle_->update_engine_client_ =
720 client.Pass(); 709 client.Pass();
721 } 710 }
722 711
723 } // namespace chromeos 712 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/fake_arc_bridge_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698