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

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

Issue 1977923002: Implement pin storage backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rebase Created 4 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
(Empty)
1 // Copyright 2016 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_PIN_STORAGE_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_PIN_STORAGE_FACTORY_H_
7
8 #include "base/memory/singleton.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
10
11 class Profile;
12
13 namespace chromeos {
14
15 class PinStorage;
16
17 // Singleton that owns all PinStorage instances and associates them with
18 // Profiles. Listens for the Profile's destruction notification and cleans up
19 // the associated PinStorage.
20 class PinStorageFactory : public BrowserContextKeyedServiceFactory {
21 public:
22 // Returns the PinStorage instance for |profile|.
23 static PinStorage* GetForProfile(Profile* profile);
24
25 static PinStorageFactory* GetInstance();
26
27 private:
28 friend struct base::DefaultSingletonTraits<PinStorageFactory>;
29
30 PinStorageFactory();
31 ~PinStorageFactory() override;
32
33 // BrowserContextKeyedServiceFactory:
34 KeyedService* BuildServiceInstanceFor(
35 content::BrowserContext* profile) const override;
36
37 DISALLOW_COPY_AND_ASSIGN(PinStorageFactory);
38 };
39
40 } // namespace chromeos
41
42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_QUICK_UNLOCK_PIN_STORAGE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698