OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_ |
6 #define CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_ | 6 #define CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/prefs/persistent_pref_store.h" |
9 #include "chrome/browser/policy/configuration_policy_provider.h" | 10 #include "chrome/browser/policy/configuration_policy_provider.h" |
10 #include "chrome/common/persistent_pref_store.h" | |
11 | 11 |
12 class Profile; | 12 class Profile; |
13 | 13 |
14 namespace policy { | 14 namespace policy { |
15 | 15 |
16 // This class sets policies that are defined by a local user via "Managed Mode". | 16 // This class sets policies that are defined by a local user via "Managed Mode". |
17 // It offers methods to set and read policies, and persists them on disk in | 17 // It offers methods to set and read policies, and persists them on disk in |
18 // JSON format. | 18 // JSON format. |
19 class ManagedModePolicyProvider | 19 class ManagedModePolicyProvider |
20 : public ConfigurationPolicyProvider, | 20 : public ConfigurationPolicyProvider, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 void UpdatePolicyFromCache(); | 52 void UpdatePolicyFromCache(); |
53 | 53 |
54 // Used for persisting policies. Unlike other PrefStores, this one is not | 54 // Used for persisting policies. Unlike other PrefStores, this one is not |
55 // hooked up to the PrefService. | 55 // hooked up to the PrefService. |
56 scoped_refptr<PersistentPrefStore> store_; | 56 scoped_refptr<PersistentPrefStore> store_; |
57 }; | 57 }; |
58 | 58 |
59 } // namespace policy | 59 } // namespace policy |
60 | 60 |
61 #endif // CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_ | 61 #endif // CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_H_ |
OLD | NEW |