| 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/flimflam_ipconfig_client.h" | 18 #include "chromeos/dbus/flimflam_ipconfig_client.h" |
| 19 #include "chrome/browser/chromeos/dbus/flimflam_network_client.h" | 19 #include "chromeos/dbus/flimflam_network_client.h" |
| 20 #include "chrome/browser/chromeos/dbus/flimflam_profile_client.h" | 20 #include "chromeos/dbus/flimflam_profile_client.h" |
| 21 #include "chrome/browser/chromeos/dbus/image_burner_client.h" | 21 #include "chromeos/dbus/image_burner_client.h" |
| 22 #include "chrome/browser/chromeos/dbus/introspectable_client.h" | 22 #include "chromeos/dbus/introspectable_client.h" |
| 23 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | 23 #include "chromeos/dbus/power_manager_client.h" |
| 24 #include "chrome/browser/chromeos/dbus/session_manager_client.h" | 24 #include "chromeos/dbus/session_manager_client.h" |
| 25 #include "chrome/browser/chromeos/dbus/speech_synthesizer_client.h" | 25 #include "chromeos/dbus/speech_synthesizer_client.h" |
| 26 #include "chrome/browser/chromeos/dbus/update_engine_client.h" | 26 #include "chromeos/dbus/update_engine_client.h" |
| 27 #include "dbus/bus.h" | 27 #include "dbus/bus.h" |
| 28 | 28 |
| 29 namespace chromeos { | 29 namespace chromeos { |
| 30 | 30 |
| 31 static DBusThreadManager* g_dbus_thread_manager = NULL; | 31 static DBusThreadManager* g_dbus_thread_manager = NULL; |
| 32 | 32 |
| 33 // The DBusThreadManager implementation used in production. | 33 // The DBusThreadManager implementation used in production. |
| 34 class DBusThreadManagerImpl : public DBusThreadManager { | 34 class DBusThreadManagerImpl : public DBusThreadManager { |
| 35 public: | 35 public: |
| 36 DBusThreadManagerImpl() { | 36 DBusThreadManagerImpl() { |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 } | 260 } |
| 261 | 261 |
| 262 // static | 262 // static |
| 263 DBusThreadManager* DBusThreadManager::Get() { | 263 DBusThreadManager* DBusThreadManager::Get() { |
| 264 CHECK(g_dbus_thread_manager) | 264 CHECK(g_dbus_thread_manager) |
| 265 << "DBusThreadManager::Get() called before Initialize()"; | 265 << "DBusThreadManager::Get() called before Initialize()"; |
| 266 return g_dbus_thread_manager; | 266 return g_dbus_thread_manager; |
| 267 } | 267 } |
| 268 | 268 |
| 269 } // namespace chromeos | 269 } // namespace chromeos |
| OLD | NEW |