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

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

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.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"
14 #include "base/values.h" 13 #include "base/values.h"
15 #include "components/policy/core/common/policy_map.h" 14 #include "components/policy/core/common/policy_map.h"
16 #include "components/policy/core/common/policy_service.h" 15 #include "components/policy/core/common/policy_service.h"
17 #include "components/policy/core/common/policy_types.h" 16 #include "components/policy/core/common/policy_types.h"
18 #include "components/policy/policy_export.h" 17 #include "components/policy/policy_export.h"
18 #include "components/prefs/pref_store.h"
19 19
20 class PrefValueMap; 20 class PrefValueMap;
21 21
22 namespace policy { 22 namespace policy {
23 23
24 class ConfigurationPolicyHandlerList; 24 class ConfigurationPolicyHandlerList;
25 25
26 // An implementation of PrefStore that bridges policy settings as read from the 26 // An implementation of PrefStore that bridges policy settings as read from the
27 // PolicyService to preferences. Converts POLICY_DOMAIN_CHROME policies a given 27 // PolicyService to preferences. Converts POLICY_DOMAIN_CHROME policies a given
28 // PolicyLevel to their corresponding preferences. 28 // PolicyLevel to their corresponding preferences.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 scoped_ptr<PrefValueMap> prefs_; 76 scoped_ptr<PrefValueMap> prefs_;
77 77
78 base::ObserverList<PrefStore::Observer, true> observers_; 78 base::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 // COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_PREF_STORE_H_ 85 #endif // COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_PREF_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698