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

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

Issue 10174003: Pass the previous and the current PolicyMap to Observers of the PolicyService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/policy/configuration_policy_pref_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 24 matching lines...) Expand all
35 // PrefStore methods: 35 // PrefStore methods:
36 virtual void AddObserver(PrefStore::Observer* observer) OVERRIDE; 36 virtual void AddObserver(PrefStore::Observer* observer) OVERRIDE;
37 virtual void RemoveObserver(PrefStore::Observer* observer) OVERRIDE; 37 virtual void RemoveObserver(PrefStore::Observer* observer) OVERRIDE;
38 virtual size_t NumberOfObservers() const OVERRIDE; 38 virtual size_t NumberOfObservers() const OVERRIDE;
39 virtual bool IsInitializationComplete() const OVERRIDE; 39 virtual bool IsInitializationComplete() const OVERRIDE;
40 virtual ReadResult GetValue(const std::string& key, 40 virtual ReadResult GetValue(const std::string& key,
41 const Value** result) const OVERRIDE; 41 const Value** result) const OVERRIDE;
42 42
43 // PolicyService::Observer methods: 43 // PolicyService::Observer methods:
44 virtual void OnPolicyUpdated(PolicyDomain domain, 44 virtual void OnPolicyUpdated(PolicyDomain domain,
45 const std::string& component_id) OVERRIDE; 45 const std::string& component_id,
46 const PolicyMap& previous,
47 const PolicyMap& current) OVERRIDE;
46 virtual void OnPolicyServiceInitialized() OVERRIDE; 48 virtual void OnPolicyServiceInitialized() OVERRIDE;
47 49
48 // Creates a ConfigurationPolicyPrefStore that only provides policies that 50 // Creates a ConfigurationPolicyPrefStore that only provides policies that
49 // have POLICY_LEVEL_MANDATORY level. 51 // have POLICY_LEVEL_MANDATORY level.
50 static ConfigurationPolicyPrefStore* CreateMandatoryPolicyPrefStore(); 52 static ConfigurationPolicyPrefStore* CreateMandatoryPolicyPrefStore();
51 53
52 // Creates a ConfigurationPolicyPrefStore that only provides policies that 54 // Creates a ConfigurationPolicyPrefStore that only provides policies that
53 // have POLICY_LEVEL_RECOMMENDED level. 55 // have POLICY_LEVEL_RECOMMENDED level.
54 static ConfigurationPolicyPrefStore* CreateRecommendedPolicyPrefStore(); 56 static ConfigurationPolicyPrefStore* CreateRecommendedPolicyPrefStore();
55 57
(...skipping 16 matching lines...) Expand all
72 scoped_ptr<PrefValueMap> prefs_; 74 scoped_ptr<PrefValueMap> prefs_;
73 75
74 ObserverList<PrefStore::Observer, true> observers_; 76 ObserverList<PrefStore::Observer, true> observers_;
75 77
76 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); 78 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore);
77 }; 79 };
78 80
79 } // namespace policy 81 } // namespace policy
80 82
81 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ 83 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/configuration_policy_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698