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_PREFS_PREF_VALUE_STORE_H_ | 5 #ifndef CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ |
6 #define CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ | 6 #define CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
165 // |callback|. |callback| is called with the set of preferences changed by the | 165 // |callback|. |callback| is called with the set of preferences changed by the |
166 // policy refresh. |callback| is called on the caller's thread as a Task | 166 // policy refresh. |callback| is called on the caller's thread as a Task |
167 // after RefreshPolicyPrefs has returned. | 167 // after RefreshPolicyPrefs has returned. |
168 void RefreshPolicyPrefs(AfterRefreshCallback* callback); | 168 void RefreshPolicyPrefs(AfterRefreshCallback* callback); |
169 | 169 |
170 // Returns true if there are proxy preferences in user-modifiable | 170 // Returns true if there are proxy preferences in user-modifiable |
171 // preference stores (e.g. CommandLinePrefStore, ExtensionPrefStore) | 171 // preference stores (e.g. CommandLinePrefStore, ExtensionPrefStore) |
172 // that conflict with proxy settings specified by proxy policy. | 172 // that conflict with proxy settings specified by proxy policy. |
173 bool HasPolicyConflictingUserProxySettings(); | 173 bool HasPolicyConflictingUserProxySettings(); |
174 | 174 |
175 protected: | 175 // Replaces the internal link to the extension preferences store and takes |
176 // ownership of |extension_prefs|. | |
177 void ReplaceExtensionPrefStore(PrefStore* extension_prefs); | |
Mattias Nissler (ping if slow)
2010/11/19 10:47:40
Why would you want to do this if you have the acce
battre (please use the other)
2010/11/19 16:03:18
Done.
| |
178 | |
179 // Returns a reference to the extension pref store for write access. | |
180 PrefStore* GetExtensionPrefStore(); | |
181 | |
182 protected: | |
176 // In decreasing order of precedence: | 183 // In decreasing order of precedence: |
177 // |managed_platform_prefs| contains all managed platform (non-cloud policy) | 184 // |managed_platform_prefs| contains all managed platform (non-cloud policy) |
178 // preference values. | 185 // preference values. |
179 // |device_management_prefs| contains all device management (cloud policy) | 186 // |device_management_prefs| contains all device management (cloud policy) |
180 // preference values. | 187 // preference values. |
181 // |extension_prefs| contains preference values set by extensions. | 188 // |extension_prefs| contains preference values set by extensions. |
182 // |command_line_prefs| contains preference values set by command-line | 189 // |command_line_prefs| contains preference values set by command-line |
183 // switches. | 190 // switches. |
184 // |user_prefs| contains all user-set preference values. | 191 // |user_prefs| contains all user-set preference values. |
185 // |recommended_prefs| contains all recommended (policy) preference values. | 192 // |recommended_prefs| contains all recommended (policy) preference values. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 BrowserThread::ID calling_thread_id, | 241 BrowserThread::ID calling_thread_id, |
235 PrefStore* new_managed_platform_pref_store, | 242 PrefStore* new_managed_platform_pref_store, |
236 PrefStore* new_device_management_pref_store, | 243 PrefStore* new_device_management_pref_store, |
237 PrefStore* new_recommended_pref_store, | 244 PrefStore* new_recommended_pref_store, |
238 AfterRefreshCallback* callback); | 245 AfterRefreshCallback* callback); |
239 | 246 |
240 DISALLOW_COPY_AND_ASSIGN(PrefValueStore); | 247 DISALLOW_COPY_AND_ASSIGN(PrefValueStore); |
241 }; | 248 }; |
242 | 249 |
243 #endif // CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ | 250 #endif // CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ |
OLD | NEW |