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 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
8 | 8 |
9 package enterprise_management; | 9 package enterprise_management; |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // increased by 1 at each key rotation.) | 154 // increased by 1 at each key rotation.) |
155 optional int32 public_key_version = 6; | 155 optional int32 public_key_version = 6; |
156 | 156 |
157 // The user this policy is intended for. In case of device policy, the name | 157 // The user this policy is intended for. In case of device policy, the name |
158 // of the owner (who registered the device). | 158 // of the owner (who registered the device). |
159 optional string username = 7; | 159 optional string username = 7; |
160 | 160 |
161 // In this field the DMServer should echo back the "deviceid" HTTP parameter | 161 // In this field the DMServer should echo back the "deviceid" HTTP parameter |
162 // from the request. | 162 // from the request. |
163 optional string device_id = 8; | 163 optional string device_id = 8; |
| 164 |
| 165 // Indicates which state this association with DMServer is in. This can be |
| 166 // used to tell the client that it is not receiving policy even though the |
| 167 // registration with the server is kept active. |
| 168 enum AssociationState { |
| 169 // Association is active and policy is pushed. |
| 170 ACTIVE = 0; |
| 171 // Association is alive, but the corresponding domain is not managed. |
| 172 UNMANAGED = 1; |
| 173 } |
| 174 optional AssociationState state = 9 [default = ACTIVE]; |
164 } | 175 } |
165 | 176 |
166 message PolicyFetchResponse { | 177 message PolicyFetchResponse { |
167 // Since a single policy request may ask for multiple policies, we | 178 // Since a single policy request may ask for multiple policies, we |
168 // provide separate error code for each individual policy fetch. | 179 // provide separate error code for each individual policy fetch. |
169 | 180 |
170 // We will use standard HTTP Status Code as error code. | 181 // We will use standard HTTP Status Code as error code. |
171 optional int32 error_code = 1; | 182 optional int32 error_code = 1; |
172 | 183 |
173 // Human readable error message for customer support purpose. | 184 // Human readable error message for customer support purpose. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 273 |
263 // Register response | 274 // Register response |
264 optional DeviceRegisterResponse register_response = 3; | 275 optional DeviceRegisterResponse register_response = 3; |
265 | 276 |
266 // Unregister response | 277 // Unregister response |
267 optional DeviceUnregisterResponse unregister_response = 4; | 278 optional DeviceUnregisterResponse unregister_response = 4; |
268 | 279 |
269 // Policy response. | 280 // Policy response. |
270 optional DevicePolicyResponse policy_response = 5; | 281 optional DevicePolicyResponse policy_response = 5; |
271 } | 282 } |
OLD | NEW |