| 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 AffiliatedInvalidationServiceProvider; |
| 28 class ConsumerManagementService; | 28 class ConsumerManagementService; |
| 29 class DeviceCloudPolicyInitializer; | 29 class DeviceCloudPolicyInitializer; |
| 30 class DeviceCloudPolicyInvalidator; | 30 class AffiliatedCloudPolicyInvalidator; |
| 31 class DeviceLocalAccountPolicyService; | 31 class DeviceLocalAccountPolicyService; |
| 32 class DeviceManagementService; | 32 class DeviceManagementService; |
| 33 struct EnrollmentConfig; | 33 struct EnrollmentConfig; |
| 34 class EnterpriseInstallAttributes; | 34 class EnterpriseInstallAttributes; |
| 35 class NetworkConfigurationUpdater; | 35 class NetworkConfigurationUpdater; |
| 36 class ProxyPolicyProvider; | 36 class ProxyPolicyProvider; |
| 37 class ServerBackedStateKeysBroker; | 37 class ServerBackedStateKeysBroker; |
| 38 | 38 |
| 39 // Extends ChromeBrowserPolicyConnector with the setup specific to ChromeOS. | 39 // Extends ChromeBrowserPolicyConnector with the setup specific to ChromeOS. |
| 40 class BrowserPolicyConnectorChromeOS | 40 class BrowserPolicyConnectorChromeOS |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 scoped_ptr<EnterpriseInstallAttributes> install_attributes_; | 153 scoped_ptr<EnterpriseInstallAttributes> install_attributes_; |
| 154 scoped_ptr<AffiliatedInvalidationServiceProvider> | 154 scoped_ptr<AffiliatedInvalidationServiceProvider> |
| 155 affiliated_invalidation_service_provider_; | 155 affiliated_invalidation_service_provider_; |
| 156 scoped_ptr<ConsumerManagementService> consumer_management_service_; | 156 scoped_ptr<ConsumerManagementService> consumer_management_service_; |
| 157 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_; | 157 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_; |
| 158 PrefService* local_state_; | 158 PrefService* local_state_; |
| 159 scoped_ptr<DeviceManagementService> consumer_device_management_service_; | 159 scoped_ptr<DeviceManagementService> consumer_device_management_service_; |
| 160 scoped_ptr<DeviceCloudPolicyInitializer> device_cloud_policy_initializer_; | 160 scoped_ptr<DeviceCloudPolicyInitializer> device_cloud_policy_initializer_; |
| 161 scoped_ptr<DeviceLocalAccountPolicyService> | 161 scoped_ptr<DeviceLocalAccountPolicyService> |
| 162 device_local_account_policy_service_; | 162 device_local_account_policy_service_; |
| 163 scoped_ptr<DeviceCloudPolicyInvalidator> device_cloud_policy_invalidator_; | 163 scoped_ptr<AffiliatedCloudPolicyInvalidator> device_cloud_policy_invalidator_; |
| 164 | 164 |
| 165 // 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 |
| 166 // global PolicyService instance. This works by installing the cloud policy | 166 // global PolicyService instance. This works by installing the cloud policy |
| 167 // provider of the primary profile as the delegate of the ProxyPolicyProvider, | 167 // provider of the primary profile as the delegate of the ProxyPolicyProvider, |
| 168 // after login. | 168 // after login. |
| 169 // 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 |
| 170 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate(). | 170 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate(). |
| 171 ProxyPolicyProvider* global_user_cloud_policy_provider_; | 171 ProxyPolicyProvider* global_user_cloud_policy_provider_; |
| 172 | 172 |
| 173 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; | 173 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; |
| 174 | 174 |
| 175 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; | 175 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; |
| 176 | 176 |
| 177 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); | 177 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 } // namespace policy | 180 } // namespace policy |
| 181 | 181 |
| 182 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 182 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
| OLD | NEW |