OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/arc/bluetooth/arc_bluetooth_bridge.h" | 5 #include "components/arc/bluetooth/arc_bluetooth_bridge.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <iomanip> | 10 #include <iomanip> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/posix/eintr_wrapper.h" | 15 #include "base/posix/eintr_wrapper.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "components/arc/arc_bridge_service.h" | 20 #include "components/arc/arc_bridge_service.h" |
21 #include "components/arc/bluetooth/bluetooth_type_converters.h" | 21 #include "components/arc/bluetooth/bluetooth_type_converters.h" |
22 #include "device/bluetooth/bluetooth_adapter_factory.h" | 22 #include "device/bluetooth/bluetooth_adapter_factory.h" |
23 #include "device/bluetooth/bluetooth_device.h" | 23 #include "device/bluetooth/bluetooth_device.h" |
24 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h" | 24 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h" |
25 #include "device/bluetooth/bluetooth_remote_gatt_descriptor.h" | 25 #include "device/bluetooth/bluetooth_remote_gatt_descriptor.h" |
26 #include "device/bluetooth/bluetooth_remote_gatt_service.h" | 26 #include "device/bluetooth/bluetooth_remote_gatt_service.h" |
27 | 27 |
28 using device::BluetoothAdapter; | 28 using device::BluetoothAdapter; |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 // to | 708 // to |
709 // make sure the bond state machine on Android is ready to take the | 709 // make sure the bond state machine on Android is ready to take the |
710 // pair-done event. Otherwise the pair-done event will be dropped as an | 710 // pair-done event. Otherwise the pair-done event will be dropped as an |
711 // invalid change of paired status. | 711 // invalid change of paired status. |
712 OnPairing(addr->Clone()); | 712 OnPairing(addr->Clone()); |
713 OnPairedDone(std::move(addr)); | 713 OnPairedDone(std::move(addr)); |
714 } | 714 } |
715 } | 715 } |
716 | 716 |
717 } // namespace arc | 717 } // namespace arc |
OLD | NEW |