| 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; | |
| 48 | 47 |
| 49 // PolicyService::Observer methods: | 48 // PolicyService::Observer methods: |
| 50 void OnPolicyUpdated(const PolicyNamespace& ns, | 49 void OnPolicyUpdated(const PolicyNamespace& ns, |
| 51 const PolicyMap& previous, | 50 const PolicyMap& previous, |
| 52 const PolicyMap& current) override; | 51 const PolicyMap& current) override; |
| 53 void OnPolicyServiceInitialized(PolicyDomain domain) override; | 52 void OnPolicyServiceInitialized(PolicyDomain domain) override; |
| 54 | 53 |
| 55 private: | 54 private: |
| 56 ~ConfigurationPolicyPrefStore() override; | 55 ~ConfigurationPolicyPrefStore() override; |
| 57 | 56 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 77 std::unique_ptr<PrefValueMap> prefs_; | 76 std::unique_ptr<PrefValueMap> prefs_; |
| 78 | 77 |
| 79 base::ObserverList<PrefStore::Observer, true> observers_; | 78 base::ObserverList<PrefStore::Observer, true> observers_; |
| 80 | 79 |
| 81 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); | 80 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); |
| 82 }; | 81 }; |
| 83 | 82 |
| 84 } // namespace policy | 83 } // namespace policy |
| 85 | 84 |
| 86 #endif // COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_PREF_STORE_H_ | 85 #endif // COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_PREF_STORE_H_ |
| OLD | NEW |