| 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_SETTINGS_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
| 10 #include "components/keyed_service/core/keyed_service.h" |
| 11 |
| 12 class Profile; |
| 13 |
| 14 namespace chromeos { |
| 15 |
| 16 class OwnerSettingsBaseService : public KeyedService { |
| 17 public: |
| 18 virtual ~OwnerSettingsBaseService(); |
| 19 |
| 20 protected: |
| 21 OwnerSettingsBaseService(); |
| 22 |
| 23 virtual void ReloadOwnerKey(); |
| 24 |
| 25 private: |
| 26 friend class OwnerSettingsServiceFactory; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsBaseService); |
| 29 }; |
| 30 |
| 31 // This class reloads owner key from profile slots. |
| 32 // |
| 33 // TODO (ygorshenin@): move write path for device settings here |
| 34 // (crbug.com/230018). |
| 35 class OwnerSettingsService : public OwnerSettingsBaseService { |
| 36 public: |
| 37 virtual ~OwnerSettingsService(); |
| 38 |
| 39 protected: |
| 40 // OwnerSettingsBaseService overrides: |
| 41 virtual void ReloadOwnerKey() OVERRIDE; |
| 42 |
| 43 private: |
| 44 friend class OwnerSettingsServiceFactory; |
| 45 |
| 46 explicit OwnerSettingsService(Profile* profile); |
| 47 |
| 48 Profile* profile_; |
| 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsService); |
| 51 }; |
| 52 |
| 53 } // namespace chromeos |
| 54 |
| 55 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_H_ |
| OLD | NEW |