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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 scoped_ptr<CloudPolicyClient> CreateClient(); | 79 scoped_ptr<CloudPolicyClient> CreateClient(); |
80 | 80 |
81 // Starts policy refreshes if |store_| indicates a managed device and the | 81 // Starts policy refreshes if |store_| indicates a managed device and the |
82 // necessary dependencies have been provided via Initialize(). | 82 // necessary dependencies have been provided via Initialize(). |
83 void StartIfManaged(); | 83 void StartIfManaged(); |
84 | 84 |
85 // Handles completion signaled by |enrollment_handler_|. | 85 // Handles completion signaled by |enrollment_handler_|. |
86 void EnrollmentCompleted(const EnrollmentCallback& callback, | 86 void EnrollmentCompleted(const EnrollmentCallback& callback, |
87 EnrollmentStatus status); | 87 EnrollmentStatus status); |
88 | 88 |
| 89 // Requisition parameter to send to the server that indicates the intended |
| 90 // purpose for the device. |
| 91 std::string requisition_; |
| 92 |
89 // Points to the same object as the base CloudPolicyManager::store(), but with | 93 // Points to the same object as the base CloudPolicyManager::store(), but with |
90 // actual device policy specific type. | 94 // actual device policy specific type. |
91 scoped_ptr<DeviceCloudPolicyStoreChromeOS> device_store_; | 95 scoped_ptr<DeviceCloudPolicyStoreChromeOS> device_store_; |
92 EnterpriseInstallAttributes* install_attributes_; | 96 EnterpriseInstallAttributes* install_attributes_; |
93 | 97 |
94 DeviceManagementService* device_management_service_; | 98 DeviceManagementService* device_management_service_; |
95 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; | 99 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; |
96 | 100 |
97 // PrefService instance to read the policy refresh rate from. | 101 // PrefService instance to read the policy refresh rate from. |
98 PrefService* local_state_; | 102 PrefService* local_state_; |
99 | 103 |
100 // Non-null if there is an enrollment operation pending. | 104 // Non-null if there is an enrollment operation pending. |
101 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_; | 105 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_; |
102 | 106 |
103 scoped_ptr<chromeos::attestation::AttestationPolicyObserver> | 107 scoped_ptr<chromeos::attestation::AttestationPolicyObserver> |
104 attestation_policy_observer_; | 108 attestation_policy_observer_; |
105 | 109 |
106 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); | 110 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |
107 }; | 111 }; |
108 | 112 |
109 } // namespace policy | 113 } // namespace policy |
110 | 114 |
111 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ | 115 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_MANAGER_CHROMEOS_H
_ |
OLD | NEW |