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
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_PREFS_BROWSER_PREFS_H_
6#define CHROME_BROWSER_PREFS_BROWSER_PREFS_H_
7
8class PrefRegistrySimple;
9class PrefService;
10class Profile;
11
12namespace user_prefs {
13class PrefRegistrySyncable;
14}
15
16namespace chrome {
17
18// Register all prefs that will be used via the local state PrefService.
19void RegisterLocalState(PrefRegistrySimple* registry);
20
21// Register all prefs that will be used via a PrefService attached to a user
22// Profile.
23void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
24
25#if defined(OS_CHROMEOS)
26// Register all prefs that will be used via a PrefService attached to the login
27// Profile.
28void RegisterLoginProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
29#endif
30
31// Migrates prefs from |local_state| to |profile|'s pref store.
32void MigrateBrowserPrefs(Profile* profile, PrefService* local_state);
33
34// Migrates prefs in |profile|'s pref store.
35void MigrateUserPrefs(Profile* profile);
36
37}  // namespace chrome
38
39#endif  // CHROME_BROWSER_PREFS_BROWSER_PREFS_H_
40