OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 24 matching lines...) Expand all Loading... | |
35 | 35 |
36 // PrefStore methods: | 36 // PrefStore methods: |
37 virtual ReadResult GetValue(const std::string& key, Value** result) const; | 37 virtual ReadResult GetValue(const std::string& key, Value** result) const; |
38 | 38 |
39 virtual DictionaryValue* prefs() const; | 39 virtual DictionaryValue* prefs() const; |
40 | 40 |
41 // ConfigurationPolicyStore methods: | 41 // ConfigurationPolicyStore methods: |
42 virtual void Apply(ConfigurationPolicyType setting, Value* value); | 42 virtual void Apply(ConfigurationPolicyType setting, Value* value); |
43 | 43 |
44 // Creates a ConfigurationPolicyPrefStore that reads managed platform policy. | 44 // Creates a ConfigurationPolicyPrefStore that reads managed platform policy. |
45 static ConfigurationPolicyPrefStore* CreateManagedPlatformPolicyPrefStore(); | 45 static scoped_refptr<ConfigurationPolicyPrefStore> |
Mattias Nissler (ping if slow)
2010/12/20 14:50:02
This is not needed. If the function name is Create
battre
2010/12/21 18:51:59
Done.
| |
46 CreateManagedPlatformPolicyPrefStore(); | |
46 | 47 |
47 // Creates a ConfigurationPolicyPrefStore that supplies policy from | 48 // Creates a ConfigurationPolicyPrefStore that supplies policy from |
48 // the device management server. | 49 // the device management server. |
49 static ConfigurationPolicyPrefStore* CreateDeviceManagementPolicyPrefStore( | 50 static scoped_refptr<ConfigurationPolicyPrefStore> |
50 Profile* profile); | 51 CreateDeviceManagementPolicyPrefStore(Profile* profile); |
51 | 52 |
52 // Creates a ConfigurationPolicyPrefStore that reads recommended policy. | 53 // Creates a ConfigurationPolicyPrefStore that reads recommended policy. |
53 static ConfigurationPolicyPrefStore* CreateRecommendedPolicyPrefStore(); | 54 static scoped_refptr<ConfigurationPolicyPrefStore> |
55 CreateRecommendedPolicyPrefStore(); | |
54 | 56 |
55 // Returns the default policy definition list for Chrome. | 57 // Returns the default policy definition list for Chrome. |
56 static const ConfigurationPolicyProvider::PolicyDefinitionList* | 58 static const ConfigurationPolicyProvider::PolicyDefinitionList* |
57 GetChromePolicyDefinitionList(); | 59 GetChromePolicyDefinitionList(); |
58 | 60 |
59 // Returns the set of preference paths that can be affected by a proxy | 61 // Returns the set of preference paths that can be affected by a proxy |
60 // policy. | 62 // policy. |
61 static void GetProxyPreferenceSet(ProxyPreferenceSet* proxy_pref_set); | 63 static void GetProxyPreferenceSet(ProxyPreferenceSet* proxy_pref_set); |
62 | 64 |
63 private: | 65 private: |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 // unspecified map entries. Otherwise wipes all default search related | 137 // unspecified map entries. Otherwise wipes all default search related |
136 // map entries from |prefs_|. | 138 // map entries from |prefs_|. |
137 void FinalizeDefaultSearchPolicySettings(); | 139 void FinalizeDefaultSearchPolicySettings(); |
138 | 140 |
139 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); | 141 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); |
140 }; | 142 }; |
141 | 143 |
142 } // namespace policy | 144 } // namespace policy |
143 | 145 |
144 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ | 146 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ |
OLD | NEW |