| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/bluetooth_profile_chromeos.h" | 5 #include "device/bluetooth/bluetooth_profile_chromeos.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "base/task_runner_util.h" | 17 #include "base/task_runner_util.h" |
| 18 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
| 19 #include "base/threading/worker_pool.h" | 19 #include "base/threading/worker_pool.h" |
| 20 #include "chromeos/dbus/bluetooth_profile_manager_client.h" | 20 #include "chromeos/dbus/bluetooth_profile_manager_client.h" |
| 21 #include "chromeos/dbus/bluetooth_profile_service_provider.h" | 21 #include "chromeos/dbus/bluetooth_profile_service_provider.h" |
| 22 #include "chromeos/dbus/dbus_thread_manager.h" | 22 #include "chromeos/dbus/dbus_thread_manager.h" |
| 23 #include "dbus/bus.h" | 23 #include "dbus/bus.h" |
| 24 #include "dbus/file_descriptor.h" | 24 #include "dbus/file_descriptor.h" |
| 25 #include "dbus/object_path.h" | 25 #include "dbus/object_path.h" |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 static_cast<BluetoothAdapterChromeOS*>(adapter.get())-> | 244 static_cast<BluetoothAdapterChromeOS*>(adapter.get())-> |
| 245 GetDeviceWithPath(device_path); | 245 GetDeviceWithPath(device_path); |
| 246 DCHECK(device); | 246 DCHECK(device); |
| 247 | 247 |
| 248 scoped_refptr<BluetoothSocket> socket(( | 248 scoped_refptr<BluetoothSocket> socket(( |
| 249 BluetoothSocketChromeOS::Create(fd.get()))); | 249 BluetoothSocketChromeOS::Create(fd.get()))); |
| 250 connection_callback_.Run(device, socket); | 250 connection_callback_.Run(device, socket); |
| 251 } | 251 } |
| 252 | 252 |
| 253 } // namespace chromeos | 253 } // namespace chromeos |
| OLD | NEW |