Chromium Code Reviews| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 const content::NotificationSource& source, | 154 const content::NotificationSource& source, |
| 155 const content::NotificationDetails& details) OVERRIDE; | 155 const content::NotificationDetails& details) OVERRIDE; |
| 156 | 156 |
| 157 // Initializes the device cloud policy infrasturcture. | 157 // Initializes the device cloud policy infrasturcture. |
| 158 void InitializeDevicePolicy(); | 158 void InitializeDevicePolicy(); |
| 159 | 159 |
| 160 // Complete initialization once the message loops are running and the | 160 // Complete initialization once the message loops are running and the |
| 161 // local_state is initialized. | 161 // local_state is initialized. |
| 162 void CompleteInitialization(); | 162 void CompleteInitialization(); |
| 163 | 163 |
| 164 // Set the timezone as soon as the policies are avaiblable. | |
|
Joao da Silva
2012/08/06 15:33:49
Nit: *available
pneubeck (no reviews)
2012/08/07 06:56:11
Done.
| |
| 165 void SetTimezoneIfPolicyAvailable(); | |
| 166 | |
| 164 static ConfigurationPolicyProvider* CreatePlatformProvider(); | 167 static ConfigurationPolicyProvider* CreatePlatformProvider(); |
| 165 | 168 |
| 166 // Used to convert policies to preferences. The providers declared below | 169 // Used to convert policies to preferences. The providers declared below |
| 167 // trigger policy updates during destruction via OnProviderGoingAway(), which | 170 // trigger policy updates during destruction via OnProviderGoingAway(), which |
| 168 // will result in |handler_list_| being consulted for policy translation. | 171 // will result in |handler_list_| being consulted for policy translation. |
| 169 // Therefore, it's important to destroy |handler_list_| after the providers. | 172 // Therefore, it's important to destroy |handler_list_| after the providers. |
| 170 ConfigurationPolicyHandlerList handler_list_; | 173 ConfigurationPolicyHandlerList handler_list_; |
| 171 | 174 |
| 172 scoped_ptr<ConfigurationPolicyProvider> platform_provider_; | 175 scoped_ptr<ConfigurationPolicyProvider> platform_provider_; |
| 173 | 176 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 #if defined(OS_CHROMEOS) | 209 #if defined(OS_CHROMEOS) |
| 207 scoped_ptr<AppPackUpdater> app_pack_updater_; | 210 scoped_ptr<AppPackUpdater> app_pack_updater_; |
| 208 #endif | 211 #endif |
| 209 | 212 |
| 210 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 213 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
| 211 }; | 214 }; |
| 212 | 215 |
| 213 } // namespace policy | 216 } // namespace policy |
| 214 | 217 |
| 215 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 218 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| OLD | NEW |