Roll src/third_party/WebKit 8b42d1d:744641d (svn 186770:186771)
[chromium-blink-merge.git] / chrome / browser / prefs / browser_prefs.h
blob9fa2829653cac77457272d2974ff50c56fdae316
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.
5 #ifndef CHROME_BROWSER_PREFS_BROWSER_PREFS_H_
6 #define CHROME_BROWSER_PREFS_BROWSER_PREFS_H_
8 class PrefRegistrySimple;
9 class PrefService;
10 class Profile;
12 namespace user_prefs {
13 class PrefRegistrySyncable;
16 namespace chrome {
18 // Register all prefs that will be used via the local state PrefService.
19 void RegisterLocalState(PrefRegistrySimple* registry);
21 void RegisterScreenshotPrefs(PrefRegistrySimple* registry);
23 // Register all prefs that will be used via a PrefService attached to a user
24 // Profile.
25 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
27 #if defined(OS_CHROMEOS)
28 // Register all prefs that will be used via a PrefService attached to the login
29 // Profile.
30 void RegisterLoginProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
31 #endif
33 // Migrates prefs from |local_state| to |profile|'s pref store.
34 void MigrateBrowserPrefs(Profile* profile, PrefService* local_state);
36 // Migrates prefs in |profile|'s pref store.
37 void MigrateUserPrefs(Profile* profile);
39 // Migrates zoom level prefs in |profile|'s pref store to a per-StoragePartition
40 // set of prefs.
41 void MigrateProfileZoomLevelPrefs(Profile* profile);
43 } // namespace chrome
45 #endif // CHROME_BROWSER_PREFS_BROWSER_PREFS_H_