Chromium Code Reviews| Index: chrome/browser/chromeos/login/owner_key_reloader_service.h |
| diff --git a/chrome/browser/chromeos/login/owner_key_reloader_service.h b/chrome/browser/chromeos/login/owner_key_reloader_service.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..972878ccb86b60d54d0654379ce0ccc774ee5752 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/login/owner_key_reloader_service.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_H_ |
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/macros.h" |
| +#include "components/keyed_service/core/keyed_service.h" |
| + |
| +class Profile; |
| + |
| +namespace chromeos { |
| + |
|
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.
|
| +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.
|
| + public: |
| + virtual ~OwnerKeyReloaderService(); |
| + |
| + static void SetUsername(const std::string& username); |
| + static std::string GetUsername(); |
| + |
| + void ReloadOwnerKey(); |
| + |
| + private: |
| + friend class OwnerKeyReloaderServiceFactory; |
| + |
| + explicit OwnerKeyReloaderService(Profile* profile); |
| + |
| + static std::string username_; |
| + |
| + Profile* profile_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(OwnerKeyReloaderService); |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_KEY_RELOADER_SERVICE_H_ |