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 <bitset> | 8 #include <bitset> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // enrollment. | 65 // enrollment. |
66 void StartEnrollment(DeviceManagementService* device_management_service, | 66 void StartEnrollment(DeviceManagementService* device_management_service, |
67 const std::string& auth_token, | 67 const std::string& auth_token, |
68 bool is_auto_enrollment, | 68 bool is_auto_enrollment, |
69 const AllowedDeviceModes& allowed_modes, | 69 const AllowedDeviceModes& allowed_modes, |
70 const EnrollmentCallback& enrollment_callback); | 70 const EnrollmentCallback& enrollment_callback); |
71 | 71 |
72 // Checks whether enterprise enrollment should be a regular step during OOBE. | 72 // Checks whether enterprise enrollment should be a regular step during OOBE. |
73 bool ShouldAutoStartEnrollment() const; | 73 bool ShouldAutoStartEnrollment() const; |
74 | 74 |
| 75 // Checks whether enterprise enrollment recovery is required. |
| 76 bool ShouldRecoverEnrollment() const; |
| 77 |
75 // Checks whether the user can cancel enrollment. | 78 // Checks whether the user can cancel enrollment. |
76 bool CanExitEnrollment() const; | 79 bool CanExitEnrollment() const; |
77 | 80 |
78 // Gets the domain this device is supposed to be enrolled to. | 81 // Gets the domain this device is supposed to be enrolled to. |
79 std::string GetForcedEnrollmentDomain() const; | 82 std::string GetForcedEnrollmentDomain() const; |
80 | 83 |
81 // CloudPolicyStore::Observer: | 84 // CloudPolicyStore::Observer: |
82 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; | 85 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; |
83 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE; | 86 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE; |
84 | 87 |
(...skipping 28 matching lines...) Expand all Loading... |
113 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_; | 116 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_; |
114 | 117 |
115 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; | 118 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; |
116 | 119 |
117 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer); | 120 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer); |
118 }; | 121 }; |
119 | 122 |
120 } // namespace policy | 123 } // namespace policy |
121 | 124 |
122 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ | 125 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ |
OLD | NEW |