OLD | NEW |
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 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 const content::NotificationSource& source, | 167 const content::NotificationSource& source, |
168 const content::NotificationDetails& details) OVERRIDE; | 168 const content::NotificationDetails& details) OVERRIDE; |
169 | 169 |
170 // Initializes the device cloud policy infrasturcture. | 170 // Initializes the device cloud policy infrasturcture. |
171 void InitializeDevicePolicy(); | 171 void InitializeDevicePolicy(); |
172 | 172 |
173 // Complete initialization once the message loops are running and the | 173 // Complete initialization once the message loops are running and the |
174 // local_state is initialized. | 174 // local_state is initialized. |
175 void CompleteInitialization(); | 175 void CompleteInitialization(); |
176 | 176 |
177 // Set the timezone as soon as the policies are available. | |
178 void SetTimezoneIfPolicyAvailable(); | |
179 | |
180 static ConfigurationPolicyProvider* CreatePlatformProvider(); | 177 static ConfigurationPolicyProvider* CreatePlatformProvider(); |
181 | 178 |
182 // Used to convert policies to preferences. The providers declared below | 179 // Used to convert policies to preferences. The providers declared below |
183 // trigger policy updates during destruction via OnProviderGoingAway(), which | 180 // trigger policy updates during destruction via OnProviderGoingAway(), which |
184 // will result in |handler_list_| being consulted for policy translation. | 181 // will result in |handler_list_| being consulted for policy translation. |
185 // Therefore, it's important to destroy |handler_list_| after the providers. | 182 // Therefore, it's important to destroy |handler_list_| after the providers. |
186 ConfigurationPolicyHandlerList handler_list_; | 183 ConfigurationPolicyHandlerList handler_list_; |
187 | 184 |
188 scoped_ptr<ConfigurationPolicyProvider> platform_provider_; | 185 scoped_ptr<ConfigurationPolicyProvider> platform_provider_; |
189 | 186 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 #if defined(OS_CHROMEOS) | 218 #if defined(OS_CHROMEOS) |
222 scoped_ptr<AppPackUpdater> app_pack_updater_; | 219 scoped_ptr<AppPackUpdater> app_pack_updater_; |
223 #endif | 220 #endif |
224 | 221 |
225 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 222 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
226 }; | 223 }; |
227 | 224 |
228 } // namespace policy | 225 } // namespace policy |
229 | 226 |
230 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 227 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
OLD | NEW |