| OLD | NEW |
| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // See PolicyFetchRequest.policy_type. | 283 // See PolicyFetchRequest.policy_type. |
| 284 optional string policy_type = 1; | 284 optional string policy_type = 1; |
| 285 | 285 |
| 286 // [timestamp] is milliseconds since Epoch in UTC timezone (Java time). It is | 286 // [timestamp] is milliseconds since Epoch in UTC timezone (Java time). It is |
| 287 // included here so that the time at which the server issued this response | 287 // included here so that the time at which the server issued this response |
| 288 // cannot be faked (as protection against replay attacks). It is the timestamp | 288 // cannot be faked (as protection against replay attacks). It is the timestamp |
| 289 // generated by DMServer, NOT the time admin last updated the policy or | 289 // generated by DMServer, NOT the time admin last updated the policy or |
| 290 // anything like that. | 290 // anything like that. |
| 291 optional int64 timestamp = 2; | 291 optional int64 timestamp = 2; |
| 292 | 292 |
| 293 // The DM token that was used by the client in the HTTP POST header | 293 // The DM token that was used by the client in the HTTP POST header for |
| 294 // for authenticating the request. It is included here again so that | 294 // authenticating the request. It is included here again so that the client |
| 295 // the client can verify that the response is meant for them (and not | 295 // can verify that the response is meant for them (and not issued by a replay |
| 296 // issued by a replay or man-in-the-middle attack). | 296 // or man-in-the-middle attack). |
| 297 // Note that the existence or non-existence of the DM token is not the correct |
| 298 // way to determine whether the device is managed. Cf. |management_mode| below |
| 299 // for details. |
| 297 optional string request_token = 3; | 300 optional string request_token = 3; |
| 298 | 301 |
| 299 // The serialized value of the actual policy protobuf. This can be | 302 // The serialized value of the actual policy protobuf. This can be |
| 300 // deserialized to an instance of, for example, ChromeSettingsProto, | 303 // deserialized to an instance of, for example, ChromeSettingsProto, |
| 301 // ChromeDeviceSettingsProto, or ExternalPolicyData. | 304 // ChromeDeviceSettingsProto, or ExternalPolicyData. |
| 302 optional bytes policy_value = 4; | 305 optional bytes policy_value = 4; |
| 303 | 306 |
| 304 // The device display name assigned by the server. It is only | 307 // The device display name assigned by the server. It is only |
| 305 // filled if the display name is available. | 308 // filled if the display name is available. |
| 306 // | 309 // |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 optional string policy_token = 15; | 364 optional string policy_token = 15; |
| 362 | 365 |
| 363 // Indicates the management mode of the device. Note that old policies do not | 366 // Indicates the management mode of the device. Note that old policies do not |
| 364 // have this field. If this field is not set but request_token is set, assume | 367 // have this field. If this field is not set but request_token is set, assume |
| 365 // the management mode is ENTERPRISE_MANAGED. If both this field and | 368 // the management mode is ENTERPRISE_MANAGED. If both this field and |
| 366 // request_token are not set, assume the management mode is LOCAL_OWNER. | 369 // request_token are not set, assume the management mode is LOCAL_OWNER. |
| 367 enum ManagementMode { | 370 enum ManagementMode { |
| 368 // The device is owned locally. The policies are set by the local owner of | 371 // The device is owned locally. The policies are set by the local owner of |
| 369 // the device. | 372 // the device. |
| 370 LOCAL_OWNER = 0; | 373 LOCAL_OWNER = 0; |
| 371 // The device is enterprise-managed. The policies come from the enterprise | 374 // The device is enterprise-managed (either via DM server or through Active |
| 372 // server. See the comment above for backward compatibility. | 375 // Directory). See the comment above for backward compatibility. |
| 373 ENTERPRISE_MANAGED = 1; | 376 ENTERPRISE_MANAGED = 1; |
| 374 // Obsolete. Don't use. | 377 // Obsolete. Don't use. |
| 375 OBSOLETE_CONSUMER_MANAGED = 2; | 378 OBSOLETE_CONSUMER_MANAGED = 2; |
| 376 } | 379 } |
| 377 optional ManagementMode management_mode = 16; | 380 optional ManagementMode management_mode = 16; |
| 378 | 381 |
| 379 // Indicates the state that the device should be in. | 382 // Indicates the state that the device should be in. |
| 380 optional DeviceState device_state = 17; | 383 optional DeviceState device_state = 17; |
| 381 | 384 |
| 382 // The object source which hosts command queue objects within the | 385 // The object source which hosts command queue objects within the |
| (...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1419 check_android_management_response = 18; | 1422 check_android_management_response = 18; |
| 1420 | 1423 |
| 1421 // Response to an Active Directory Play user enrollment request. | 1424 // Response to an Active Directory Play user enrollment request. |
| 1422 optional ActiveDirectoryEnrollPlayUserResponse | 1425 optional ActiveDirectoryEnrollPlayUserResponse |
| 1423 active_directory_enroll_play_user_response = 19; | 1426 active_directory_enroll_play_user_response = 19; |
| 1424 | 1427 |
| 1425 // Response to a Play activity request. | 1428 // Response to a Play activity request. |
| 1426 optional ActiveDirectoryPlayActivityResponse | 1429 optional ActiveDirectoryPlayActivityResponse |
| 1427 active_directory_play_activity_response = 20; | 1430 active_directory_play_activity_response = 20; |
| 1428 } | 1431 } |
| OLD | NEW |