| 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_DEVICE_CLOUD_POLICY_INITIALIZER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "chrome/browser/chromeos/policy/server_backed_state_keys_broker.h" | 16 #include "chrome/browser/chromeos/policy/server_backed_state_keys_broker.h" |
| 17 #include "components/policy/core/common/cloud/cloud_policy_client.h" | 17 #include "components/policy/core/common/cloud/cloud_policy_client.h" |
| 18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 19 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 19 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
| 20 #include "components/policy/core/common/cloud/signing_service.h" | 20 #include "components/policy/core/common/cloud/signing_service.h" |
| 21 | 21 |
| 22 class PrefService; | 22 class PrefService; |
| 23 | 23 |
| 24 namespace base { | 24 namespace base { |
| 25 class SequencedTaskRunner; | 25 class SequencedTaskRunner; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace chromeos { | 28 namespace chromeos { |
| 29 | 29 |
| 30 class ActiveDirectoryJoinDelegate; |
| 30 class InstallAttributes; | 31 class InstallAttributes; |
| 31 | 32 |
| 32 namespace attestation { | 33 namespace attestation { |
| 33 class AttestationFlow; | 34 class AttestationFlow; |
| 34 } | 35 } |
| 35 namespace system { | 36 namespace system { |
| 36 class StatisticsProvider; | 37 class StatisticsProvider; |
| 37 } | 38 } |
| 38 } | 39 |
| 40 } // namespace chromeos |
| 39 | 41 |
| 40 namespace cryptohome { | 42 namespace cryptohome { |
| 41 class AsyncMethodCaller; | 43 class AsyncMethodCaller; |
| 42 } | 44 } |
| 43 | 45 |
| 44 namespace policy { | 46 namespace policy { |
| 45 | 47 |
| 46 class DeviceCloudPolicyManagerChromeOS; | 48 class DeviceCloudPolicyManagerChromeOS; |
| 47 class DeviceCloudPolicyStoreChromeOS; | 49 class DeviceCloudPolicyStoreChromeOS; |
| 48 class DeviceManagementService; | 50 class DeviceManagementService; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 73 ~DeviceCloudPolicyInitializer() override; | 75 ~DeviceCloudPolicyInitializer() override; |
| 74 | 76 |
| 75 virtual void Init(); | 77 virtual void Init(); |
| 76 virtual void Shutdown(); | 78 virtual void Shutdown(); |
| 77 | 79 |
| 78 // Starts enrollment or re-enrollment. Once the enrollment process completes, | 80 // Starts enrollment or re-enrollment. Once the enrollment process completes, |
| 79 // |enrollment_callback| is invoked and gets passed the status of the | 81 // |enrollment_callback| is invoked and gets passed the status of the |
| 80 // operation. | 82 // operation. |
| 81 virtual void StartEnrollment( | 83 virtual void StartEnrollment( |
| 82 DeviceManagementService* device_management_service, | 84 DeviceManagementService* device_management_service, |
| 85 chromeos::ActiveDirectoryJoinDelegate* ad_join_delegate, |
| 83 const EnrollmentConfig& enrollment_config, | 86 const EnrollmentConfig& enrollment_config, |
| 84 const std::string& auth_token, | 87 const std::string& auth_token, |
| 85 const EnrollmentCallback& enrollment_callback); | 88 const EnrollmentCallback& enrollment_callback); |
| 86 | 89 |
| 87 // Get the enrollment configuration that has been set up via signals such as | 90 // Get the enrollment configuration that has been set up via signals such as |
| 88 // device requisition, OEM manifest, pre-existing installation-time attributes | 91 // device requisition, OEM manifest, pre-existing installation-time attributes |
| 89 // or server-backed state retrieval. The configuration is stored in |config|, | 92 // or server-backed state retrieval. The configuration is stored in |config|, |
| 90 // |config.mode| will be MODE_NONE if there is no prescribed configuration. | 93 // |config.mode| will be MODE_NONE if there is no prescribed configuration. |
| 91 // |config.management_domain| will contain the domain the device is supposed | 94 // |config.management_domain| will contain the domain the device is supposed |
| 92 // to be enrolled to as decided by factors such as forced re-enrollment, | 95 // to be enrolled to as decided by factors such as forced re-enrollment, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 163 |
| 161 // Our signing service. | 164 // Our signing service. |
| 162 std::unique_ptr<SigningService> signing_service_; | 165 std::unique_ptr<SigningService> signing_service_; |
| 163 | 166 |
| 164 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer); | 167 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer); |
| 165 }; | 168 }; |
| 166 | 169 |
| 167 } // namespace policy | 170 } // namespace policy |
| 168 | 171 |
| 169 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ | 172 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ |
| OLD | NEW |