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

Side by Side Diff: chrome/browser/chromeos/login/lock/screen_locker.h

Issue 2809993004: cros: Implement cryptohome backend for pin.
Patch Set: Address comments Created 3 years, 6 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 CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 bool IsUserLoggedIn(const AccountId& account_id) const; 221 bool IsUserLoggedIn(const AccountId& account_id) const;
222 222
223 // Looks up user in unlock user list. 223 // Looks up user in unlock user list.
224 const user_manager::User* FindUnlockUser(const AccountId& account_id); 224 const user_manager::User* FindUnlockUser(const AccountId& account_id);
225 225
226 // Callback to be invoked for ash start lock request. |locked| is true when 226 // Callback to be invoked for ash start lock request. |locked| is true when
227 // ash is fully locked and post lock animation finishes. Otherwise, the start 227 // ash is fully locked and post lock animation finishes. Otherwise, the start
228 // lock request is failed. 228 // lock request is failed.
229 void OnStartLockCallback(bool locked); 229 void OnStartLockCallback(bool locked);
230 230
231 // Called when the pin attempt is finished running.
232 void OnPinAttemptDone(const UserContext& user_context, bool success);
233
234 // Called to continue authentication against cryptohome after the pin login
235 // check has completed.
236 void ContinueAuthenticate(const UserContext& user_context);
237
231 // WebUIScreenLocker instance in use. 238 // WebUIScreenLocker instance in use.
232 std::unique_ptr<WebUIScreenLocker> web_ui_; 239 std::unique_ptr<WebUIScreenLocker> web_ui_;
233 240
234 // Delegate used to talk to the view. 241 // Delegate used to talk to the view.
235 Delegate* delegate_ = nullptr; 242 Delegate* delegate_ = nullptr;
236 bool owns_delegate_ = false; 243 bool owns_delegate_ = false;
237 244
238 // Users that can unlock the device. 245 // Users that can unlock the device.
239 user_manager::UserList users_; 246 user_manager::UserList users_;
240 247
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 mojo::Binding<device::mojom::FingerprintObserver> binding_; 288 mojo::Binding<device::mojom::FingerprintObserver> binding_;
282 289
283 base::WeakPtrFactory<ScreenLocker> weak_factory_; 290 base::WeakPtrFactory<ScreenLocker> weak_factory_;
284 291
285 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); 292 DISALLOW_COPY_AND_ASSIGN(ScreenLocker);
286 }; 293 };
287 294
288 } // namespace chromeos 295 } // namespace chromeos
289 296
290 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ 297 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698