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

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

Issue 2799043003: Revert of Pref service: add support for tracked prefs. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/prefs/chrome_pref_service_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
12 11
13 namespace base { 12 namespace base {
14 class DictionaryValue; 13 class DictionaryValue;
15 class FilePath; 14 class FilePath;
16 class SequencedTaskRunner; 15 class SequencedTaskRunner;
17 class Time; 16 class Time;
18 } 17 }
19 18
20 namespace policy { 19 namespace policy {
21 class PolicyService; 20 class PolicyService;
22 } 21 }
23 22
23 namespace prefs {
24 namespace mojom {
25 class TrackedPreferenceValidationDelegate;
26 }
27 }
28
24 namespace service_manager { 29 namespace service_manager {
25 class Connector; 30 class Connector;
26 } 31 }
27 32
28 namespace sync_preferences { 33 namespace sync_preferences {
29 class PrefServiceSyncable; 34 class PrefServiceSyncable;
30 } 35 }
31 36
32 namespace user_prefs { 37 namespace user_prefs {
33 class PrefRegistrySyncable; 38 class PrefRegistrySyncable;
34 } 39 }
35 40
36 class PrefRegistry; 41 class PrefRegistry;
37 class PrefService; 42 class PrefService;
38 43
39 class PrefStore; 44 class PrefStore;
40 class Profile; 45 class Profile;
41 class SupervisedUserSettingsService; 46 class SupervisedUserSettingsService;
47 class TrackedPreferenceValidationDelegate;
42 48
43 namespace chrome_prefs { 49 namespace chrome_prefs {
44 50
45 namespace internals { 51 namespace internals {
46 52
47 extern const char kSettingsEnforcementTrialName[]; 53 extern const char kSettingsEnforcementTrialName[];
48 extern const char kSettingsEnforcementGroupNoEnforcement[]; 54 extern const char kSettingsEnforcementGroupNoEnforcement[];
49 extern const char kSettingsEnforcementGroupEnforceAlways[]; 55 extern const char kSettingsEnforcementGroupEnforceAlways[];
50 extern const char kSettingsEnforcementGroupEnforceAlwaysWithDSE[]; 56 extern const char kSettingsEnforcementGroupEnforceAlwaysWithDSE[];
51 extern const char kSettingsEnforcementGroupEnforceAlwaysWithExtensionsAndDSE[]; 57 extern const char kSettingsEnforcementGroupEnforceAlwaysWithExtensionsAndDSE[];
(...skipping 17 matching lines...) Expand all
69 75
70 std::unique_ptr<PrefService> CreateLocalState( 76 std::unique_ptr<PrefService> CreateLocalState(
71 const base::FilePath& pref_filename, 77 const base::FilePath& pref_filename,
72 base::SequencedTaskRunner* pref_io_task_runner, 78 base::SequencedTaskRunner* pref_io_task_runner,
73 policy::PolicyService* policy_service, 79 policy::PolicyService* policy_service,
74 const scoped_refptr<PrefRegistry>& pref_registry, 80 const scoped_refptr<PrefRegistry>& pref_registry,
75 bool async); 81 bool async);
76 82
77 std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs( 83 std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs(
78 const base::FilePath& pref_filename, 84 const base::FilePath& pref_filename,
79 prefs::mojom::TrackedPreferenceValidationDelegatePtr validation_delegate, 85 base::SequencedTaskRunner* pref_io_task_runner,
86 prefs::mojom::TrackedPreferenceValidationDelegate* validation_delegate,
80 policy::PolicyService* policy_service, 87 policy::PolicyService* policy_service,
81 SupervisedUserSettingsService* supervised_user_settings, 88 SupervisedUserSettingsService* supervised_user_settings,
82 const scoped_refptr<PrefStore>& extension_prefs, 89 const scoped_refptr<PrefStore>& extension_prefs,
83 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, 90 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry,
84 bool async, 91 bool async,
85 service_manager::Connector* connector); 92 service_manager::Connector* connector);
86 93
87 // Call before startup tasks kick in to ignore the presence of a domain when 94 // Call before startup tasks kick in to ignore the presence of a domain when
88 // determining the active SettingsEnforcement group. For testing only. 95 // determining the active SettingsEnforcement group. For testing only.
89 void DisableDomainCheckForTesting(); 96 void DisableDomainCheckForTesting();
(...skipping 11 matching lines...) Expand all
101 // Clears the time of the last preference reset event, if any, for the provided 108 // Clears the time of the last preference reset event, if any, for the provided
102 // profile. 109 // profile.
103 void ClearResetTime(Profile* profile); 110 void ClearResetTime(Profile* profile);
104 111
105 // Register user prefs used by chrome preference system. 112 // Register user prefs used by chrome preference system.
106 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 113 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
107 114
108 } // namespace chrome_prefs 115 } // namespace chrome_prefs
109 116
110 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_ 117 #endif // CHROME_BROWSER_PREFS_CHROME_PREF_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prefs/chrome_pref_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698