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/bluez/bluetooth_socket_bluez.h" | 5 #include "device/bluetooth/bluez/bluetooth_socket_bluez.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <queue> | 10 #include <queue> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/callback.h" | 15 #include "base/callback.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/memory/linked_ptr.h" | 18 #include "base/memory/linked_ptr.h" |
19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
20 #include "base/sequenced_task_runner.h" | 20 #include "base/sequenced_task_runner.h" |
21 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
23 #include "base/task_runner_util.h" | 23 #include "base/task_runner_util.h" |
24 #include "base/threading/thread_restrictions.h" | 24 #include "base/threading/thread_restrictions.h" |
25 #include "base/threading/thread_task_runner_handle.h" | 25 #include "base/threading/thread_task_runner_handle.h" |
26 #include "base/threading/worker_pool.h" | |
27 #include "dbus/bus.h" | 26 #include "dbus/bus.h" |
28 #include "dbus/object_path.h" | 27 #include "dbus/object_path.h" |
29 #include "device/bluetooth/bluetooth_adapter.h" | 28 #include "device/bluetooth/bluetooth_adapter.h" |
30 #include "device/bluetooth/bluetooth_device.h" | 29 #include "device/bluetooth/bluetooth_device.h" |
31 #include "device/bluetooth/bluetooth_socket.h" | 30 #include "device/bluetooth/bluetooth_socket.h" |
32 #include "device/bluetooth/bluetooth_socket_net.h" | 31 #include "device/bluetooth/bluetooth_socket_net.h" |
33 #include "device/bluetooth/bluetooth_socket_thread.h" | 32 #include "device/bluetooth/bluetooth_socket_thread.h" |
34 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h" | 33 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h" |
35 #include "device/bluetooth/bluez/bluetooth_adapter_profile_bluez.h" | 34 #include "device/bluetooth/bluez/bluetooth_adapter_profile_bluez.h" |
36 #include "device/bluetooth/bluez/bluetooth_device_bluez.h" | 35 #include "device/bluetooth/bluez/bluetooth_device_bluez.h" |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 DCHECK(profile_); | 527 DCHECK(profile_); |
529 | 528 |
530 VLOG(1) << profile_->object_path().value() << ": Release profile"; | 529 VLOG(1) << profile_->object_path().value() << ": Release profile"; |
531 | 530 |
532 static_cast<BluetoothAdapterBlueZ*>(adapter_.get()) | 531 static_cast<BluetoothAdapterBlueZ*>(adapter_.get()) |
533 ->ReleaseProfile(device_path_, profile_); | 532 ->ReleaseProfile(device_path_, profile_); |
534 profile_ = nullptr; | 533 profile_ = nullptr; |
535 } | 534 } |
536 | 535 |
537 } // namespace bluez | 536 } // namespace bluez |
OLD | NEW |