OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROME_PREF_SERVICE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ |
6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ | 6 #define CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
11 class FilePath; | 11 class FilePath; |
12 class SequencedTaskRunner; | 12 class SequencedTaskRunner; |
13 } | 13 } |
14 | 14 |
15 namespace policy { | 15 namespace policy { |
16 class PolicyService; | 16 class PolicyService; |
17 } | 17 } |
18 | 18 |
19 class PrefRegistry; | 19 class PrefRegistry; |
| 20 class PrefRegistrySyncable; |
20 class PrefService; | 21 class PrefService; |
21 class PrefServiceSyncable; | 22 class PrefServiceSyncable; |
22 class PrefStore; | 23 class PrefStore; |
23 | 24 |
24 namespace chrome_prefs { | 25 namespace chrome_prefs { |
25 | 26 |
26 // Factory methods that create and initialize a new instance of a | 27 // Factory methods that create and initialize a new instance of a |
27 // PrefService for Chrome with the applicable PrefStores. The | 28 // PrefService for Chrome with the applicable PrefStores. The |
28 // |pref_filename| points to the user preference file. This is the | 29 // |pref_filename| points to the user preference file. This is the |
29 // usual way to create a new PrefService. | 30 // usual way to create a new PrefService. |
(...skipping 14 matching lines...) Expand all Loading... |
44 policy::PolicyService* policy_service, | 45 policy::PolicyService* policy_service, |
45 const scoped_refptr<PrefStore>& extension_prefs, | 46 const scoped_refptr<PrefStore>& extension_prefs, |
46 const scoped_refptr<PrefRegistry>& pref_registry, | 47 const scoped_refptr<PrefRegistry>& pref_registry, |
47 bool async); | 48 bool async); |
48 | 49 |
49 PrefServiceSyncable* CreateProfilePrefs( | 50 PrefServiceSyncable* CreateProfilePrefs( |
50 const base::FilePath& pref_filename, | 51 const base::FilePath& pref_filename, |
51 base::SequencedTaskRunner* pref_io_task_runner, | 52 base::SequencedTaskRunner* pref_io_task_runner, |
52 policy::PolicyService* policy_service, | 53 policy::PolicyService* policy_service, |
53 const scoped_refptr<PrefStore>& extension_prefs, | 54 const scoped_refptr<PrefStore>& extension_prefs, |
| 55 const scoped_refptr<PrefRegistrySyncable>& pref_registry, |
54 bool async); | 56 bool async); |
55 | 57 |
56 } // namespace chrome_prefs | 58 } // namespace chrome_prefs |
57 | 59 |
58 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ | 60 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ |
OLD | NEW |