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

Side by Side Diff: chrome/browser/policy/browser_policy_connector.h

Issue 56623005: Policy providers all get a SchemaRegistry to work with. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-9-purge-with-callback
Patch Set: rebase Created 7 years, 1 month 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_POLICY_BROWSER_POLICY_CONNECTOR_H_ 5 #ifndef CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // false if the username is empty. 161 // false if the username is empty.
162 static bool IsNonEnterpriseUser(const std::string& username); 162 static bool IsNonEnterpriseUser(const std::string& username);
163 163
164 // Registers refresh rate prefs. 164 // Registers refresh rate prefs.
165 static void RegisterPrefs(PrefRegistrySimple* registry); 165 static void RegisterPrefs(PrefRegistrySimple* registry);
166 166
167 private: 167 private:
168 // Set the timezone as soon as the policies are available. 168 // Set the timezone as soon as the policies are available.
169 void SetTimezoneIfPolicyAvailable(); 169 void SetTimezoneIfPolicyAvailable();
170 170
171 static ConfigurationPolicyProvider* CreatePlatformProvider(); 171 ConfigurationPolicyProvider* CreatePlatformProvider();
172 172
173 // Whether Init() but not Shutdown() has been invoked. 173 // Whether Init() but not Shutdown() has been invoked.
174 bool is_initialized_; 174 bool is_initialized_;
175 175
176 PrefService* local_state_; 176 PrefService* local_state_;
177 scoped_refptr<net::URLRequestContextGetter> request_context_; 177 scoped_refptr<net::URLRequestContextGetter> request_context_;
178 178
179 // Used to convert policies to preferences. The providers declared below 179 // Used to convert policies to preferences. The providers declared below
180 // may trigger policy updates during shutdown, which will result in 180 // may trigger policy updates during shutdown, which will result in
181 // |handler_list_| being consulted for policy translation. 181 // |handler_list_| being consulted for policy translation.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 scoped_ptr<AppPackUpdater> app_pack_updater_; 220 scoped_ptr<AppPackUpdater> app_pack_updater_;
221 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 221 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
222 #endif 222 #endif
223 223
224 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 224 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
225 }; 225 };
226 226
227 } // namespace policy 227 } // namespace policy
228 228
229 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 229 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/async_policy_provider_unittest.cc ('k') | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698