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..f9a3f5613e7b6cd80047f575288753e3a0ddb3c3 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; |
| + |
| + // Called when device attribute upload finishes. |status| indicates |
| + // whether it is successful or not |
| + virtual void OnDeviceAttributeUploadCompleted(bool status) = 0; |
| }; |
| // 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. |
| @@ -106,6 +126,9 @@ class EnterpriseEnrollmentHelper { |
| EnrollmentStatusConsumer* status_consumer() { return status_consumer_; } |
| private: |
| + // Gets oauth token, used during enterprise enrollment. |
|
dzhioev (left Google)
2015/04/14 15:48:19
As far as I can see, you don't need to declare thi
Polina Bondarenko
2015/04/14 16:14:32
Done.
|
| + virtual const std::string& GetOAuthToken() = 0; |
| + |
| EnrollmentStatusConsumer* status_consumer_; |
| DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentHelper); |