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

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

Issue 2719833002: Convert TrackedPreferenceValidationDelegate into a mojo interface. (Closed)
Patch Set: Created 3 years, 9 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 11
12 namespace base { 12 namespace base {
13 class DictionaryValue; 13 class DictionaryValue;
14 class FilePath; 14 class FilePath;
15 class SequencedTaskRunner; 15 class SequencedTaskRunner;
16 class Time; 16 class Time;
17 } 17 }
18 18
19 namespace policy { 19 namespace policy {
20 class PolicyService; 20 class PolicyService;
21 } 21 }
22 22
23 namespace prefs {
24 namespace mojom {
25 class TrackedPreferenceValidationDelegate;
26 }
27 }
28
23 namespace sync_preferences { 29 namespace sync_preferences {
24 class PrefServiceSyncable; 30 class PrefServiceSyncable;
25 } 31 }
26 32
27 namespace user_prefs { 33 namespace user_prefs {
28 class PrefRegistrySyncable; 34 class PrefRegistrySyncable;
29 } 35 }
30 36
31 class PrefRegistry; 37 class PrefRegistry;
32 class PrefService; 38 class PrefService;
33 39
34 class PrefStore; 40 class PrefStore;
35 class Profile; 41 class Profile;
36 class SupervisedUserSettingsService; 42 class SupervisedUserSettingsService;
37 class TrackedPreferenceValidationDelegate;
38 43
39 namespace chrome_prefs { 44 namespace chrome_prefs {
40 45
41 namespace internals { 46 namespace internals {
42 47
43 extern const char kSettingsEnforcementTrialName[]; 48 extern const char kSettingsEnforcementTrialName[];
44 extern const char kSettingsEnforcementGroupNoEnforcement[]; 49 extern const char kSettingsEnforcementGroupNoEnforcement[];
45 extern const char kSettingsEnforcementGroupEnforceAlways[]; 50 extern const char kSettingsEnforcementGroupEnforceAlways[];
46 extern const char kSettingsEnforcementGroupEnforceAlwaysWithDSE[]; 51 extern const char kSettingsEnforcementGroupEnforceAlwaysWithDSE[];
47 extern const char kSettingsEnforcementGroupEnforceAlwaysWithExtensionsAndDSE[]; 52 extern const char kSettingsEnforcementGroupEnforceAlwaysWithExtensionsAndDSE[];
(...skipping 18 matching lines...) Expand all
66 std::unique_ptr<PrefService> CreateLocalState( 71 std::unique_ptr<PrefService> CreateLocalState(
67 const base::FilePath& pref_filename, 72 const base::FilePath& pref_filename,
68 base::SequencedTaskRunner* pref_io_task_runner, 73 base::SequencedTaskRunner* pref_io_task_runner,
69 policy::PolicyService* policy_service, 74 policy::PolicyService* policy_service,
70 const scoped_refptr<PrefRegistry>& pref_registry, 75 const scoped_refptr<PrefRegistry>& pref_registry,
71 bool async); 76 bool async);
72 77
73 std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs( 78 std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs(
74 const base::FilePath& pref_filename, 79 const base::FilePath& pref_filename,
75 base::SequencedTaskRunner* pref_io_task_runner, 80 base::SequencedTaskRunner* pref_io_task_runner,
76 TrackedPreferenceValidationDelegate* validation_delegate, 81 prefs::mojom::TrackedPreferenceValidationDelegate* validation_delegate,
77 policy::PolicyService* policy_service, 82 policy::PolicyService* policy_service,
78 SupervisedUserSettingsService* supervised_user_settings, 83 SupervisedUserSettingsService* supervised_user_settings,
79 const scoped_refptr<PrefStore>& extension_prefs, 84 const scoped_refptr<PrefStore>& extension_prefs,
80 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, 85 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry,
81 bool async); 86 bool async);
82 87
83 // 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
84 // determining the active SettingsEnforcement group. For testing only. 89 // determining the active SettingsEnforcement group. For testing only.
85 void DisableDomainCheckForTesting(); 90 void DisableDomainCheckForTesting();
86 91
(...skipping 10 matching lines...) Expand all
97 // 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
98 // profile. 103 // profile.
99 void ClearResetTime(Profile* profile); 104 void ClearResetTime(Profile* profile);
100 105
101 // Register user prefs used by chrome preference system. 106 // Register user prefs used by chrome preference system.
102 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 107 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
103 108
104 } // namespace chrome_prefs 109 } // namespace chrome_prefs
105 110
106 #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 | « 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