| 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 #ifndef COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_SYSTEM_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_SYSTEM_H |
| 6 #define COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_SYSTEM_H | 6 #define COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_SYSTEM_H |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 private: | 94 private: |
| 95 // Resumes |remote_device_life_cycle_| after device wakes up and waits a | 95 // Resumes |remote_device_life_cycle_| after device wakes up and waits a |
| 96 // timeout. | 96 // timeout. |
| 97 void ResumeAfterWakeUpTimeout(); | 97 void ResumeAfterWakeUpTimeout(); |
| 98 | 98 |
| 99 // Returns true if the user should be forced to use a password to authenticate | 99 // Returns true if the user should be forced to use a password to authenticate |
| 100 // rather than EasyUnlock. | 100 // rather than EasyUnlock. |
| 101 bool ShouldForcePassword(); | 101 bool ShouldForcePassword(); |
| 102 | 102 |
| 103 // The type of the screenlock (i.e. login or unlock). |
| 104 ScreenlockType screenlock_type_; |
| 105 |
| 103 // Lists of remote devices, keyed by user account id. | 106 // Lists of remote devices, keyed by user account id. |
| 104 std::map<AccountId, cryptauth::RemoteDeviceList> remote_devices_map_; | 107 std::map<AccountId, cryptauth::RemoteDeviceList> remote_devices_map_; |
| 105 | 108 |
| 106 // Delegate for Chrome dependent functionality. | 109 // Delegate for Chrome dependent functionality. |
| 107 ProximityAuthClient* proximity_auth_client_; | 110 ProximityAuthClient* proximity_auth_client_; |
| 108 | 111 |
| 109 // Responsible for the life cycle of connecting and authenticating to | 112 // Responsible for the life cycle of connecting and authenticating to |
| 110 // the RemoteDevice of the currently focused user. | 113 // the RemoteDevice of the currently focused user. |
| 111 std::unique_ptr<RemoteDeviceLifeCycle> remote_device_life_cycle_; | 114 std::unique_ptr<RemoteDeviceLifeCycle> remote_device_life_cycle_; |
| 112 | 115 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 126 bool started_; | 129 bool started_; |
| 127 | 130 |
| 128 base::WeakPtrFactory<ProximityAuthSystem> weak_ptr_factory_; | 131 base::WeakPtrFactory<ProximityAuthSystem> weak_ptr_factory_; |
| 129 | 132 |
| 130 DISALLOW_COPY_AND_ASSIGN(ProximityAuthSystem); | 133 DISALLOW_COPY_AND_ASSIGN(ProximityAuthSystem); |
| 131 }; | 134 }; |
| 132 | 135 |
| 133 } // namespace proximity_auth | 136 } // namespace proximity_auth |
| 134 | 137 |
| 135 #endif // COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_SYSTEM_H | 138 #endif // COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_SYSTEM_H |
| OLD | NEW |