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

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

Issue 1258313002: Send GCM id to DMServer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: protobuf change Created 5 years, 4 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 | « no previous file | 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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 // Response from the server to update device attributes (asset id and location). 991 // Response from the server to update device attributes (asset id and location).
992 message DeviceAttributeUpdateResponse { 992 message DeviceAttributeUpdateResponse {
993 enum ResultType { 993 enum ResultType {
994 ATTRIBUTE_UPDATE_ERROR = 0; 994 ATTRIBUTE_UPDATE_ERROR = 0;
995 ATTRIBUTE_UPDATE_SUCCESS = 1; 995 ATTRIBUTE_UPDATE_SUCCESS = 1;
996 } 996 }
997 997
998 optional ResultType result = 1; 998 optional ResultType result = 1;
999 } 999 }
1000 1000
1001 // Sent by the client to server to update the mapping from GCM id to DM token
1002 // on the server side.
1003 message GcmIdMappingRequest {
1004 optional string gcm_id = 1;
1005 }
1006
1007 // Response for GcmIdMappingRequest, an empty message for now.
1008 message GcmIdMappingResponse {
1009 }
1010
1001 // Request from the DMAgent on the device to the DMServer. This is 1011 // Request from the DMAgent on the device to the DMServer. This is
1002 // container for all requests from device to server. The overall HTTP 1012 // container for all requests from device to server. The overall HTTP
1003 // request MUST be in the following format: 1013 // request MUST be in the following format:
1004 // 1014 //
1005 // * HTTP method is POST 1015 // * HTTP method is POST
1006 // * Data mime type is application/x-protobuffer 1016 // * Data mime type is application/x-protobuffer
1007 // * HTTP parameters are (all required, all case sensitive): 1017 // * HTTP parameters are (all required, all case sensitive):
1008 // * request: MUST BE one of 1018 // * request: MUST BE one of
1009 // * api_authorization 1019 // * api_authorization
1010 // * cert_upload 1020 // * cert_upload
1011 // * check_device_pairing 1021 // * check_device_pairing
1012 // * device_pairing 1022 // * device_pairing
1013 // * device_state_retrieval 1023 // * device_state_retrieval
1014 // * enterprise_check 1024 // * enterprise_check
1015 // * ping 1025 // * ping
1016 // * policy 1026 // * policy
1017 // * register 1027 // * register
1018 // * status 1028 // * status
1019 // * unregister 1029 // * unregister
1020 // * remote_commands 1030 // * remote_commands
1021 // * attribute_update_permission 1031 // * attribute_update_permission
1022 // * attribute_update 1032 // * attribute_update
jinzhang1 2015/07/28 18:56:17 Please add a comment here to reflect the newly add
1023 // 1033 //
1024 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS. 1034 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS.
1025 // * apptype: MUST BE Android or Chrome. 1035 // * apptype: MUST BE Android or Chrome.
1026 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E]. 1036 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E].
1027 // * agent: MUST BE a string of characters. 1037 // * agent: MUST BE a string of characters.
1028 // * HTTP Authorization header MUST be in the following formats: 1038 // * HTTP Authorization header MUST be in the following formats:
1029 // * For register and ping requests 1039 // * For register and ping requests
1030 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync> 1040 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync>
1031 // 1041 //
1032 // * For unregister, policy, status, cert_upload and remote commands requests 1042 // * For unregister, policy, status, cert_upload and remote commands requests
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 // Remote command fetching. 1101 // Remote command fetching.
1092 optional DeviceRemoteCommandRequest remote_command_request = 13; 1102 optional DeviceRemoteCommandRequest remote_command_request = 13;
1093 1103
1094 // Check permission for updating device attribute. 1104 // Check permission for updating device attribute.
1095 optional DeviceAttributeUpdatePermissionRequest 1105 optional DeviceAttributeUpdatePermissionRequest
1096 device_attribute_update_permission_request = 14; 1106 device_attribute_update_permission_request = 14;
1097 1107
1098 // Update device attribute. 1108 // Update device attribute.
1099 optional DeviceAttributeUpdateRequest device_attribute_update_request 1109 optional DeviceAttributeUpdateRequest device_attribute_update_request
1100 = 15; 1110 = 15;
1111
1112 // Update the GCM id to DM token mapping.
1113 optional GcmIdMappingRequest gcm_id_mapping_request = 16;
1101 } 1114 }
1102 1115
1103 // Response from server to device. 1116 // Response from server to device.
1104 // 1117 //
1105 // The server uses the following numbers as HTTP status codes 1118 // The server uses the following numbers as HTTP status codes
1106 // to report top-level errors. 1119 // to report top-level errors.
1107 // 1120 //
1108 // 200 OK: valid response is returned to client. 1121 // 200 OK: valid response is returned to client.
1109 // 400 Bad Request: invalid argument. 1122 // 400 Bad Request: invalid argument.
1110 // 401 Unauthorized: invalid auth cookie or DM token. 1123 // 401 Unauthorized: invalid auth cookie or DM token.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 1168
1156 // Response to remote command request. 1169 // Response to remote command request.
1157 optional DeviceRemoteCommandResponse remote_command_response = 14; 1170 optional DeviceRemoteCommandResponse remote_command_response = 14;
1158 1171
1159 // Response to check device attribute update permission. 1172 // Response to check device attribute update permission.
1160 optional DeviceAttributeUpdatePermissionResponse 1173 optional DeviceAttributeUpdatePermissionResponse
1161 device_attribute_update_permission_response = 15; 1174 device_attribute_update_permission_response = 15;
1162 1175
1163 // Response to update device attribute. 1176 // Response to update device attribute.
1164 optional DeviceAttributeUpdateResponse device_attribute_update_response = 16; 1177 optional DeviceAttributeUpdateResponse device_attribute_update_response = 16;
1178
1179 // Response to GCM id mapping request.
1180 optional GcmIdMappingResponse gcm_id_mapping_response = 17;
1165 } 1181 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698