| 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 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 class ManagedUserSettingsService; | 26 class ManagedUserSettingsService; |
| 27 class PrefHashStore; | 27 class PrefHashStore; |
| 28 class PrefRegistry; | 28 class PrefRegistry; |
| 29 class PrefRegistrySimple; | 29 class PrefRegistrySimple; |
| 30 class PrefService; | 30 class PrefService; |
| 31 class PrefServiceSyncable; | 31 class PrefServiceSyncable; |
| 32 class PrefStore; | 32 class PrefStore; |
| 33 class Profile; | 33 class Profile; |
| 34 class TrackedPreferenceValidationDelegate; |
| 34 | 35 |
| 35 namespace chrome_prefs { | 36 namespace chrome_prefs { |
| 36 | 37 |
| 37 namespace internals { | 38 namespace internals { |
| 38 | 39 |
| 39 extern const char kSettingsEnforcementTrialName[]; | 40 extern const char kSettingsEnforcementTrialName[]; |
| 40 extern const char kSettingsEnforcementGroupNoEnforcement[]; | 41 extern const char kSettingsEnforcementGroupNoEnforcement[]; |
| 41 extern const char kSettingsEnforcementGroupEnforceOnload[]; | 42 extern const char kSettingsEnforcementGroupEnforceOnload[]; |
| 42 extern const char kSettingsEnforcementGroupEnforceAlways[]; | 43 extern const char kSettingsEnforcementGroupEnforceAlways[]; |
| 43 extern const char kSettingsEnforcementGroupEnforceAlwaysWithExtensions[]; | 44 extern const char kSettingsEnforcementGroupEnforceAlwaysWithExtensions[]; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 63 scoped_ptr<PrefService> CreateLocalState( | 64 scoped_ptr<PrefService> CreateLocalState( |
| 64 const base::FilePath& pref_filename, | 65 const base::FilePath& pref_filename, |
| 65 base::SequencedTaskRunner* pref_io_task_runner, | 66 base::SequencedTaskRunner* pref_io_task_runner, |
| 66 policy::PolicyService* policy_service, | 67 policy::PolicyService* policy_service, |
| 67 const scoped_refptr<PrefRegistry>& pref_registry, | 68 const scoped_refptr<PrefRegistry>& pref_registry, |
| 68 bool async); | 69 bool async); |
| 69 | 70 |
| 70 scoped_ptr<PrefServiceSyncable> CreateProfilePrefs( | 71 scoped_ptr<PrefServiceSyncable> CreateProfilePrefs( |
| 71 const base::FilePath& pref_filename, | 72 const base::FilePath& pref_filename, |
| 72 base::SequencedTaskRunner* pref_io_task_runner, | 73 base::SequencedTaskRunner* pref_io_task_runner, |
| 74 TrackedPreferenceValidationDelegate* validation_delegate, |
| 73 policy::PolicyService* policy_service, | 75 policy::PolicyService* policy_service, |
| 74 ManagedUserSettingsService* managed_user_settings, | 76 ManagedUserSettingsService* managed_user_settings, |
| 75 const scoped_refptr<PrefStore>& extension_prefs, | 77 const scoped_refptr<PrefStore>& extension_prefs, |
| 76 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, | 78 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, |
| 77 bool async); | 79 bool async); |
| 78 | 80 |
| 79 // Schedules verification of the path resolution of the preferences file under | 81 // Schedules verification of the path resolution of the preferences file under |
| 80 // |profile_path|. | 82 // |profile_path|. |
| 81 void SchedulePrefsFilePathVerification(const base::FilePath& profile_path); | 83 void SchedulePrefsFilePathVerification(const base::FilePath& profile_path); |
| 82 | 84 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 111 | 113 |
| 112 // Register local state prefs used by chrome preference system. | 114 // Register local state prefs used by chrome preference system. |
| 113 void RegisterPrefs(PrefRegistrySimple* registry); | 115 void RegisterPrefs(PrefRegistrySimple* registry); |
| 114 | 116 |
| 115 // Register user prefs used by chrome preference system. | 117 // Register user prefs used by chrome preference system. |
| 116 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 118 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 117 | 119 |
| 118 } // namespace chrome_prefs | 120 } // namespace chrome_prefs |
| 119 | 121 |
| 120 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ | 122 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ |
| OLD | NEW |