| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_ | 5 #ifndef IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_ |
| 6 #define IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_ | 6 #define IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 | 11 |
| 12 class PrefRegistry; | 12 class PrefRegistry; |
| 13 class PrefService; | 13 class PrefService; |
| 14 class PrefStore; | |
| 15 | 14 |
| 16 namespace base { | 15 namespace base { |
| 17 class FilePath; | 16 class FilePath; |
| 18 class SequencedTaskRunner; | 17 class SequencedTaskRunner; |
| 19 } | 18 } |
| 20 | 19 |
| 21 namespace ios { | |
| 22 class ChromeBrowserState; | |
| 23 } | |
| 24 | |
| 25 namespace sync_preferences { | 20 namespace sync_preferences { |
| 26 class PrefServiceSyncable; | 21 class PrefServiceSyncable; |
| 27 } | 22 } |
| 28 | 23 |
| 29 namespace user_prefs { | 24 namespace user_prefs { |
| 30 class PrefRegistrySyncable; | 25 class PrefRegistrySyncable; |
| 31 } | 26 } |
| 32 | 27 |
| 33 // Factory methods that create and initialize a new instance of a PrefService | 28 // Factory methods that create and initialize a new instance of a PrefService |
| 34 // for Chrome on iOS with the applicable PrefStores. The |pref_filename| points | 29 // for Chrome on iOS with the applicable PrefStores. The |pref_filename| points |
| (...skipping 10 matching lines...) Expand all Loading... |
| 45 base::SequencedTaskRunner* pref_io_task_runner, | 40 base::SequencedTaskRunner* pref_io_task_runner, |
| 46 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry); | 41 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry); |
| 47 | 42 |
| 48 // Creates an incognito copy of |pref_service| that shares most prefs but uses | 43 // Creates an incognito copy of |pref_service| that shares most prefs but uses |
| 49 // a fresh non-persistent overlay for the user pref store. | 44 // a fresh non-persistent overlay for the user pref store. |
| 50 std::unique_ptr<sync_preferences::PrefServiceSyncable> | 45 std::unique_ptr<sync_preferences::PrefServiceSyncable> |
| 51 CreateIncognitoBrowserStatePrefs( | 46 CreateIncognitoBrowserStatePrefs( |
| 52 sync_preferences::PrefServiceSyncable* main_pref_store); | 47 sync_preferences::PrefServiceSyncable* main_pref_store); |
| 53 | 48 |
| 54 #endif // IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_ | 49 #endif // IOS_CHROME_BROWSER_PREFS_IOS_CHROME_PREF_SERVICE_FACTORY_H_ |
| OLD | NEW |