Chromium Code Reviews| Index: components/policy/proto/device_management_backend.proto |
| diff --git a/components/policy/proto/device_management_backend.proto b/components/policy/proto/device_management_backend.proto |
| index cd5e9b08bce5f140ab35da336fffa876f8cff316..69a8eca57c02da719f80935a3d657c8d9d65662e 100644 |
| --- a/components/policy/proto/device_management_backend.proto |
| +++ b/components/policy/proto/device_management_backend.proto |
| @@ -1030,6 +1030,17 @@ message GcmIdUpdateRequest { |
| // Response for GcmIdUpdateRequest, an empty message for now. |
| message GcmIdUpdateResponse {} |
| +// Request from device to server to check for Android-for-Work service with |
| +// DPC enforcement. Must be sent only for users who are not managed in Chrome |
| +// OS. |
| +// Provide user's OAuth token with your HTTP Request. |
| +message CheckAndroidManagementRequest {} |
| + |
| +// Response from server to device for check for Android-for-Work service with DPC |
|
Thiemo Nagel
2016/04/28 13:27:00
Please wrap at 80 characters.
Polina Bondarenko
2016/04/28 16:18:40
Done.
|
| +// enforcement request. |
| +// SC_CONFLICT http code is returned in case ARC cannot be managed. |
|
Thiemo Nagel
2016/04/28 13:27:00
What exactly does SC_CONFLICT specify? Is the use
Polina Bondarenko
2016/04/28 16:18:40
Done.
|
| +message CheckAndroidManagementResponse {} |
| + |
| // Request from the DMAgent on the device to the DMServer. This is |
| // container for all requests from device to server. The overall HTTP |
| // request MUST be in the following format: |
| @@ -1053,13 +1064,14 @@ message GcmIdUpdateResponse {} |
| // * attribute_update_permission |
| // * attribute_update |
| // * gcm_id_update |
| +// * check_android_management |
| // |
| // * devicetype: MUST BE "1" for Android or "2" for Chrome OS. |
| // * apptype: MUST BE Android or Chrome. |
| // * deviceid: MUST BE no more than 64-char in [\x21-\x7E]. |
| // * agent: MUST BE a string of characters. |
| // * HTTP Authorization header MUST be in the following formats: |
| -// * For register and ping requests |
| +// * For register, ping and check_android_management requests |
| // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync> |
| // |
| // * For unregister, policy, status, cert_upload, remote commands requests, |
| @@ -1087,6 +1099,7 @@ message GcmIdUpdateResponse {} |
| // attribute_update_permission: device_attribute_update_permission_request |
| // attribute_update: device_attribute_update_request |
| // gcm_id_update: gcm_id_update_request |
| +// check_android_management : check_android_management_request |
|
Thiemo Nagel
2016/04/28 13:27:00
Please delete space before colon.
Polina Bondarenko
2016/04/28 16:18:40
Done.
|
| // |
| message DeviceManagementRequest { |
| // Register request. |
| @@ -1136,6 +1149,9 @@ message DeviceManagementRequest { |
| // Update the GCM id to device_id mapping. |
| optional GcmIdUpdateRequest gcm_id_update_request = 16; |
| + |
| + // Check if user is a managed Android-for-Work user with DPC enforcement. |
| + optional CheckAndroidManagementRequest check_android_management_request = 17; |
| } |
| // Response from server to device. |
| @@ -1203,4 +1219,8 @@ message DeviceManagementResponse { |
| // Response to GCM id update request. |
| optional GcmIdUpdateResponse gcm_id_update_response = 17; |
| + |
| + // Response to check Android management request. |
| + optional CheckAndroidManagementResponse |
| + check_android_management_response = 18; |
| } |