| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |