Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: components/proximity_auth/proximity_auth_system.h

Issue 2902093002: [EasyUnlock] Force user to enter their password after 20 hours. (Closed)
Patch Set: add metric Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ScreenlockBridge::LockHandler::ScreenType screen_type) override; 85 ScreenlockBridge::LockHandler::ScreenType screen_type) override;
86 void OnScreenDidUnlock( 86 void OnScreenDidUnlock(
87 ScreenlockBridge::LockHandler::ScreenType screen_type) override; 87 ScreenlockBridge::LockHandler::ScreenType screen_type) override;
88 void OnFocusedUserChanged(const AccountId& account_id) override; 88 void OnFocusedUserChanged(const AccountId& account_id) override;
89 89
90 private: 90 private:
91 // Resumes |remote_device_life_cycle_| after device wakes up and waits a 91 // Resumes |remote_device_life_cycle_| after device wakes up and waits a
92 // timeout. 92 // timeout.
93 void ResumeAfterWakeUpTimeout(); 93 void ResumeAfterWakeUpTimeout();
94 94
95 // Returns true if the user should be forced to use a password to authenticate
96 // rather than EasyUnlock.
97 bool ShouldForcePassword();
98
95 // Lists of remote devices, keyed by user account id. 99 // Lists of remote devices, keyed by user account id.
96 std::map<AccountId, cryptauth::RemoteDeviceList> remote_devices_map_; 100 std::map<AccountId, cryptauth::RemoteDeviceList> remote_devices_map_;
97 101
98 // Delegate for Chrome dependent functionality. 102 // Delegate for Chrome dependent functionality.
99 ProximityAuthClient* proximity_auth_client_; 103 ProximityAuthClient* proximity_auth_client_;
100 104
101 // Responsible for the life cycle of connecting and authenticating to 105 // Responsible for the life cycle of connecting and authenticating to
102 // the RemoteDevice of the currently focused user. 106 // the RemoteDevice of the currently focused user.
103 std::unique_ptr<RemoteDeviceLifeCycle> remote_device_life_cycle_; 107 std::unique_ptr<RemoteDeviceLifeCycle> remote_device_life_cycle_;
104 108
105 // Handles the interaction with the lock screen UI. 109 // Handles the interaction with the lock screen UI.
106 std::unique_ptr<UnlockManager> unlock_manager_; 110 std::unique_ptr<UnlockManager> unlock_manager_;
107 111
108 // True if the system is suspended. 112 // True if the system is suspended.
109 bool suspended_; 113 bool suspended_;
110 114
111 // True if the system is started_. 115 // True if the system is started_.
112 bool started_; 116 bool started_;
113 117
114 base::WeakPtrFactory<ProximityAuthSystem> weak_ptr_factory_; 118 base::WeakPtrFactory<ProximityAuthSystem> weak_ptr_factory_;
115 119
116 DISALLOW_COPY_AND_ASSIGN(ProximityAuthSystem); 120 DISALLOW_COPY_AND_ASSIGN(ProximityAuthSystem);
117 }; 121 };
118 122
119 } // namespace proximity_auth 123 } // namespace proximity_auth
120 124
121 #endif // COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_SYSTEM_H 125 #endif // COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_SYSTEM_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698