1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_CHROME_BROWSER_PREFS_BROWSER_PREFS_H_
6 #define IOS_CHROME_BROWSER_PREFS_BROWSER_PREFS_H_
8 class PrefRegistrySimple
;
11 namespace user_prefs
{
12 class PrefRegistrySyncable
;
15 // Registers all prefs that will be used via the local state PrefService.
16 void RegisterLocalStatePrefs(PrefRegistrySimple
* registry
);
18 // Registers all prefs that will be used via a PrefService attached to a
20 void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable
* registry
);
22 // Migrate/cleanup deprecated prefs in local state. Over time, long deprecated
23 // prefs should be removed as new ones are added, but this call should never go
24 // away (even if it becomes an empty call for some time) as it should remain
25 // *the* place to drop deprecated local state prefs at.
26 void MigrateObsoleteLocalStatePrefs(PrefService
* prefs
);
28 // Migrate/cleanup deprecated prefs in the browser state's pref store. Over
29 // time, long deprecated prefs should be removed as new ones are added, but this
30 // call should never go away (even if it becomes an empty call for some time) as
31 // it should remain *the* place to drop deprecated browser state's prefs at.
32 void MigrateObsoleteBrowserStatePrefs(PrefService
* prefs
);
34 #endif // IOS_CHROME_BROWSER_PREFS_BROWSER_PREFS_H_