Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: chrome/browser/prefs/chrome_pref_service_factory.h

Issue 2860683002: WIP: Pref service: use the incognito support from Chrome
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "services/preferences/public/interfaces/tracked_preference_validation_d elegate.mojom.h" 11 #include "services/preferences/public/interfaces/tracked_preference_validation_d elegate.mojom.h"
12 12
13 namespace base { 13 namespace base {
14 class DictionaryValue; 14 class DictionaryValue;
15 class FilePath; 15 class FilePath;
16 class SequencedTaskRunner; 16 class SequencedTaskRunner;
17 class Time; 17 class Time;
18 } 18 }
19 19
20 namespace policy { 20 namespace policy {
21 class PolicyService; 21 class PolicyService;
22 } 22 }
23 23
24 namespace service_manager { 24 namespace service_manager {
25 class Connector; 25 class Connector;
26 } 26 }
27 27
28 namespace sync_preferences { 28 namespace sync_preferences {
29 class PrefServiceSyncable; 29 class PrefServiceSyncableFactory;
30 } 30 }
31 31
32 namespace user_prefs { 32 namespace user_prefs {
33 class PrefRegistrySyncable; 33 class PrefRegistrySyncable;
34 } 34 }
35 35
36 class PrefRegistry; 36 class PrefRegistry;
37 class PrefService; 37 class PrefService;
38 38
39 class PrefStore; 39 class PrefStore;
(...skipping 27 matching lines...) Expand all
67 // guaranteed that in asynchronous version initialization happens after this 67 // guaranteed that in asynchronous version initialization happens after this
68 // function returned. 68 // function returned.
69 69
70 std::unique_ptr<PrefService> CreateLocalState( 70 std::unique_ptr<PrefService> CreateLocalState(
71 const base::FilePath& pref_filename, 71 const base::FilePath& pref_filename,
72 base::SequencedTaskRunner* pref_io_task_runner, 72 base::SequencedTaskRunner* pref_io_task_runner,
73 policy::PolicyService* policy_service, 73 policy::PolicyService* policy_service,
74 const scoped_refptr<PrefRegistry>& pref_registry, 74 const scoped_refptr<PrefRegistry>& pref_registry,
75 bool async); 75 bool async);
76 76
77 std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs( 77 std::unique_ptr<sync_preferences::PrefServiceSyncableFactory>
78 CreateProfilePrefs(
78 const base::FilePath& pref_filename, 79 const base::FilePath& pref_filename,
79 prefs::mojom::TrackedPreferenceValidationDelegatePtr validation_delegate, 80 prefs::mojom::TrackedPreferenceValidationDelegatePtr validation_delegate,
80 policy::PolicyService* policy_service, 81 policy::PolicyService* policy_service,
81 SupervisedUserSettingsService* supervised_user_settings, 82 SupervisedUserSettingsService* supervised_user_settings,
82 const scoped_refptr<PrefStore>& extension_prefs, 83 const scoped_refptr<PrefStore>& extension_prefs,
83 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, 84 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry,
84 bool async, 85 bool async,
85 service_manager::Connector* connector); 86 service_manager::Connector* connector);
86 87
87 // Call before startup tasks kick in to ignore the presence of a domain when 88 // Call before startup tasks kick in to ignore the presence of a domain when
(...skipping 13 matching lines...) Expand all
101 // Clears the time of the last preference reset event, if any, for the provided 102 // Clears the time of the last preference reset event, if any, for the provided
102 // profile. 103 // profile.
103 void ClearResetTime(Profile* profile); 104 void ClearResetTime(Profile* profile);
104 105
105 // Register user prefs used by chrome preference system. 106 // Register user prefs used by chrome preference system.
106 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 107 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
107 108
108 } // namespace chrome_prefs 109 } // namespace chrome_prefs
109 110
110 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 111 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/prefs/chrome_pref_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698