OLD | NEW |
---|---|
(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_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/macros.h" | |
11 #include "components/keyed_service/core/keyed_service.h" | |
12 | |
13 class Profile; | |
14 | |
15 namespace chromeos { | |
16 | |
Mattias Nissler (ping if slow)
2014/05/14 12:18:10
nit: Class comment would be nice to explain what t
ygorshenin1
2014/05/14 15:30:07
Done.
| |
17 class OwnerKeyReloaderService : public KeyedService { | |
Mattias Nissler (ping if slow)
2014/05/14 12:18:10
I was assuming that this is going to be the servic
ygorshenin1
2014/05/14 15:30:07
Done.
| |
18 public: | |
19 virtual ~OwnerKeyReloaderService(); | |
20 | |
21 static void SetUsername(const std::string& username); | |
22 static std::string GetUsername(); | |
23 | |
24 void ReloadOwnerKey(); | |
25 | |
26 private: | |
27 friend class OwnerKeyReloaderServiceFactory; | |
28 | |
29 explicit OwnerKeyReloaderService(Profile* profile); | |
30 | |
31 static std::string username_; | |
32 | |
33 Profile* profile_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(OwnerKeyReloaderService); | |
36 }; | |
37 | |
38 } // namespace chromeos | |
39 | |
40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_H_ | |
OLD | NEW |