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

Side by Side Diff: chrome/browser/chromeos/login/quick_unlock/quick_unlock_storage.h

Issue 2715823004: Add FingerprintUnlock KeyedService for each profile (Closed)
Patch Set: Incorporate comments Created 3 years, 9 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_STORAGE_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_STORAGE_H_
7
8 #include "base/memory/ptr_util.h"
9 #include "chrome/browser/chromeos/login/quick_unlock/fingerprint_storage.h"
10 #include "chrome/browser/chromeos/login/quick_unlock/pin_storage.h"
11 #include "components/keyed_service/core/keyed_service.h"
12
13 class PrefService;
14
15 namespace chromeos {
16
17 namespace quick_unlock {
18
19 class QuickUnlockStorage : public KeyedService {
20 public:
21 explicit QuickUnlockStorage(PrefService* pref_service);
22 ~QuickUnlockStorage() override;
23
24 // Mark that the user has had a strong authentication. This means
25 // that they authenticated with their password, for example. Quick
26 // unlock will timeout after a delay.
27 void MarkStrongAuth();
28
29 FingerprintStorage* fingerprint_storage();
30
31 PinStorage* pin_storage();
32
33 private:
34 // KeyedService:
35 void Shutdown() override;
36
37 std::unique_ptr<FingerprintStorage> fingerprint_storage_;
38 std::unique_ptr<PinStorage> pin_storage_;
39
40 DISALLOW_COPY_AND_ASSIGN(QuickUnlockStorage);
41 };
42
43 } // namespace quick_unlock
44 } // namespace chromeos
45
46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_QUICK_UNLOCK_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698