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 "device/bluetooth/dbus/dbus_thread_manager_linux.h" | 5 #include "device/bluetooth/dbus/dbus_thread_manager_linux.h" |
6 | 6 |
| 7 #include "base/message_loop/message_loop.h" |
7 #include "base/threading/thread.h" | 8 #include "base/threading/thread.h" |
8 #include "dbus/bus.h" | 9 #include "dbus/bus.h" |
9 | 10 |
10 namespace bluez { | 11 namespace bluez { |
11 | 12 |
12 static DBusThreadManagerLinux* g_linux_dbus_manager = NULL; | 13 static DBusThreadManagerLinux* g_linux_dbus_manager = NULL; |
13 | 14 |
14 DBusThreadManagerLinux::DBusThreadManagerLinux() { | 15 DBusThreadManagerLinux::DBusThreadManagerLinux() { |
15 base::Thread::Options thread_options; | 16 base::Thread::Options thread_options; |
16 thread_options.message_loop_type = base::MessageLoop::TYPE_IO; | 17 thread_options.message_loop_type = base::MessageLoop::TYPE_IO; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 64 } |
64 | 65 |
65 // static | 66 // static |
66 DBusThreadManagerLinux* DBusThreadManagerLinux::Get() { | 67 DBusThreadManagerLinux* DBusThreadManagerLinux::Get() { |
67 CHECK(g_linux_dbus_manager) | 68 CHECK(g_linux_dbus_manager) |
68 << "LinuxDBusManager::Get() called before Initialize()"; | 69 << "LinuxDBusManager::Get() called before Initialize()"; |
69 return g_linux_dbus_manager; | 70 return g_linux_dbus_manager; |
70 } | 71 } |
71 | 72 |
72 } // namespace bluez | 73 } // namespace bluez |
OLD | NEW |