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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/common/pref_store.h" | 17 #include "chrome/common/pref_store.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 | 19 |
20 class FilePath; | |
21 class PrefModelAssociator; | 20 class PrefModelAssociator; |
22 class PrefNotifier; | 21 class PrefNotifier; |
23 class PrefStore; | 22 class PrefStore; |
24 | 23 |
25 // The PrefValueStore manages various sources of values for Preferences | 24 // The PrefValueStore manages various sources of values for Preferences |
26 // (e.g., configuration policies, extensions, and user settings). It returns | 25 // (e.g., configuration policies, extensions, and user settings). It returns |
27 // the value of a Preference from the source with the highest priority, and | 26 // the value of a Preference from the source with the highest priority, and |
28 // allows setting user-defined values for preferences that are not managed. | 27 // allows setting user-defined values for preferences that are not managed. |
29 // | 28 // |
30 // Unless otherwise explicitly noted, all of the methods of this class must | 29 // Unless otherwise explicitly noted, all of the methods of this class must |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 // A mapping of preference names to their registered types. | 246 // A mapping of preference names to their registered types. |
248 PrefTypeMap pref_types_; | 247 PrefTypeMap pref_types_; |
249 | 248 |
250 // True if not all of the PrefStores were initialized successfully. | 249 // True if not all of the PrefStores were initialized successfully. |
251 bool initialization_failed_; | 250 bool initialization_failed_; |
252 | 251 |
253 DISALLOW_COPY_AND_ASSIGN(PrefValueStore); | 252 DISALLOW_COPY_AND_ASSIGN(PrefValueStore); |
254 }; | 253 }; |
255 | 254 |
256 #endif // CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ | 255 #endif // CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ |
OLD | NEW |