OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 scoped_refptr<PrefStore> pref_store_; | 163 scoped_refptr<PrefStore> pref_store_; |
164 | 164 |
165 // Type of the pref store. | 165 // Type of the pref store. |
166 PrefStoreType type_; | 166 PrefStoreType type_; |
167 | 167 |
168 DISALLOW_COPY_AND_ASSIGN(PrefStoreKeeper); | 168 DISALLOW_COPY_AND_ASSIGN(PrefStoreKeeper); |
169 }; | 169 }; |
170 | 170 |
171 typedef std::map<std::string, base::Value::Type> PrefTypeMap; | 171 typedef std::map<std::string, base::Value::Type> PrefTypeMap; |
172 | 172 |
173 friend class PrefService; | |
Mattias Nissler (ping if slow)
2011/11/16 12:08:04
Ah, needed for accessing pref_sync_associator_. As
mnaganov (inactive)
2011/11/17 16:50:58
Removed.
| |
173 friend class PrefValueStorePolicyRefreshTest; | 174 friend class PrefValueStorePolicyRefreshTest; |
174 FRIEND_TEST_ALL_PREFIXES(PrefValueStorePolicyRefreshTest, TestPolicyRefresh); | 175 FRIEND_TEST_ALL_PREFIXES(PrefValueStorePolicyRefreshTest, TestPolicyRefresh); |
175 FRIEND_TEST_ALL_PREFIXES(PrefValueStorePolicyRefreshTest, | 176 FRIEND_TEST_ALL_PREFIXES(PrefValueStorePolicyRefreshTest, |
176 TestRefreshPolicyPrefsCompletion); | 177 TestRefreshPolicyPrefsCompletion); |
177 FRIEND_TEST_ALL_PREFIXES(PrefValueStorePolicyRefreshTest, | 178 FRIEND_TEST_ALL_PREFIXES(PrefValueStorePolicyRefreshTest, |
178 TestConcurrentPolicyRefresh); | 179 TestConcurrentPolicyRefresh); |
179 | 180 |
180 // Returns true if the preference with the given name has a value in the | 181 // Returns true if the preference with the given name has a value in the |
181 // given PrefStoreType, of the same value type as the preference was | 182 // given PrefStoreType, of the same value type as the preference was |
182 // registered with. | 183 // registered with. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 // A mapping of preference names to their registered types. | 247 // A mapping of preference names to their registered types. |
247 PrefTypeMap pref_types_; | 248 PrefTypeMap pref_types_; |
248 | 249 |
249 // True if not all of the PrefStores were initialized successfully. | 250 // True if not all of the PrefStores were initialized successfully. |
250 bool initialization_failed_; | 251 bool initialization_failed_; |
251 | 252 |
252 DISALLOW_COPY_AND_ASSIGN(PrefValueStore); | 253 DISALLOW_COPY_AND_ASSIGN(PrefValueStore); |
253 }; | 254 }; |
254 | 255 |
255 #endif // CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ | 256 #endif // CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ |
OLD | NEW |