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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // Lists of remote devices, keyed by user account id. | 106 // Lists of remote devices, keyed by user account id. |
107 std::map<AccountId, cryptauth::RemoteDeviceList> remote_devices_map_; | 107 std::map<AccountId, cryptauth::RemoteDeviceList> remote_devices_map_; |
108 | 108 |
109 // Delegate for Chrome dependent functionality. | 109 // Delegate for Chrome dependent functionality. |
110 ProximityAuthClient* proximity_auth_client_; | 110 ProximityAuthClient* proximity_auth_client_; |
111 | 111 |
112 // Responsible for the life cycle of connecting and authenticating to | 112 // Responsible for the life cycle of connecting and authenticating to |
113 // the RemoteDevice of the currently focused user. | 113 // the RemoteDevice of the currently focused user. |
114 std::unique_ptr<RemoteDeviceLifeCycle> remote_device_life_cycle_; | 114 std::unique_ptr<RemoteDeviceLifeCycle> remote_device_life_cycle_; |
115 | 115 |
116 // Handles the interaction with the lock screen UI. | |
117 std::unique_ptr<UnlockManager> unlock_manager_; | |
118 | |
119 // Used to get the current timestamp. | 116 // Used to get the current timestamp. |
120 std::unique_ptr<base::Clock> clock_; | 117 std::unique_ptr<base::Clock> clock_; |
121 | 118 |
122 // Fetches EasyUnlock preferences. | 119 // Fetches EasyUnlock preferences. |
123 std::unique_ptr<ProximityAuthPrefManager> pref_manager_; | 120 std::unique_ptr<ProximityAuthPrefManager> pref_manager_; |
124 | 121 |
| 122 // Handles the interaction with the lock screen UI. |
| 123 std::unique_ptr<UnlockManager> unlock_manager_; |
| 124 |
125 // True if the system is suspended. | 125 // True if the system is suspended. |
126 bool suspended_; | 126 bool suspended_; |
127 | 127 |
128 // True if the system is started_. | 128 // True if the system is started_. |
129 bool started_; | 129 bool started_; |
130 | 130 |
131 base::WeakPtrFactory<ProximityAuthSystem> weak_ptr_factory_; | 131 base::WeakPtrFactory<ProximityAuthSystem> weak_ptr_factory_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(ProximityAuthSystem); | 133 DISALLOW_COPY_AND_ASSIGN(ProximityAuthSystem); |
134 }; | 134 }; |
135 | 135 |
136 } // namespace proximity_auth | 136 } // namespace proximity_auth |
137 | 137 |
138 #endif // COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_SYSTEM_H | 138 #endif // COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_SYSTEM_H |
OLD | NEW |