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 <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "chrome/browser/chromeos/login/users/affiliation.h" | 15 #include "chrome/browser/chromeos/login/users/affiliation.h" |
16 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" | 16 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
17 #include "chrome/browser/policy/chrome_browser_policy_connector.h" | 17 #include "chrome/browser/policy/chrome_browser_policy_connector.h" |
18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
19 | 19 |
20 class PrefRegistrySimple; | 20 class PrefRegistrySimple; |
21 class PrefService; | 21 class PrefService; |
22 | 22 |
| 23 namespace chromeos { |
| 24 namespace attestation { |
| 25 class AttestationFlow; |
| 26 } |
| 27 } |
| 28 |
23 namespace net { | 29 namespace net { |
24 class URLRequestContextGetter; | 30 class URLRequestContextGetter; |
25 } | 31 } |
26 | 32 |
27 namespace policy { | 33 namespace policy { |
28 | 34 |
29 class AffiliatedCloudPolicyInvalidator; | 35 class AffiliatedCloudPolicyInvalidator; |
30 class AffiliatedInvalidationServiceProvider; | 36 class AffiliatedInvalidationServiceProvider; |
31 class AffiliatedRemoteCommandsInvalidator; | 37 class AffiliatedRemoteCommandsInvalidator; |
32 class BluetoothPolicyHandler; | 38 class BluetoothPolicyHandler; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 chromeos::AffiliationIDSet GetDeviceAffiliationIDs() const; | 142 chromeos::AffiliationIDSet GetDeviceAffiliationIDs() const; |
137 | 143 |
138 private: | 144 private: |
139 // Set the timezone as soon as the policies are available. | 145 // Set the timezone as soon as the policies are available. |
140 void SetTimezoneIfPolicyAvailable(); | 146 void SetTimezoneIfPolicyAvailable(); |
141 | 147 |
142 // Restarts the device cloud policy initializer, because the device's | 148 // Restarts the device cloud policy initializer, because the device's |
143 // registration status changed from registered to unregistered. | 149 // registration status changed from registered to unregistered. |
144 void RestartDeviceCloudPolicyInitializer(); | 150 void RestartDeviceCloudPolicyInitializer(); |
145 | 151 |
| 152 // Creates an attestation flow using our async method handler and |
| 153 // cryptohome client. |
| 154 std::unique_ptr<chromeos::attestation::AttestationFlow> |
| 155 CreateAttestationFlow(); |
| 156 |
146 // Components of the device cloud policy implementation. | 157 // Components of the device cloud policy implementation. |
147 std::unique_ptr<ServerBackedStateKeysBroker> state_keys_broker_; | 158 std::unique_ptr<ServerBackedStateKeysBroker> state_keys_broker_; |
148 std::unique_ptr<EnterpriseInstallAttributes> install_attributes_; | 159 std::unique_ptr<EnterpriseInstallAttributes> install_attributes_; |
149 std::unique_ptr<AffiliatedInvalidationServiceProvider> | 160 std::unique_ptr<AffiliatedInvalidationServiceProvider> |
150 affiliated_invalidation_service_provider_; | 161 affiliated_invalidation_service_provider_; |
151 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_; | 162 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_; |
152 PrefService* local_state_; | 163 PrefService* local_state_; |
153 std::unique_ptr<DeviceCloudPolicyInitializer> | 164 std::unique_ptr<DeviceCloudPolicyInitializer> |
154 device_cloud_policy_initializer_; | 165 device_cloud_policy_initializer_; |
155 std::unique_ptr<DeviceLocalAccountPolicyService> | 166 std::unique_ptr<DeviceLocalAccountPolicyService> |
(...skipping 16 matching lines...) Expand all Loading... |
172 std::unique_ptr<NetworkConfigurationUpdater> network_configuration_updater_; | 183 std::unique_ptr<NetworkConfigurationUpdater> network_configuration_updater_; |
173 | 184 |
174 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; | 185 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; |
175 | 186 |
176 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); | 187 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); |
177 }; | 188 }; |
178 | 189 |
179 } // namespace policy | 190 } // namespace policy |
180 | 191 |
181 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 192 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
OLD | NEW |