OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" | 14 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
15 #include "chrome/browser/policy/chrome_browser_policy_connector.h" | 15 #include "chrome/browser/policy/chrome_browser_policy_connector.h" |
16 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 16 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
17 | 17 |
18 class PrefRegistrySimple; | 18 class PrefRegistrySimple; |
19 class PrefService; | 19 class PrefService; |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 class URLRequestContextGetter; | 22 class URLRequestContextGetter; |
23 } | 23 } |
24 | 24 |
25 namespace policy { | 25 namespace policy { |
26 | 26 |
| 27 class AffiliatedInvalidationServiceProvider; |
27 class ConsumerManagementService; | 28 class ConsumerManagementService; |
28 class DeviceCloudPolicyInitializer; | 29 class DeviceCloudPolicyInitializer; |
29 class DeviceCloudPolicyInvalidator; | 30 class DeviceCloudPolicyInvalidator; |
30 class DeviceLocalAccountPolicyService; | 31 class DeviceLocalAccountPolicyService; |
31 class DeviceManagementService; | 32 class DeviceManagementService; |
32 struct EnrollmentConfig; | 33 struct EnrollmentConfig; |
33 class EnterpriseInstallAttributes; | 34 class EnterpriseInstallAttributes; |
34 class NetworkConfigurationUpdater; | 35 class NetworkConfigurationUpdater; |
35 class ProxyPolicyProvider; | 36 class ProxyPolicyProvider; |
36 class ServerBackedStateKeysBroker; | 37 class ServerBackedStateKeysBroker; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Set the timezone as soon as the policies are available. | 144 // Set the timezone as soon as the policies are available. |
144 void SetTimezoneIfPolicyAvailable(); | 145 void SetTimezoneIfPolicyAvailable(); |
145 | 146 |
146 // Restarts the device cloud policy initializer, because the device's | 147 // Restarts the device cloud policy initializer, because the device's |
147 // registration status changed from registered to unregistered. | 148 // registration status changed from registered to unregistered. |
148 void RestartDeviceCloudPolicyInitializer(); | 149 void RestartDeviceCloudPolicyInitializer(); |
149 | 150 |
150 // Components of the device cloud policy implementation. | 151 // Components of the device cloud policy implementation. |
151 scoped_ptr<ServerBackedStateKeysBroker> state_keys_broker_; | 152 scoped_ptr<ServerBackedStateKeysBroker> state_keys_broker_; |
152 scoped_ptr<EnterpriseInstallAttributes> install_attributes_; | 153 scoped_ptr<EnterpriseInstallAttributes> install_attributes_; |
| 154 scoped_ptr<AffiliatedInvalidationServiceProvider> |
| 155 affiliated_invalidation_service_provider_; |
153 scoped_ptr<ConsumerManagementService> consumer_management_service_; | 156 scoped_ptr<ConsumerManagementService> consumer_management_service_; |
154 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_; | 157 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_; |
155 PrefService* local_state_; | 158 PrefService* local_state_; |
156 scoped_ptr<DeviceManagementService> consumer_device_management_service_; | 159 scoped_ptr<DeviceManagementService> consumer_device_management_service_; |
157 scoped_ptr<DeviceCloudPolicyInitializer> device_cloud_policy_initializer_; | 160 scoped_ptr<DeviceCloudPolicyInitializer> device_cloud_policy_initializer_; |
158 scoped_ptr<DeviceLocalAccountPolicyService> | 161 scoped_ptr<DeviceLocalAccountPolicyService> |
159 device_local_account_policy_service_; | 162 device_local_account_policy_service_; |
160 scoped_ptr<DeviceCloudPolicyInvalidator> device_cloud_policy_invalidator_; | 163 scoped_ptr<DeviceCloudPolicyInvalidator> device_cloud_policy_invalidator_; |
161 | 164 |
162 // This policy provider is used on Chrome OS to feed user policy into the | 165 // This policy provider is used on Chrome OS to feed user policy into the |
163 // global PolicyService instance. This works by installing the cloud policy | 166 // global PolicyService instance. This works by installing the cloud policy |
164 // provider of the primary profile as the delegate of the ProxyPolicyProvider, | 167 // provider of the primary profile as the delegate of the ProxyPolicyProvider, |
165 // after login. | 168 // after login. |
166 // The provider is owned by the base class; this field is just a typed weak | 169 // The provider is owned by the base class; this field is just a typed weak |
167 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate(). | 170 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate(). |
168 ProxyPolicyProvider* global_user_cloud_policy_provider_; | 171 ProxyPolicyProvider* global_user_cloud_policy_provider_; |
169 | 172 |
170 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; | 173 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; |
171 | 174 |
172 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; | 175 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; |
173 | 176 |
174 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); | 177 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); |
175 }; | 178 }; |
176 | 179 |
177 } // namespace policy | 180 } // namespace policy |
178 | 181 |
179 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 182 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
OLD | NEW |