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_PREF_VALUE_STORE_H_ | 5 #ifndef CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ |
6 #define CHROME_BROWSER_PREF_VALUE_STORE_H_ | 6 #define CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/ref_counted.h" | 15 #include "base/ref_counted.h" |
16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
17 #include "chrome/browser/chrome_thread.h" | 17 #include "chrome/browser/chrome_thread.h" |
18 #include "chrome/browser/pref_notifier.h" | 18 #include "chrome/browser/prefs/pref_notifier.h" |
19 #include "chrome/common/pref_store.h" | 19 #include "chrome/common/pref_store.h" |
20 | 20 |
21 class FilePath; | 21 class FilePath; |
22 class PrefStore; | 22 class PrefStore; |
23 class Profile; | 23 class Profile; |
24 class Value; | 24 class Value; |
25 | 25 |
26 // The PrefValueStore manages various sources of values for Preferences | 26 // The PrefValueStore manages various sources of values for Preferences |
27 // (e.g., configuration policies, extensions, and user settings). It returns | 27 // (e.g., configuration policies, extensions, and user settings). It returns |
28 // the value of a Preference from the source with the highest priority, and | 28 // the value of a Preference from the source with the highest priority, and |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // RefreshPolicyPrefsOnFileThread takes ownership of the |callback| object. | 188 // RefreshPolicyPrefsOnFileThread takes ownership of the |callback| object. |
189 void RefreshPolicyPrefsOnFileThread( | 189 void RefreshPolicyPrefsOnFileThread( |
190 ChromeThread::ID calling_thread_id, | 190 ChromeThread::ID calling_thread_id, |
191 PrefStore* new_managed_pref_store, | 191 PrefStore* new_managed_pref_store, |
192 PrefStore* new_recommended_pref_store, | 192 PrefStore* new_recommended_pref_store, |
193 AfterRefreshCallback* callback); | 193 AfterRefreshCallback* callback); |
194 | 194 |
195 DISALLOW_COPY_AND_ASSIGN(PrefValueStore); | 195 DISALLOW_COPY_AND_ASSIGN(PrefValueStore); |
196 }; | 196 }; |
197 | 197 |
198 #endif // CHROME_BROWSER_PREF_VALUE_STORE_H_ | 198 #endif // CHROME_BROWSER_PREFS_PREF_VALUE_STORE_H_ |
OLD | NEW |