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 3dcc1a6434dd2f99c0a15989bf2e0c73c599c180..16bbb5496d073344177b45abb98f18fe514d3fd4 100644 |
| --- a/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.h |
| +++ b/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.h |
| @@ -56,6 +56,14 @@ class EnterpriseEnrollmentHelper { |
| // |fetch_additional_token| param of EnrollUsingProfile() to true. |
| // Otherwise, |additional_token| is empty. |
| virtual void OnDeviceEnrolled(const std::string& additional_token) = 0; |
| + |
| + // Called when device attribute update permission granted, |
| + // |status| indicates whether permission granted or not. |
| + virtual void OnDeviceAttributeUpdatePermission(bool status) = 0; |
|
dzhioev (left Google)
2015/04/14 18:24:47
nit: I suggest to rename |status| to |granted| (or
Polina Bondarenko
2015/04/15 08:14:13
Done.
|
| + |
| + // Called when device attribute upload finishes. |status| indicates |
| + // whether it is successful or not |
| + virtual void OnDeviceAttributeUploadCompleted(bool status) = 0; |
|
dzhioev (left Google)
2015/04/14 18:24:47
nit: I suggest to rename |status| to |success| (or
Polina Bondarenko
2015/04/15 08:14:13
Done.
|
| }; |
| // Factory method. Caller takes ownership of the returned object. |
| @@ -90,6 +98,18 @@ class EnterpriseEnrollmentHelper { |
| // only if neither of EnrollUsing* was called before. |
| virtual void EnrollUsingToken(const std::string& token) = 0; |
| + // Starts device attribute update process. First tries to get |
| + // permission to update device attributes for current user |
| + // using stored during enrollment oauth token. |
| + virtual void GetDeviceAttributeUpdatePermission() = 0; |
| + |
| + // Uploads device attributes on DM server. |asset_id| - Asset Identifier |
| + // and |location| - Assigned Location, these attributes were typed by |
| + // current user on the device attribute prompt screen after successful |
| + // enrollment. |
| + virtual void UpdateDeviceAttributes(const std::string& asset_id, |
| + const std::string& location) = 0; |
| + |
| // Clears authentication data from the profile (if EnrollUsingProfile was |
| // used) and revokes fetched tokens. |
| // Does not revoke the additional token if enrollment finished successfully. |