OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/remote_device_life_cycle_impl.h" | 5 #include "components/proximity_auth/remote_device_life_cycle_impl.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/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "base/time/default_tick_clock.h" | 13 #include "base/time/default_tick_clock.h" |
14 #include "components/proximity_auth/ble/bluetooth_low_energy_connection.h" | 14 #include "components/proximity_auth/ble/bluetooth_low_energy_connection.h" |
15 #include "components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h
" | 15 #include "components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h
" |
16 #include "components/proximity_auth/bluetooth_connection.h" | 16 #include "components/proximity_auth/bluetooth_connection.h" |
17 #include "components/proximity_auth/bluetooth_connection_finder.h" | 17 #include "components/proximity_auth/bluetooth_connection_finder.h" |
18 #include "components/proximity_auth/bluetooth_throttler_impl.h" | 18 #include "components/proximity_auth/bluetooth_throttler_impl.h" |
19 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" | 19 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" |
20 #include "components/proximity_auth/device_to_device_authenticator.h" | 20 #include "components/proximity_auth/device_to_device_authenticator.h" |
21 #include "components/proximity_auth/logging/logging.h" | 21 #include "components/proximity_auth/logging/logging.h" |
22 #include "components/proximity_auth/messenger_impl.h" | 22 #include "components/proximity_auth/messenger_impl.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 TransitionToState(RemoteDeviceLifeCycle::State::SECURE_CHANNEL_ESTABLISHED); | 166 TransitionToState(RemoteDeviceLifeCycle::State::SECURE_CHANNEL_ESTABLISHED); |
167 } | 167 } |
168 | 168 |
169 void RemoteDeviceLifeCycleImpl::OnDisconnected() { | 169 void RemoteDeviceLifeCycleImpl::OnDisconnected() { |
170 DCHECK(state_ == RemoteDeviceLifeCycle::State::SECURE_CHANNEL_ESTABLISHED); | 170 DCHECK(state_ == RemoteDeviceLifeCycle::State::SECURE_CHANNEL_ESTABLISHED); |
171 messenger_.reset(); | 171 messenger_.reset(); |
172 FindConnection(); | 172 FindConnection(); |
173 } | 173 } |
174 | 174 |
175 } // namespace proximity_auth | 175 } // namespace proximity_auth |
OLD | NEW |