| 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 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 base::SequencedTaskRunner* pref_io_task_runner, | 50 base::SequencedTaskRunner* pref_io_task_runner, |
| 51 policy::PolicyService* policy_service, | 51 policy::PolicyService* policy_service, |
| 52 const scoped_refptr<PrefRegistry>& pref_registry, | 52 const scoped_refptr<PrefRegistry>& pref_registry, |
| 53 bool async); | 53 bool async); |
| 54 | 54 |
| 55 scoped_ptr<PrefServiceSyncable> CreateProfilePrefs( | 55 scoped_ptr<PrefServiceSyncable> CreateProfilePrefs( |
| 56 const base::FilePath& pref_filename, | 56 const base::FilePath& pref_filename, |
| 57 base::SequencedTaskRunner* pref_io_task_runner, | 57 base::SequencedTaskRunner* pref_io_task_runner, |
| 58 policy::PolicyService* policy_service, | 58 policy::PolicyService* policy_service, |
| 59 ManagedUserSettingsService* managed_user_settings, | 59 ManagedUserSettingsService* managed_user_settings, |
| 60 scoped_ptr<PrefHashStore> pref_hash_store, | |
| 61 const scoped_refptr<PrefStore>& extension_prefs, | 60 const scoped_refptr<PrefStore>& extension_prefs, |
| 62 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, | 61 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, |
| 63 bool async); | 62 bool async); |
| 64 | 63 |
| 65 // Initializes a preference hash store for the profile preferences file at | 64 // Schedules verification of the path resolution of the preferences file under |
| 66 // |pref_filename| without actually loading the profile. | 65 // |profile_path|. |
| 67 void InitializeHashStoreForPrefFile( | 66 void SchedulePrefsFilePathVerification(const base::FilePath& profile_path); |
| 68 const base::FilePath& pref_filename, | 67 |
| 69 base::SequencedTaskRunner* pref_io_task_runner, | 68 // Initializes the PrefHashStore for the profile preferences file under |
| 70 scoped_ptr<PrefHashStore> pref_hash_store); | 69 // |profile_path| without actually loading that profile. |
| 70 void InitializePrefHashStoreIfRequired( |
| 71 const base::FilePath& profile_path); |
| 72 |
| 73 // Resets the contents of the preference hash store for the profile at |
| 74 // |profile_path|. |
| 75 void ResetPrefHashStore(const base::FilePath& profile_path); |
| 71 | 76 |
| 72 } // namespace chrome_prefs | 77 } // namespace chrome_prefs |
| 73 | 78 |
| 74 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ | 79 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ |
| OLD | NEW |