Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MANAGER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <bitset> | 8 #include <bitset> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 scoped_ptr<CloudPolicyClient> CreateClient(); | 108 scoped_ptr<CloudPolicyClient> CreateClient(); |
| 109 | 109 |
| 110 // Starts policy refreshes if |store_| indicates a managed device and the | 110 // Starts policy refreshes if |store_| indicates a managed device and the |
| 111 // necessary dependencies have been provided via Initialize(). | 111 // necessary dependencies have been provided via Initialize(). |
| 112 void StartIfManaged(); | 112 void StartIfManaged(); |
| 113 | 113 |
| 114 // Handles completion signaled by |enrollment_handler_|. | 114 // Handles completion signaled by |enrollment_handler_|. |
| 115 void EnrollmentCompleted(const EnrollmentCallback& callback, | 115 void EnrollmentCompleted(const EnrollmentCallback& callback, |
| 116 EnrollmentStatus status); | 116 EnrollmentStatus status); |
| 117 | 117 |
| 118 // Initializes requisition settings at OOBwith values from VPD. | |
|
xiyuan
2014/03/01 04:38:58
OOBwith -> OOBE with?
zel
2014/03/01 21:30:27
Done.
| |
| 119 void InitalizeRequisition(); | |
| 120 | |
| 118 // Points to the same object as the base CloudPolicyManager::store(), but with | 121 // Points to the same object as the base CloudPolicyManager::store(), but with |
| 119 // actual device policy specific type. | 122 // actual device policy specific type. |
| 120 scoped_ptr<DeviceCloudPolicyStoreChromeOS> device_store_; | 123 scoped_ptr<DeviceCloudPolicyStoreChromeOS> device_store_; |
| 121 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; | 124 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; |
| 122 EnterpriseInstallAttributes* install_attributes_; | 125 EnterpriseInstallAttributes* install_attributes_; |
| 123 | 126 |
| 124 DeviceManagementService* device_management_service_; | 127 DeviceManagementService* device_management_service_; |
| 125 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; | 128 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; |
| 126 | 129 |
| 127 // PrefService instance to read the policy refresh rate from. | 130 // PrefService instance to read the policy refresh rate from. |
| 128 PrefService* local_state_; | 131 PrefService* local_state_; |
| 129 | 132 |
| 130 // Non-null if there is an enrollment operation pending. | 133 // Non-null if there is an enrollment operation pending. |
| 131 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_; | 134 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_; |
| 132 | 135 |
| 133 scoped_ptr<chromeos::attestation::AttestationPolicyObserver> | 136 scoped_ptr<chromeos::attestation::AttestationPolicyObserver> |
| 134 attestation_policy_observer_; | 137 attestation_policy_observer_; |
| 135 | 138 |
| 136 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); | 139 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 } // namespace policy | 142 } // namespace policy |
| 140 | 143 |
| 141 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H _ | 144 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H _ |
| OLD | NEW |