| 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 900b9b65982d84b8d5dc4e09894b70a8cda6923f..e7eaa7c4777c8c739f98fcac7f17f2e5d6abb4d9 100644
|
| --- a/components/policy/proto/device_management_backend.proto
|
| +++ b/components/policy/proto/device_management_backend.proto
|
| @@ -451,6 +451,21 @@ message RemoteCommandResult {
|
| optional bytes payload = 4;
|
| }
|
|
|
| +message DeviceRemoteCommandRequest {
|
| + // The command id of the last command received from the server until
|
| + // now. Omitted if no commands have been received yet.
|
| + optional int64 last_command_unique_id = 1;
|
| +
|
| + // The execution results of previously fetched commands.
|
| + // The client should send back the command result whenever possible.
|
| + repeated RemoteCommandResult command_results = 2;
|
| +}
|
| +
|
| +message DeviceRemoteCommandResponse {
|
| + // The queue of pending commands.
|
| + repeated RemoteCommand commands = 1;
|
| +}
|
| +
|
| // Request from device to server for reading policies.
|
| message DevicePolicyRequest {
|
| // The policy fetch request. If this field exists, the request must
|
| @@ -931,6 +946,7 @@ message CheckDevicePairingResponse {
|
| // * register
|
| // * status
|
| // * unregister
|
| +// * remote_commands
|
| //
|
| // * devicetype: MUST BE "1" for Android or "2" for Chrome OS.
|
| // * apptype: MUST BE Android or Chrome.
|
| @@ -960,6 +976,7 @@ message CheckDevicePairingResponse {
|
| // register: register_request
|
| // status: device_status_report_request or session_status_report_request
|
| // unregister: unregister_request
|
| +// remote_commands: remote_command_request
|
| //
|
| //
|
| message DeviceManagementRequest {
|
| @@ -996,6 +1013,9 @@ message DeviceManagementRequest {
|
|
|
| // Check if two devices are paired.
|
| optional CheckDevicePairingRequest check_device_pairing_request = 12;
|
| +
|
| + // Remote command fetching.
|
| + optional DeviceRemoteCommandRequest remote_command_request = 13;
|
| }
|
|
|
| // Response from server to device.
|
| @@ -1050,4 +1070,7 @@ message DeviceManagementResponse {
|
|
|
| // Response to check device pairing request.
|
| optional CheckDevicePairingResponse check_device_pairing_response = 13;
|
| +
|
| + // Response to remote command request.
|
| + optional DeviceRemoteCommandResponse remote_command_response = 14;
|
| }
|
|
|