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

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

Issue 11887008: Deprecate ShillNetworkClient and add GeolocationHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittest Created 7 years, 11 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 | Annotate | Revision Log
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 <map> 7 #include <map>
8 8
9 #include "base/chromeos/chromeos_version.h" 9 #include "base/chromeos/chromeos_version.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "chromeos/chromeos_switches.h" 13 #include "chromeos/chromeos_switches.h"
14 #include "chromeos/dbus/bluetooth_adapter_client.h" 14 #include "chromeos/dbus/bluetooth_adapter_client.h"
15 #include "chromeos/dbus/bluetooth_device_client.h" 15 #include "chromeos/dbus/bluetooth_device_client.h"
16 #include "chromeos/dbus/bluetooth_input_client.h" 16 #include "chromeos/dbus/bluetooth_input_client.h"
17 #include "chromeos/dbus/bluetooth_manager_client.h" 17 #include "chromeos/dbus/bluetooth_manager_client.h"
18 #include "chromeos/dbus/bluetooth_node_client.h" 18 #include "chromeos/dbus/bluetooth_node_client.h"
19 #include "chromeos/dbus/bluetooth_out_of_band_client.h" 19 #include "chromeos/dbus/bluetooth_out_of_band_client.h"
20 #include "chromeos/dbus/cros_disks_client.h" 20 #include "chromeos/dbus/cros_disks_client.h"
21 #include "chromeos/dbus/cryptohome_client.h" 21 #include "chromeos/dbus/cryptohome_client.h"
22 #include "chromeos/dbus/dbus_client_implementation_type.h" 22 #include "chromeos/dbus/dbus_client_implementation_type.h"
23 #include "chromeos/dbus/dbus_thread_manager_observer.h" 23 #include "chromeos/dbus/dbus_thread_manager_observer.h"
24 #include "chromeos/dbus/debug_daemon_client.h" 24 #include "chromeos/dbus/debug_daemon_client.h"
25 #include "chromeos/dbus/shill_device_client.h" 25 #include "chromeos/dbus/shill_device_client.h"
26 #include "chromeos/dbus/shill_ipconfig_client.h" 26 #include "chromeos/dbus/shill_ipconfig_client.h"
27 #include "chromeos/dbus/shill_manager_client.h" 27 #include "chromeos/dbus/shill_manager_client.h"
28 #include "chromeos/dbus/shill_network_client.h"
29 #include "chromeos/dbus/shill_profile_client.h" 28 #include "chromeos/dbus/shill_profile_client.h"
30 #include "chromeos/dbus/shill_service_client.h" 29 #include "chromeos/dbus/shill_service_client.h"
31 #include "chromeos/dbus/gsm_sms_client.h" 30 #include "chromeos/dbus/gsm_sms_client.h"
32 #include "chromeos/dbus/ibus/ibus_client.h" 31 #include "chromeos/dbus/ibus/ibus_client.h"
33 #include "chromeos/dbus/ibus/ibus_config_client.h" 32 #include "chromeos/dbus/ibus/ibus_config_client.h"
34 #include "chromeos/dbus/ibus/ibus_engine_factory_service.h" 33 #include "chromeos/dbus/ibus/ibus_engine_factory_service.h"
35 #include "chromeos/dbus/ibus/ibus_engine_service.h" 34 #include "chromeos/dbus/ibus/ibus_engine_service.h"
36 #include "chromeos/dbus/ibus/ibus_input_context_client.h" 35 #include "chromeos/dbus/ibus/ibus_input_context_client.h"
37 #include "chromeos/dbus/ibus/ibus_panel_service.h" 36 #include "chromeos/dbus/ibus/ibus_panel_service.h"
38 #include "chromeos/dbus/image_burner_client.h" 37 #include "chromeos/dbus/image_burner_client.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 cryptohome_client_.reset( 94 cryptohome_client_.reset(
96 CryptohomeClient::Create(client_type, system_bus_.get())); 95 CryptohomeClient::Create(client_type, system_bus_.get()));
97 debug_daemon_client_.reset( 96 debug_daemon_client_.reset(
98 DebugDaemonClient::Create(client_type, system_bus_.get())); 97 DebugDaemonClient::Create(client_type, system_bus_.get()));
99 shill_device_client_.reset( 98 shill_device_client_.reset(
100 ShillDeviceClient::Create(client_type, system_bus_.get())); 99 ShillDeviceClient::Create(client_type, system_bus_.get()));
101 shill_ipconfig_client_.reset( 100 shill_ipconfig_client_.reset(
102 ShillIPConfigClient::Create(client_type, system_bus_.get())); 101 ShillIPConfigClient::Create(client_type, system_bus_.get()));
103 shill_manager_client_.reset( 102 shill_manager_client_.reset(
104 ShillManagerClient::Create(client_type, system_bus_.get())); 103 ShillManagerClient::Create(client_type, system_bus_.get()));
105 shill_network_client_.reset(
106 ShillNetworkClient::Create(client_type, system_bus_.get()));
107 shill_profile_client_.reset( 104 shill_profile_client_.reset(
108 ShillProfileClient::Create(client_type, system_bus_.get())); 105 ShillProfileClient::Create(client_type, system_bus_.get()));
109 shill_service_client_.reset( 106 shill_service_client_.reset(
110 ShillServiceClient::Create(client_type, system_bus_.get())); 107 ShillServiceClient::Create(client_type, system_bus_.get()));
111 gsm_sms_client_.reset( 108 gsm_sms_client_.reset(
112 GsmSMSClient::Create(client_type, system_bus_.get())); 109 GsmSMSClient::Create(client_type, system_bus_.get()));
113 image_burner_client_.reset(ImageBurnerClient::Create(client_type, 110 image_burner_client_.reset(ImageBurnerClient::Create(client_type,
114 system_bus_.get())); 111 system_bus_.get()));
115 introspectable_client_.reset( 112 introspectable_client_.reset(
116 IntrospectableClient::Create(client_type, system_bus_.get())); 113 IntrospectableClient::Create(client_type, system_bus_.get()));
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 } 243 }
247 244
248 virtual ShillIPConfigClient* GetShillIPConfigClient() OVERRIDE { 245 virtual ShillIPConfigClient* GetShillIPConfigClient() OVERRIDE {
249 return shill_ipconfig_client_.get(); 246 return shill_ipconfig_client_.get();
250 } 247 }
251 248
252 virtual ShillManagerClient* GetShillManagerClient() OVERRIDE { 249 virtual ShillManagerClient* GetShillManagerClient() OVERRIDE {
253 return shill_manager_client_.get(); 250 return shill_manager_client_.get();
254 } 251 }
255 252
256 virtual ShillNetworkClient* GetShillNetworkClient() OVERRIDE {
257 return shill_network_client_.get();
258 }
259
260 virtual ShillProfileClient* GetShillProfileClient() OVERRIDE { 253 virtual ShillProfileClient* GetShillProfileClient() OVERRIDE {
261 return shill_profile_client_.get(); 254 return shill_profile_client_.get();
262 } 255 }
263 256
264 virtual ShillServiceClient* GetShillServiceClient() OVERRIDE { 257 virtual ShillServiceClient* GetShillServiceClient() OVERRIDE {
265 return shill_service_client_.get(); 258 return shill_service_client_.get();
266 } 259 }
267 260
268 virtual GsmSMSClient* GetGsmSMSClient() OVERRIDE { 261 virtual GsmSMSClient* GetGsmSMSClient() OVERRIDE {
269 return gsm_sms_client_.get(); 262 return gsm_sms_client_.get();
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 scoped_ptr<BluetoothInputClient> bluetooth_input_client_; 355 scoped_ptr<BluetoothInputClient> bluetooth_input_client_;
363 scoped_ptr<BluetoothManagerClient> bluetooth_manager_client_; 356 scoped_ptr<BluetoothManagerClient> bluetooth_manager_client_;
364 scoped_ptr<BluetoothNodeClient> bluetooth_node_client_; 357 scoped_ptr<BluetoothNodeClient> bluetooth_node_client_;
365 scoped_ptr<BluetoothOutOfBandClient> bluetooth_out_of_band_client_; 358 scoped_ptr<BluetoothOutOfBandClient> bluetooth_out_of_band_client_;
366 scoped_ptr<CrosDisksClient> cros_disks_client_; 359 scoped_ptr<CrosDisksClient> cros_disks_client_;
367 scoped_ptr<CryptohomeClient> cryptohome_client_; 360 scoped_ptr<CryptohomeClient> cryptohome_client_;
368 scoped_ptr<DebugDaemonClient> debug_daemon_client_; 361 scoped_ptr<DebugDaemonClient> debug_daemon_client_;
369 scoped_ptr<ShillDeviceClient> shill_device_client_; 362 scoped_ptr<ShillDeviceClient> shill_device_client_;
370 scoped_ptr<ShillIPConfigClient> shill_ipconfig_client_; 363 scoped_ptr<ShillIPConfigClient> shill_ipconfig_client_;
371 scoped_ptr<ShillManagerClient> shill_manager_client_; 364 scoped_ptr<ShillManagerClient> shill_manager_client_;
372 scoped_ptr<ShillNetworkClient> shill_network_client_;
373 scoped_ptr<ShillProfileClient> shill_profile_client_; 365 scoped_ptr<ShillProfileClient> shill_profile_client_;
374 scoped_ptr<ShillServiceClient> shill_service_client_; 366 scoped_ptr<ShillServiceClient> shill_service_client_;
375 scoped_ptr<GsmSMSClient> gsm_sms_client_; 367 scoped_ptr<GsmSMSClient> gsm_sms_client_;
376 scoped_ptr<ImageBurnerClient> image_burner_client_; 368 scoped_ptr<ImageBurnerClient> image_burner_client_;
377 scoped_ptr<IntrospectableClient> introspectable_client_; 369 scoped_ptr<IntrospectableClient> introspectable_client_;
378 scoped_ptr<ModemMessagingClient> modem_messaging_client_; 370 scoped_ptr<ModemMessagingClient> modem_messaging_client_;
379 scoped_ptr<PermissionBrokerClient> permission_broker_client_; 371 scoped_ptr<PermissionBrokerClient> permission_broker_client_;
380 scoped_ptr<PowerManagerClient> power_manager_client_; 372 scoped_ptr<PowerManagerClient> power_manager_client_;
381 scoped_ptr<RootPowerManagerClient> root_power_manager_client_; 373 scoped_ptr<RootPowerManagerClient> root_power_manager_client_;
382 scoped_ptr<SessionManagerClient> session_manager_client_; 374 scoped_ptr<SessionManagerClient> session_manager_client_;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 } 453 }
462 454
463 // static 455 // static
464 DBusThreadManager* DBusThreadManager::Get() { 456 DBusThreadManager* DBusThreadManager::Get() {
465 CHECK(g_dbus_thread_manager) 457 CHECK(g_dbus_thread_manager)
466 << "DBusThreadManager::Get() called before Initialize()"; 458 << "DBusThreadManager::Get() called before Initialize()";
467 return g_dbus_thread_manager; 459 return g_dbus_thread_manager;
468 } 460 }
469 461
470 } // namespace chromeos 462 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698