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 #include "base/memory/scoped_ptr.h" |
9 | 10 |
10 namespace base { | 11 namespace base { |
11 class FilePath; | 12 class FilePath; |
12 class SequencedTaskRunner; | 13 class SequencedTaskRunner; |
13 } | 14 } |
14 | 15 |
15 namespace policy { | 16 namespace policy { |
16 class PolicyService; | 17 class PolicyService; |
17 } | 18 } |
18 | 19 |
19 namespace user_prefs { | 20 namespace user_prefs { |
20 class PrefRegistrySyncable; | 21 class PrefRegistrySyncable; |
21 } | 22 } |
22 | 23 |
23 class ManagedUserSettingsService; | 24 class ManagedUserSettingsService; |
| 25 class PrefHashStore; |
24 class PrefRegistry; | 26 class PrefRegistry; |
25 class PrefService; | 27 class PrefService; |
26 class PrefServiceSyncable; | 28 class PrefServiceSyncable; |
27 class PrefStore; | 29 class PrefStore; |
28 | 30 |
29 namespace chrome_prefs { | 31 namespace chrome_prefs { |
30 | 32 |
31 // Factory methods that create and initialize a new instance of a | 33 // Factory methods that create and initialize a new instance of a |
32 // PrefService for Chrome with the applicable PrefStores. The | 34 // PrefService for Chrome with the applicable PrefStores. The |
33 // |pref_filename| points to the user preference file. This is the | 35 // |pref_filename| points to the user preference file. This is the |
(...skipping 14 matching lines...) Expand all Loading... |
48 base::SequencedTaskRunner* pref_io_task_runner, | 50 base::SequencedTaskRunner* pref_io_task_runner, |
49 policy::PolicyService* policy_service, | 51 policy::PolicyService* policy_service, |
50 const scoped_refptr<PrefRegistry>& pref_registry, | 52 const scoped_refptr<PrefRegistry>& pref_registry, |
51 bool async); | 53 bool async); |
52 | 54 |
53 PrefServiceSyncable* CreateProfilePrefs( | 55 PrefServiceSyncable* CreateProfilePrefs( |
54 const base::FilePath& pref_filename, | 56 const base::FilePath& pref_filename, |
55 base::SequencedTaskRunner* pref_io_task_runner, | 57 base::SequencedTaskRunner* pref_io_task_runner, |
56 policy::PolicyService* policy_service, | 58 policy::PolicyService* policy_service, |
57 ManagedUserSettingsService* managed_user_settings, | 59 ManagedUserSettingsService* managed_user_settings, |
| 60 scoped_ptr<PrefHashStore> pref_hash_store, |
58 const scoped_refptr<PrefStore>& extension_prefs, | 61 const scoped_refptr<PrefStore>& extension_prefs, |
59 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, | 62 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, |
60 bool async); | 63 bool async); |
61 | 64 |
62 } // namespace chrome_prefs | 65 } // namespace chrome_prefs |
63 | 66 |
64 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ | 67 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ |
OLD | NEW |