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

Side by Side Diff: chrome/browser/chromeos/login/owner_key_reloader_service_factory.h

Issue 270663002: Implemented profile-aware owner key loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_FACTORY_H_
7
8 #include <string>
9
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12 #include "base/memory/singleton.h"
13 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
14
15 class KeyedService;
16 class Profile;
17
18 namespace chromeos {
19
20 class OwnerKeyReloaderService;
21
22 class OwnerKeyReloaderServiceFactory
23 : public BrowserContextKeyedServiceFactory {
24 public:
25 static OwnerKeyReloaderService* GetForProfile(Profile* profile);
26
27 static OwnerKeyReloaderServiceFactory* GetInstance();
28
29 private:
30 friend struct DefaultSingletonTraits<OwnerKeyReloaderServiceFactory>;
31
32 OwnerKeyReloaderServiceFactory();
33 virtual ~OwnerKeyReloaderServiceFactory();
34
35 static KeyedService* BuildInstanceFor(content::BrowserContext* context);
36
37 // BrowserContextKeyedServiceFactory implementation:
38 virtual KeyedService* BuildServiceInstanceFor(
39 content::BrowserContext* context) const OVERRIDE;
40
41 DISALLOW_COPY_AND_ASSIGN(OwnerKeyReloaderServiceFactory);
42 };
43
44 } // namespace chromeos
45
46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698