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

Side by Side Diff: chrome/browser/policy/configuration_policy_pref_store.h

Issue 11365112: Change PrefStore::ReadResult to a boolean. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 1 month 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 | Annotate | Revision Log
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 CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 // Does not take ownership of |service|. Only policies of the given |level| 29 // Does not take ownership of |service|. Only policies of the given |level|
30 // will be mapped. 30 // will be mapped.
31 ConfigurationPolicyPrefStore(PolicyService* service, PolicyLevel level); 31 ConfigurationPolicyPrefStore(PolicyService* service, PolicyLevel level);
32 32
33 // PrefStore methods: 33 // PrefStore methods:
34 virtual void AddObserver(PrefStore::Observer* observer) OVERRIDE; 34 virtual void AddObserver(PrefStore::Observer* observer) OVERRIDE;
35 virtual void RemoveObserver(PrefStore::Observer* observer) OVERRIDE; 35 virtual void RemoveObserver(PrefStore::Observer* observer) OVERRIDE;
36 virtual size_t NumberOfObservers() const OVERRIDE; 36 virtual size_t NumberOfObservers() const OVERRIDE;
37 virtual bool IsInitializationComplete() const OVERRIDE; 37 virtual bool IsInitializationComplete() const OVERRIDE;
38 virtual ReadResult GetValue(const std::string& key, 38 virtual bool GetValue(const std::string& key,
39 const Value** result) const OVERRIDE; 39 const Value** result) const OVERRIDE;
40 40
41 // PolicyService::Observer methods: 41 // PolicyService::Observer methods:
42 virtual void OnPolicyUpdated(PolicyDomain domain, 42 virtual void OnPolicyUpdated(PolicyDomain domain,
43 const std::string& component_id, 43 const std::string& component_id,
44 const PolicyMap& previous, 44 const PolicyMap& previous,
45 const PolicyMap& current) OVERRIDE; 45 const PolicyMap& current) OVERRIDE;
46 virtual void OnPolicyServiceInitialized() OVERRIDE; 46 virtual void OnPolicyServiceInitialized() OVERRIDE;
47 47
48 // Creates a ConfigurationPolicyPrefStore that only provides policies that 48 // Creates a ConfigurationPolicyPrefStore that only provides policies that
49 // have POLICY_LEVEL_MANDATORY level. 49 // have POLICY_LEVEL_MANDATORY level.
(...skipping 26 matching lines...) Expand all
76 scoped_ptr<PrefValueMap> prefs_; 76 scoped_ptr<PrefValueMap> prefs_;
77 77
78 ObserverList<PrefStore::Observer, true> observers_; 78 ObserverList<PrefStore::Observer, true> observers_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); 80 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore);
81 }; 81 };
82 82
83 } // namespace policy 83 } // namespace policy
84 84
85 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ 85 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_
OLDNEW
« no previous file with comments | « base/prefs/value_map_pref_store.cc ('k') | chrome/browser/policy/configuration_policy_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698