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