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 #if defined(OS_CHROMEOS) |
| 165 void SetTimezoneIfPolicyAvailable(); |
| 166 #endif |
| 167 |
164 static ConfigurationPolicyProvider* CreatePlatformProvider(); | 168 static ConfigurationPolicyProvider* CreatePlatformProvider(); |
165 | 169 |
166 // Used to convert policies to preferences. The providers declared below | 170 // Used to convert policies to preferences. The providers declared below |
167 // trigger policy updates during destruction via OnProviderGoingAway(), which | 171 // trigger policy updates during destruction via OnProviderGoingAway(), which |
168 // will result in |handler_list_| being consulted for policy translation. | 172 // will result in |handler_list_| being consulted for policy translation. |
169 // Therefore, it's important to destroy |handler_list_| after the providers. | 173 // Therefore, it's important to destroy |handler_list_| after the providers. |
170 ConfigurationPolicyHandlerList handler_list_; | 174 ConfigurationPolicyHandlerList handler_list_; |
171 | 175 |
172 scoped_ptr<ConfigurationPolicyProvider> platform_provider_; | 176 scoped_ptr<ConfigurationPolicyProvider> platform_provider_; |
173 | 177 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 #if defined(OS_CHROMEOS) | 210 #if defined(OS_CHROMEOS) |
207 scoped_ptr<AppPackUpdater> app_pack_updater_; | 211 scoped_ptr<AppPackUpdater> app_pack_updater_; |
208 #endif | 212 #endif |
209 | 213 |
210 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 214 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
211 }; | 215 }; |
212 | 216 |
213 } // namespace policy | 217 } // namespace policy |
214 | 218 |
215 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 219 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
OLD | NEW |