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

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

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix gypi problem Created 8 years, 2 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
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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/prefs/pref_store.h"
13 #include "base/values.h" 14 #include "base/values.h"
14 #include "chrome/browser/policy/policy_map.h" 15 #include "chrome/browser/policy/policy_map.h"
15 #include "chrome/browser/policy/policy_service.h" 16 #include "chrome/browser/policy/policy_service.h"
16 #include "chrome/common/pref_store.h"
17 17
18 class PrefValueMap; 18 class PrefValueMap;
19 19
20 namespace policy { 20 namespace policy {
21 21
22 // An implementation of PrefStore that bridges policy settings as read from the 22 // An implementation of PrefStore that bridges policy settings as read from the
23 // PolicyService to preferences. Converts POLICY_DOMAIN_CHROME policies a given 23 // PolicyService to preferences. Converts POLICY_DOMAIN_CHROME policies a given
24 // PolicyLevel to their corresponding preferences. 24 // PolicyLevel to their corresponding preferences.
25 class ConfigurationPolicyPrefStore 25 class ConfigurationPolicyPrefStore
26 : public PrefStore, 26 : public PrefStore,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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

Powered by Google App Engine
This is Rietveld 408576698