Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: components/policy/core/browser/configuration_policy_pref_store.h

Issue 2692203007: Add PrefStore::GetValues (Closed)
Patch Set: Add GetValues to FilesystemJsonPrefStore Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698