OLD | NEW |
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 "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | 5 #include "chromeos/dbus/dbus_thread_manager.h" |
6 | 6 |
7 #include "base/chromeos/chromeos_version.h" | 7 #include "base/chromeos/chromeos_version.h" |
8 #include "base/threading/thread.h" | 8 #include "base/threading/thread.h" |
9 #include "chrome/browser/chromeos/dbus/bluetooth_adapter_client.h" | 9 #include "chromeos/dbus/bluetooth_adapter_client.h" |
10 #include "chrome/browser/chromeos/dbus/bluetooth_device_client.h" | 10 #include "chromeos/dbus/bluetooth_device_client.h" |
11 #include "chrome/browser/chromeos/dbus/bluetooth_input_client.h" | 11 #include "chromeos/dbus/bluetooth_input_client.h" |
12 #include "chrome/browser/chromeos/dbus/bluetooth_manager_client.h" | 12 #include "chromeos/dbus/bluetooth_manager_client.h" |
13 #include "chrome/browser/chromeos/dbus/bluetooth_node_client.h" | 13 #include "chromeos/dbus/bluetooth_node_client.h" |
14 #include "chrome/browser/chromeos/dbus/cashew_client.h" | 14 #include "chromeos/dbus/cashew_client.h" |
15 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" | 15 #include "chromeos/dbus/cros_disks_client.h" |
16 #include "chrome/browser/chromeos/dbus/cros_disks_client.h" | 16 #include "chromeos/dbus/cryptohome_client.h" |
17 #include "chrome/browser/chromeos/dbus/cryptohome_client.h" | 17 #include "chromeos/dbus/dbus_client_implementation_type.h" |
18 #include "chrome/browser/chromeos/dbus/debug_daemon_client.h" | 18 #include "chromeos/dbus/debug_daemon_client.h" |
19 #include "chrome/browser/chromeos/dbus/flimflam_ipconfig_client.h" | 19 #include "chromeos/dbus/flimflam_ipconfig_client.h" |
20 #include "chrome/browser/chromeos/dbus/flimflam_network_client.h" | 20 #include "chromeos/dbus/flimflam_network_client.h" |
21 #include "chrome/browser/chromeos/dbus/flimflam_profile_client.h" | 21 #include "chromeos/dbus/flimflam_profile_client.h" |
22 #include "chrome/browser/chromeos/dbus/image_burner_client.h" | 22 #include "chromeos/dbus/image_burner_client.h" |
23 #include "chrome/browser/chromeos/dbus/introspectable_client.h" | 23 #include "chromeos/dbus/introspectable_client.h" |
24 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | 24 #include "chromeos/dbus/power_manager_client.h" |
25 #include "chrome/browser/chromeos/dbus/session_manager_client.h" | 25 #include "chromeos/dbus/session_manager_client.h" |
26 #include "chrome/browser/chromeos/dbus/speech_synthesizer_client.h" | 26 #include "chromeos/dbus/speech_synthesizer_client.h" |
27 #include "chrome/browser/chromeos/dbus/update_engine_client.h" | 27 #include "chromeos/dbus/update_engine_client.h" |
28 #include "dbus/bus.h" | 28 #include "dbus/bus.h" |
29 | 29 |
30 namespace chromeos { | 30 namespace chromeos { |
31 | 31 |
32 static DBusThreadManager* g_dbus_thread_manager = NULL; | 32 static DBusThreadManager* g_dbus_thread_manager = NULL; |
33 | 33 |
34 // The DBusThreadManager implementation used in production. | 34 // The DBusThreadManager implementation used in production. |
35 class DBusThreadManagerImpl : public DBusThreadManager { | 35 class DBusThreadManagerImpl : public DBusThreadManager { |
36 public: | 36 public: |
37 DBusThreadManagerImpl() { | 37 DBusThreadManagerImpl() { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 } | 270 } |
271 | 271 |
272 // static | 272 // static |
273 DBusThreadManager* DBusThreadManager::Get() { | 273 DBusThreadManager* DBusThreadManager::Get() { |
274 CHECK(g_dbus_thread_manager) | 274 CHECK(g_dbus_thread_manager) |
275 << "DBusThreadManager::Get() called before Initialize()"; | 275 << "DBusThreadManager::Get() called before Initialize()"; |
276 return g_dbus_thread_manager; | 276 return g_dbus_thread_manager; |
277 } | 277 } |
278 | 278 |
279 } // namespace chromeos | 279 } // namespace chromeos |
OLD | NEW |