| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 private: | 133 private: |
| 134 // content::NotificationObserver method overrides: | 134 // content::NotificationObserver method overrides: |
| 135 virtual void Observe(int type, | 135 virtual void Observe(int type, |
| 136 const content::NotificationSource& source, | 136 const content::NotificationSource& source, |
| 137 const content::NotificationDetails& details) OVERRIDE; | 137 const content::NotificationDetails& details) OVERRIDE; |
| 138 | 138 |
| 139 // Initializes the device cloud policy infrasturcture. | 139 // Initializes the device cloud policy infrasturcture. |
| 140 void InitializeDevicePolicy(); | 140 void InitializeDevicePolicy(); |
| 141 | 141 |
| 142 // Activates the device cloud policy subsystem. This will be posted as a task | 142 // Complete initialization once the message loops are running and the |
| 143 // from InitializeDevicePolicy since it needs to wait for the message loops to | 143 // local_state is initialized. |
| 144 // be running. | 144 void CompleteInitialization(); |
| 145 void InitializeDevicePolicySubsystem(); | |
| 146 | 145 |
| 147 static ConfigurationPolicyProvider* CreateManagedPlatformProvider(); | 146 static ConfigurationPolicyProvider* CreateManagedPlatformProvider(); |
| 148 static ConfigurationPolicyProvider* CreateRecommendedPlatformProvider(); | 147 static ConfigurationPolicyProvider* CreateRecommendedPlatformProvider(); |
| 149 | 148 |
| 150 scoped_ptr<ConfigurationPolicyProvider> managed_platform_provider_; | 149 scoped_ptr<ConfigurationPolicyProvider> managed_platform_provider_; |
| 151 scoped_ptr<ConfigurationPolicyProvider> recommended_platform_provider_; | 150 scoped_ptr<ConfigurationPolicyProvider> recommended_platform_provider_; |
| 152 | 151 |
| 153 scoped_ptr<CloudPolicyProvider> managed_cloud_provider_; | 152 scoped_ptr<CloudPolicyProvider> managed_cloud_provider_; |
| 154 scoped_ptr<CloudPolicyProvider> recommended_cloud_provider_; | 153 scoped_ptr<CloudPolicyProvider> recommended_cloud_provider_; |
| 155 | 154 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 178 | 177 |
| 179 // Used to convert policies to preferences. | 178 // Used to convert policies to preferences. |
| 180 ConfigurationPolicyHandlerList handler_list_; | 179 ConfigurationPolicyHandlerList handler_list_; |
| 181 | 180 |
| 182 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 181 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
| 183 }; | 182 }; |
| 184 | 183 |
| 185 } // namespace policy | 184 } // namespace policy |
| 186 | 185 |
| 187 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ | 186 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ |
| OLD | NEW |