OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/proximity_auth/bluetooth_connection_finder.h" | 5 #include "components/proximity_auth/bluetooth_connection_finder.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "components/proximity_auth/bluetooth_connection.h" | 14 #include "components/proximity_auth/bluetooth_connection.h" |
15 #include "components/proximity_auth/logging/logging.h" | 15 #include "components/proximity_auth/logging/logging.h" |
16 #include "device/bluetooth/bluetooth_adapter_factory.h" | 16 #include "device/bluetooth/bluetooth_adapter_factory.h" |
17 | 17 |
18 using device::BluetoothAdapter; | 18 using device::BluetoothAdapter; |
19 | 19 |
20 namespace proximity_auth { | 20 namespace proximity_auth { |
21 | 21 |
22 BluetoothConnectionFinder::BluetoothConnectionFinder( | 22 BluetoothConnectionFinder::BluetoothConnectionFinder( |
23 const RemoteDevice& remote_device, | 23 const RemoteDevice& remote_device, |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 << "Connection failed! Scheduling another polling iteration."; | 198 << "Connection failed! Scheduling another polling iteration."; |
199 PostDelayedPoll(); | 199 PostDelayedPoll(); |
200 } | 200 } |
201 } | 201 } |
202 | 202 |
203 void BluetoothConnectionFinder::InvokeCallbackAsync() { | 203 void BluetoothConnectionFinder::InvokeCallbackAsync() { |
204 connection_callback_.Run(std::move(connection_)); | 204 connection_callback_.Run(std::move(connection_)); |
205 } | 205 } |
206 | 206 |
207 } // namespace proximity_auth | 207 } // namespace proximity_auth |
OLD | NEW |