| 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 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/prefs/pref_store.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/policy/policy_map.h" | |
| 16 #include "chrome/browser/policy/policy_service.h" | 15 #include "chrome/browser/policy/policy_service.h" |
| 17 #include "chrome/browser/policy/policy_types.h" | 16 #include "components/policy/core/common/policy_map.h" |
| 17 #include "components/policy/core/common/policy_types.h" |
| 18 | 18 |
| 19 class PrefValueMap; | 19 class PrefValueMap; |
| 20 | 20 |
| 21 namespace policy { | 21 namespace policy { |
| 22 | 22 |
| 23 class ConfigurationPolicyHandlerList; | 23 class ConfigurationPolicyHandlerList; |
| 24 | 24 |
| 25 // An implementation of PrefStore that bridges policy settings as read from the | 25 // An implementation of PrefStore that bridges policy settings as read from the |
| 26 // PolicyService to preferences. Converts POLICY_DOMAIN_CHROME policies a given | 26 // PolicyService to preferences. Converts POLICY_DOMAIN_CHROME policies a given |
| 27 // PolicyLevel to their corresponding preferences. | 27 // PolicyLevel to their corresponding preferences. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 scoped_ptr<PrefValueMap> prefs_; | 75 scoped_ptr<PrefValueMap> prefs_; |
| 76 | 76 |
| 77 ObserverList<PrefStore::Observer, true> observers_; | 77 ObserverList<PrefStore::Observer, true> observers_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); | 79 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace policy | 82 } // namespace policy |
| 83 | 83 |
| 84 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ | 84 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ |
| OLD | NEW |