Chromium Code Reviews| Index: chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.h |
| diff --git a/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.h b/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.h |
| index 3663ba9912a930f85a58cf1e8da0d0be845ef193..2ae35d21e7b40a7282bdd74f957fefb74c71c4a3 100644 |
| --- a/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.h |
| +++ b/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.h |
| @@ -11,6 +11,7 @@ |
| #include "base/callback_forward.h" |
| #include "base/macros.h" |
| #include "chrome/browser/chromeos/policy/device_cloud_policy_initializer.h" |
| +#include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| class GoogleServiceAuthError; |
| @@ -21,6 +22,9 @@ class EnrollmentStatus; |
| namespace chromeos { |
| +// Maps a license type to number of available licenses. |
| +using EnrollmentLicenseMap = std::map<policy::LicenseType, int>; |
|
emaxx
2017/07/21 12:57:29
nit: #include <map>
Denis Kuznetsov (DE-MUC)
2017/07/25 21:51:05
Done.
|
| + |
| class ActiveDirectoryJoinDelegate; |
| // This class is capable to enroll the device into enterprise domain, using |
| @@ -46,6 +50,12 @@ class EnterpriseEnrollmentHelper { |
| // Called when an error happens on attempt to receive authentication tokens. |
| virtual void OnAuthError(const GoogleServiceAuthError& error) = 0; |
| + // Called when there are multiple license types available for enrollment, |
| + // and admin allowed customer to choose license type to assign. |
|
emaxx
2017/07/21 12:57:29
nit: s/customer/user/? (IIUC)
Denis Kuznetsov (DE-MUC)
2017/07/25 21:51:05
Done.
|
| + // Enrollment is paused, and will resume once UseLicenseType() is called. |
| + virtual void OnMultipleLicensesAvailable( |
| + const EnrollmentLicenseMap& licenses) = 0; |
| + |
| // Called when an error happens during enrollment. |
| virtual void OnEnrollmentError(policy::EnrollmentStatus status) = 0; |
| @@ -106,6 +116,9 @@ class EnterpriseEnrollmentHelper { |
| // lifetime, and only if none of the EnrollUsing* was called before. |
| virtual void EnrollUsingAttestation() = 0; |
| + // Continue enrollment using license |type|. |
| + virtual void UseLicenseType(policy::LicenseType type) = 0; |
| + |
| // Starts device attribute update process. First tries to get |
| // permission to update device attributes for current user |
| // using stored during enrollment oauth token. |