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 #ifndef COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H |
6 #define COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H | 6 #define COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // Authenticates the remote device after it is connected. Used in the | 104 // Authenticates the remote device after it is connected. Used in the |
105 // AUTHENTICATING state. | 105 // AUTHENTICATING state. |
106 std::unique_ptr<cryptauth::Authenticator> authenticator_; | 106 std::unique_ptr<cryptauth::Authenticator> authenticator_; |
107 | 107 |
108 // Used in the FINDING_CONNECTION state to establish a connection to the | 108 // Used in the FINDING_CONNECTION state to establish a connection to the |
109 // remote device. | 109 // remote device. |
110 std::unique_ptr<cryptauth::ConnectionFinder> connection_finder_; | 110 std::unique_ptr<cryptauth::ConnectionFinder> connection_finder_; |
111 | 111 |
112 // Rate limits Bluetooth connections to the same device. Used to in the | 112 // Rate limits Bluetooth connections to the same device. Used to in the |
113 // created cryptauth::ConnectionFinder. | 113 // created cryptauth::ConnectionFinder. |
114 std::unique_ptr<cryptauth::BluetoothThrottler> bluetooth_throttler_; | 114 cryptauth::BluetoothThrottler* bluetooth_throttler_; |
115 | 115 |
116 // After authentication fails, this timer waits for a period of time before | 116 // After authentication fails, this timer waits for a period of time before |
117 // retrying the connection. | 117 // retrying the connection. |
118 base::OneShotTimer authentication_recovery_timer_; | 118 base::OneShotTimer authentication_recovery_timer_; |
119 | 119 |
120 base::WeakPtrFactory<RemoteDeviceLifeCycleImpl> weak_ptr_factory_; | 120 base::WeakPtrFactory<RemoteDeviceLifeCycleImpl> weak_ptr_factory_; |
121 | 121 |
122 DISALLOW_COPY_AND_ASSIGN(RemoteDeviceLifeCycleImpl); | 122 DISALLOW_COPY_AND_ASSIGN(RemoteDeviceLifeCycleImpl); |
123 }; | 123 }; |
124 | 124 |
125 } // namespace proximity_auth | 125 } // namespace proximity_auth |
126 | 126 |
127 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H | 127 #endif // COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H |
OLD | NEW |