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 |
11 namespace base { | 11 namespace base { |
| 12 class DictionaryValue; |
12 class FilePath; | 13 class FilePath; |
13 class SequencedTaskRunner; | 14 class SequencedTaskRunner; |
14 } | 15 } |
15 | 16 |
16 namespace policy { | 17 namespace policy { |
17 class PolicyService; | 18 class PolicyService; |
18 } | 19 } |
19 | 20 |
20 namespace user_prefs { | 21 namespace user_prefs { |
21 class PrefRegistrySyncable; | 22 class PrefRegistrySyncable; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 68 |
68 // Initializes the PrefHashStore for the profile preferences file under | 69 // Initializes the PrefHashStore for the profile preferences file under |
69 // |profile_path| without actually loading that profile. | 70 // |profile_path| without actually loading that profile. |
70 void InitializePrefHashStoreIfRequired( | 71 void InitializePrefHashStoreIfRequired( |
71 const base::FilePath& profile_path); | 72 const base::FilePath& profile_path); |
72 | 73 |
73 // Resets the contents of the preference hash store for the profile at | 74 // Resets the contents of the preference hash store for the profile at |
74 // |profile_path|. | 75 // |profile_path|. |
75 void ResetPrefHashStore(const base::FilePath& profile_path); | 76 void ResetPrefHashStore(const base::FilePath& profile_path); |
76 | 77 |
| 78 // Initializes the preferences for the profile at |profile_path| with the |
| 79 // preference values in |master_prefs|. Returns true on success. |
| 80 bool InitializePrefsFromMasterPrefs( |
| 81 const base::FilePath& profile_path, |
| 82 const base::DictionaryValue& master_prefs); |
| 83 |
77 } // namespace chrome_prefs | 84 } // namespace chrome_prefs |
78 | 85 |
79 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ | 86 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ |
OLD | NEW |