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 #include "base/memory/scoped_ptr.h" |
10 | 10 |
11 namespace base { | 11 namespace base { |
| 12 class DictionaryValue; |
12 class FilePath; | 13 class FilePath; |
13 class SequencedTaskRunner; | 14 class SequencedTaskRunner; |
14 } | 15 } |
15 | 16 |
16 namespace policy { | 17 namespace policy { |
17 class PolicyService; | 18 class PolicyService; |
18 } | 19 } |
19 | 20 |
20 namespace user_prefs { | 21 namespace user_prefs { |
21 class PrefRegistrySyncable; | 22 class PrefRegistrySyncable; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 scoped_ptr<PrefServiceSyncable> CreateProfilePrefs( | 56 scoped_ptr<PrefServiceSyncable> CreateProfilePrefs( |
56 const base::FilePath& pref_filename, | 57 const base::FilePath& pref_filename, |
57 base::SequencedTaskRunner* pref_io_task_runner, | 58 base::SequencedTaskRunner* pref_io_task_runner, |
58 policy::PolicyService* policy_service, | 59 policy::PolicyService* policy_service, |
59 ManagedUserSettingsService* managed_user_settings, | 60 ManagedUserSettingsService* managed_user_settings, |
60 scoped_ptr<PrefHashStore> pref_hash_store, | 61 scoped_ptr<PrefHashStore> pref_hash_store, |
61 const scoped_refptr<PrefStore>& extension_prefs, | 62 const scoped_refptr<PrefStore>& extension_prefs, |
62 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, | 63 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, |
63 bool async); | 64 bool async); |
64 | 65 |
65 // Initializes a preference hash store for the profile preferences file at | 66 // Initializes the |pref_hash_store| for the profile preferences file at |
66 // |pref_filename| without actually loading the profile. | 67 // |pref_filename| without actually loading the profile. |
67 void InitializeHashStoreForPrefFile( | 68 void InitializeHashStoreFromPrefFile( |
68 const base::FilePath& pref_filename, | 69 const base::FilePath& pref_filename, |
69 base::SequencedTaskRunner* pref_io_task_runner, | 70 base::SequencedTaskRunner* pref_io_task_runner, |
70 scoped_ptr<PrefHashStore> pref_hash_store); | 71 scoped_ptr<PrefHashStore> pref_hash_store); |
71 | 72 |
| 73 // Initializes the |pref_hash_store| via the preference values present in |
| 74 // |master_prefs|. |
| 75 void InitializeHashStoreFromMasterPrefs( |
| 76 const base::DictionaryValue& master_prefs, |
| 77 scoped_ptr<PrefHashStore> pref_hash_store); |
| 78 |
72 } // namespace chrome_prefs | 79 } // namespace chrome_prefs |
73 | 80 |
74 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ | 81 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ |
OLD | NEW |