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 COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_PREF_STORE_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_PREF_STORE_H_ |
6 #define COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_PREF_STORE_H_ | 6 #define COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_PREF_STORE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 const ConfigurationPolicyHandlerList* handler_list, | 37 const ConfigurationPolicyHandlerList* handler_list, |
38 PolicyLevel level); | 38 PolicyLevel level); |
39 | 39 |
40 // PrefStore methods: | 40 // PrefStore methods: |
41 void AddObserver(PrefStore::Observer* observer) override; | 41 void AddObserver(PrefStore::Observer* observer) override; |
42 void RemoveObserver(PrefStore::Observer* observer) override; | 42 void RemoveObserver(PrefStore::Observer* observer) override; |
43 bool HasObservers() const override; | 43 bool HasObservers() const override; |
44 bool IsInitializationComplete() const override; | 44 bool IsInitializationComplete() const override; |
45 bool GetValue(const std::string& key, | 45 bool GetValue(const std::string& key, |
46 const base::Value** result) const override; | 46 const base::Value** result) const override; |
| 47 std::unique_ptr<base::DictionaryValue> GetValues() const override; |
47 | 48 |
48 // PolicyService::Observer methods: | 49 // PolicyService::Observer methods: |
49 void OnPolicyUpdated(const PolicyNamespace& ns, | 50 void OnPolicyUpdated(const PolicyNamespace& ns, |
50 const PolicyMap& previous, | 51 const PolicyMap& previous, |
51 const PolicyMap& current) override; | 52 const PolicyMap& current) override; |
52 void OnPolicyServiceInitialized(PolicyDomain domain) override; | 53 void OnPolicyServiceInitialized(PolicyDomain domain) override; |
53 | 54 |
54 private: | 55 private: |
55 ~ConfigurationPolicyPrefStore() override; | 56 ~ConfigurationPolicyPrefStore() override; |
56 | 57 |
(...skipping 19 matching lines...) Expand all Loading... |
76 std::unique_ptr<PrefValueMap> prefs_; | 77 std::unique_ptr<PrefValueMap> prefs_; |
77 | 78 |
78 base::ObserverList<PrefStore::Observer, true> observers_; | 79 base::ObserverList<PrefStore::Observer, true> observers_; |
79 | 80 |
80 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); | 81 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); |
81 }; | 82 }; |
82 | 83 |
83 } // namespace policy | 84 } // namespace policy |
84 | 85 |
85 #endif // COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_PREF_STORE_H_ | 86 #endif // COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_PREF_STORE_H_ |
OLD | NEW |