OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 import "cloud_policy.proto"; | 7 import "cloud_policy.proto"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 } | 108 } |
109 | 109 |
110 optional Mode mode = 1; | 110 optional Mode mode = 1; |
111 } | 111 } |
112 | 112 |
113 // Request from device to server to register device. | 113 // Request from device to server to register device. |
114 message DeviceRegisterRequest { | 114 message DeviceRegisterRequest { |
115 // reregister device without erasing server state. | 115 // reregister device without erasing server state. |
116 // it can be used to refresh dmtoken etc. | 116 // it can be used to refresh dmtoken etc. |
117 optional bool reregister = 1; | 117 optional bool reregister = 1; |
118 | |
119 // This should be the uniqe id of the device, e.g. serial number | |
120 optional string device_id = 2; | |
121 | |
122 // username? (currently this is also sent as an HTTP POST parameter) | |
gfeher
2011/02/02 08:42:45
You'll probably need to sync this file to the late
Jakob Kummerow
2011/02/03 14:36:52
It's on my TODO list :-)
| |
118 } | 123 } |
119 | 124 |
120 // Response from server to device register request. | 125 // Response from server to device register request. |
121 message DeviceRegisterResponse { | 126 message DeviceRegisterResponse { |
122 // device mangement toke for this registration. | 127 // device mangement toke for this registration. |
123 required string device_management_token = 1; | 128 required string device_management_token = 1; |
124 | 129 |
125 // The name of the device, assigned by the server. | 130 // The name of the device, assigned by the server. |
126 optional string device_name = 2; | 131 optional string device_name = 2; |
127 } | 132 } |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
249 | 254 |
250 // Policy response. | 255 // Policy response. |
251 optional DevicePolicyResponse policy_response = 5; | 256 optional DevicePolicyResponse policy_response = 5; |
252 | 257 |
253 // Policy response (new protocol). | 258 // Policy response (new protocol). |
254 optional CloudPolicyResponse cloud_policy_response = 6; | 259 optional CloudPolicyResponse cloud_policy_response = 6; |
255 | 260 |
256 // Response to managed check request. | 261 // Response to managed check request. |
257 optional ManagedCheckResponse managed_check_response = 7; | 262 optional ManagedCheckResponse managed_check_response = 7; |
258 } | 263 } |
OLD | NEW |