OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 |
11 // Request from device to server to register device. | 11 // Request from device to server to register device. |
12 message DeviceRegisterRequest { | 12 message DeviceRegisterRequest { |
13 // Reregister device without erasing server state. It can be used | 13 // Reregister device without erasing server state. It can be used |
14 // to refresh dmtoken etc. Client MUST set this value to true if it | 14 // to refresh dmtoken etc. Client MUST set this value to true if it |
15 // reuses an existing device id. | 15 // reuses an existing device id. |
16 optional bool reregister = 1; | 16 optional bool reregister = 1; |
17 | 17 |
18 // Device register type. This field does not exist for TT release. | 18 // Device register type. This field does not exist for TT release. |
19 // When a client requests for policies, server should verify the | 19 // When a client requests for policies, server should verify the |
20 // client has been registered properly. For example, a client must | 20 // client has been registered properly. For example, a client must |
21 // register with type DEVICE in order to retrieve device policies. | 21 // register with type DEVICE in order to retrieve device policies. |
22 enum Type { | 22 enum Type { |
23 TT = 0; // Register for TT release. | 23 TT = 0; // Register for TT release. |
24 USER = 1; // Register for Chrome OS user polices. | 24 USER = 1; // Register for Chrome OS user polices. |
25 DEVICE = 2; // Register for device policies. | 25 DEVICE = 2; // Register for device policies. |
26 BROWSER = 3; // Register for Chrome user policies. | 26 BROWSER = 3; // Register for Chrome user policies. |
27 ANDROID_BROWSER = 4; // Register for Android Chrome browser user policies. | |
Joao da Silva
2013/06/15 14:33:03
Turns out that android builds have an ANDROID macr
| |
27 } | 28 } |
28 // NOTE: we also use this field to detect client version. If this | 29 // NOTE: we also use this field to detect client version. If this |
29 // field is missing, then the request comes from TT. We will remove | 30 // field is missing, then the request comes from TT. We will remove |
30 // Chrome OS TT support once it is over. | 31 // Chrome OS TT support once it is over. |
31 optional Type type = 2 [default = TT]; | 32 optional Type type = 2 [default = TT]; |
32 | 33 |
33 // Machine hardware id, such as serial number. | 34 // Machine hardware id, such as serial number. |
34 // This field is required if register type == DEVICE. | 35 // This field is required if register type == DEVICE. |
35 optional string machine_id = 3; | 36 optional string machine_id = 3; |
36 | 37 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
126 message PolicyFetchRequest { | 127 message PolicyFetchRequest { |
127 // This is the policy type, which maps to D3 policy type internally. | 128 // This is the policy type, which maps to D3 policy type internally. |
128 // By convention, we use "/" as separator to create policy namespace. | 129 // By convention, we use "/" as separator to create policy namespace. |
129 // The policy type names are case insensitive. | 130 // The policy type names are case insensitive. |
130 // | 131 // |
131 // Possible values for Chrome OS are: | 132 // Possible values for Chrome OS are: |
132 // google/chromeos/device => ChromeDeviceSettingsProto | 133 // google/chromeos/device => ChromeDeviceSettingsProto |
133 // google/chromeos/user => ChromeSettingsProto | 134 // google/chromeos/user => ChromeSettingsProto |
134 // google/chromeos/publicaccount => ChromeSettingsProto | 135 // google/chromeos/publicaccount => ChromeSettingsProto |
135 // google/chrome/extension => ExternalPolicyData | 136 // google/chrome/extension => ExternalPolicyData |
137 // google/android/user => ChromeSettingsProto | |
136 optional string policy_type = 1; | 138 optional string policy_type = 1; |
137 | 139 |
138 // This is the last policy timestamp that client received from server. | 140 // This is the last policy timestamp that client received from server. |
139 optional int64 timestamp = 2; | 141 optional int64 timestamp = 2; |
140 | 142 |
141 // Tell server what kind of security signature is required. | 143 // Tell server what kind of security signature is required. |
142 enum SignatureType { | 144 enum SignatureType { |
143 NONE = 0; | 145 NONE = 0; |
144 SHA1_RSA = 1; | 146 SHA1_RSA = 1; |
145 } | 147 } |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
556 | 558 |
557 // Auto-enrollment detection response. | 559 // Auto-enrollment detection response. |
558 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; | 560 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; |
559 | 561 |
560 // EMCert upload response. | 562 // EMCert upload response. |
561 optional DeviceCertUploadResponse cert_upload_response = 9; | 563 optional DeviceCertUploadResponse cert_upload_response = 9; |
562 | 564 |
563 // Response to OAuth2 authorization code request. | 565 // Response to OAuth2 authorization code request. |
564 optional DeviceServiceApiAccessResponse service_api_access_response = 10; | 566 optional DeviceServiceApiAccessResponse service_api_access_response = 10; |
565 } | 567 } |
OLD | NEW |