Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: components/policy/proto/device_management_backend.proto

Issue 1892093002: Add AndroidManagementClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/policy/core/common/cloud/device_management_service.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package enterprise_management; 9 package enterprise_management;
10 10
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 1023
1024 // Sent by the client to server to update the mapping from GCM id to device_id 1024 // Sent by the client to server to update the mapping from GCM id to device_id
1025 // on the server side. 1025 // on the server side.
1026 message GcmIdUpdateRequest { 1026 message GcmIdUpdateRequest {
1027 optional string gcm_id = 1; 1027 optional string gcm_id = 1;
1028 } 1028 }
1029 1029
1030 // Response for GcmIdUpdateRequest, an empty message for now. 1030 // Response for GcmIdUpdateRequest, an empty message for now.
1031 message GcmIdUpdateResponse {} 1031 message GcmIdUpdateResponse {}
1032 1032
1033 // Request from device to server to check for Android-for-Work service with
1034 // DPC enforcement. Must be sent only for users who are not managed in Chrome
1035 // OS.
1036 // Provide user's OAuth token with your HTTP Request.
1037 message CheckAndroidManagementRequest {}
1038
1039 // Response from server to device for check for Android-for-Work service with
1040 // DPC enforcement request.
1041 // SC_CONFLICT HTTP code is returned if DPC enforcement is required.
1042 message CheckAndroidManagementResponse {}
1043
1033 // Request from the DMAgent on the device to the DMServer. This is 1044 // Request from the DMAgent on the device to the DMServer. This is
1034 // container for all requests from device to server. The overall HTTP 1045 // container for all requests from device to server. The overall HTTP
1035 // request MUST be in the following format: 1046 // request MUST be in the following format:
1036 // 1047 //
1037 // * HTTP method is POST 1048 // * HTTP method is POST
1038 // * Data mime type is application/x-protobuffer 1049 // * Data mime type is application/x-protobuffer
1039 // * HTTP parameters are (all required, all case sensitive): 1050 // * HTTP parameters are (all required, all case sensitive):
1040 // * request: MUST BE one of 1051 // * request: MUST BE one of
1041 // * api_authorization 1052 // * api_authorization
1042 // * cert_upload 1053 // * cert_upload
1043 // * check_device_pairing 1054 // * check_device_pairing
1044 // * device_pairing 1055 // * device_pairing
1045 // * device_state_retrieval 1056 // * device_state_retrieval
1046 // * enterprise_check 1057 // * enterprise_check
1047 // * ping 1058 // * ping
1048 // * policy 1059 // * policy
1049 // * register 1060 // * register
1050 // * status 1061 // * status
1051 // * unregister 1062 // * unregister
1052 // * remote_commands 1063 // * remote_commands
1053 // * attribute_update_permission 1064 // * attribute_update_permission
1054 // * attribute_update 1065 // * attribute_update
1055 // * gcm_id_update 1066 // * gcm_id_update
1067 // * check_android_management
1056 // 1068 //
1057 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS. 1069 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS.
1058 // * apptype: MUST BE Android or Chrome. 1070 // * apptype: MUST BE Android or Chrome.
1059 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E]. 1071 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E].
1060 // * agent: MUST BE a string of characters. 1072 // * agent: MUST BE a string of characters.
1061 // * HTTP Authorization header MUST be in the following formats: 1073 // * HTTP Authorization header MUST be in the following formats:
1062 // * For register and ping requests 1074 // * For register, ping and check_android_management requests
1063 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync> 1075 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync>
1064 // 1076 //
1065 // * For unregister, policy, status, cert_upload, remote commands requests, 1077 // * For unregister, policy, status, cert_upload, remote commands requests,
1066 // and gcm id update requests 1078 // and gcm id update requests
1067 // Authorization: GoogleDMToken token=<dm token from register> 1079 // Authorization: GoogleDMToken token=<dm token from register>
1068 // 1080 //
1069 // * The Authorization header isn't used for enterprise_check 1081 // * The Authorization header isn't used for enterprise_check
1070 // request, nor for register requests using OAuth. In the latter case, 1082 // request, nor for register requests using OAuth. In the latter case,
1071 // the OAuth token is passed in the "oauth" parameter. 1083 // the OAuth token is passed in the "oauth" parameter.
1072 // 1084 //
1073 // DeviceManagementRequest should only contain one request which matches the 1085 // DeviceManagementRequest should only contain one request which matches the
1074 // HTTP query parameter - request, as listed below. Other requests within the 1086 // HTTP query parameter - request, as listed below. Other requests within the
1075 // container will be ignored. 1087 // container will be ignored.
1076 // cert_upload: cert_upload_request 1088 // cert_upload: cert_upload_request
1077 // check_device_pairing: check_device_pairing_request 1089 // check_device_pairing: check_device_pairing_request
1078 // device_pairing: device_pairing_request 1090 // device_pairing: device_pairing_request
1079 // device_state_retrieval: device_state_retrieval_request 1091 // device_state_retrieval: device_state_retrieval_request
1080 // enterprise_check: auto_enrollment_request 1092 // enterprise_check: auto_enrollment_request
1081 // ping: policy_request 1093 // ping: policy_request
1082 // policy: policy_request 1094 // policy: policy_request
1083 // register: register_request 1095 // register: register_request
1084 // status: device_status_report_request or session_status_report_request 1096 // status: device_status_report_request or session_status_report_request
1085 // unregister: unregister_request 1097 // unregister: unregister_request
1086 // remote_commands: remote_command_request 1098 // remote_commands: remote_command_request
1087 // attribute_update_permission: device_attribute_update_permission_request 1099 // attribute_update_permission: device_attribute_update_permission_request
1088 // attribute_update: device_attribute_update_request 1100 // attribute_update: device_attribute_update_request
1089 // gcm_id_update: gcm_id_update_request 1101 // gcm_id_update: gcm_id_update_request
1102 // check_android_management: check_android_management_request
1090 // 1103 //
1091 message DeviceManagementRequest { 1104 message DeviceManagementRequest {
1092 // Register request. 1105 // Register request.
1093 optional DeviceRegisterRequest register_request = 1; 1106 optional DeviceRegisterRequest register_request = 1;
1094 1107
1095 // Unregister request. 1108 // Unregister request.
1096 optional DeviceUnregisterRequest unregister_request = 2; 1109 optional DeviceUnregisterRequest unregister_request = 2;
1097 1110
1098 // Policy request. 1111 // Policy request.
1099 optional DevicePolicyRequest policy_request = 3; 1112 optional DevicePolicyRequest policy_request = 3;
(...skipping 29 matching lines...) Expand all
1129 // Check permission for updating device attribute. 1142 // Check permission for updating device attribute.
1130 optional DeviceAttributeUpdatePermissionRequest 1143 optional DeviceAttributeUpdatePermissionRequest
1131 device_attribute_update_permission_request = 14; 1144 device_attribute_update_permission_request = 14;
1132 1145
1133 // Update device attribute. 1146 // Update device attribute.
1134 optional DeviceAttributeUpdateRequest device_attribute_update_request 1147 optional DeviceAttributeUpdateRequest device_attribute_update_request
1135 = 15; 1148 = 15;
1136 1149
1137 // Update the GCM id to device_id mapping. 1150 // Update the GCM id to device_id mapping.
1138 optional GcmIdUpdateRequest gcm_id_update_request = 16; 1151 optional GcmIdUpdateRequest gcm_id_update_request = 16;
1152
1153 // Check if user is a managed Android-for-Work user with DPC enforcement.
1154 optional CheckAndroidManagementRequest check_android_management_request = 17;
1139 } 1155 }
1140 1156
1141 // Response from server to device. 1157 // Response from server to device.
1142 // 1158 //
1143 // The server uses the following numbers as HTTP status codes 1159 // The server uses the following numbers as HTTP status codes
1144 // to report top-level errors. 1160 // to report top-level errors.
1145 // 1161 //
1146 // 200 OK: valid response is returned to client. 1162 // 200 OK: valid response is returned to client.
1147 // 400 Bad Request: invalid argument. 1163 // 400 Bad Request: invalid argument.
1148 // 401 Unauthorized: invalid auth cookie or DM token. 1164 // 401 Unauthorized: invalid auth cookie or DM token.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 1212
1197 // Response to check device attribute update permission. 1213 // Response to check device attribute update permission.
1198 optional DeviceAttributeUpdatePermissionResponse 1214 optional DeviceAttributeUpdatePermissionResponse
1199 device_attribute_update_permission_response = 15; 1215 device_attribute_update_permission_response = 15;
1200 1216
1201 // Response to update device attribute. 1217 // Response to update device attribute.
1202 optional DeviceAttributeUpdateResponse device_attribute_update_response = 16; 1218 optional DeviceAttributeUpdateResponse device_attribute_update_response = 16;
1203 1219
1204 // Response to GCM id update request. 1220 // Response to GCM id update request.
1205 optional GcmIdUpdateResponse gcm_id_update_response = 17; 1221 optional GcmIdUpdateResponse gcm_id_update_response = 17;
1222
1223 // Response to check Android management request.
1224 optional CheckAndroidManagementResponse
1225 check_android_management_response = 18;
1206 } 1226 }
OLDNEW
« no previous file with comments | « components/policy/core/common/cloud/device_management_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698