Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: chrome/browser/policy/proto/cloud/device_management_backend.proto

Issue 23475018: Added cloud policy registration and fetch types for iOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/policy/cloud/cloud_policy_constants.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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. 27 ANDROID_BROWSER = 4; // Register for Android Chrome browser user policies.
28 IOS_BROWSER = 5; // Register for iOS Chrome browser user policies.
28 } 29 }
29 // NOTE: we also use this field to detect client version. If this 30 // NOTE: we also use this field to detect client version. If this
30 // field is missing, then the request comes from TT. We will remove 31 // field is missing, then the request comes from TT. We will remove
31 // Chrome OS TT support once it is over. 32 // Chrome OS TT support once it is over.
32 optional Type type = 2 [default = TT]; 33 optional Type type = 2 [default = TT];
33 34
34 // Machine hardware id, such as serial number. 35 // Machine hardware id, such as serial number.
35 // This field is required if register type == DEVICE. 36 // This field is required if register type == DEVICE.
36 optional string machine_id = 3; 37 optional string machine_id = 3;
37 38
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // This is the policy type, which maps to D3 policy type internally. 129 // This is the policy type, which maps to D3 policy type internally.
129 // By convention, we use "/" as separator to create policy namespace. 130 // By convention, we use "/" as separator to create policy namespace.
130 // The policy type names are case insensitive. 131 // The policy type names are case insensitive.
131 // 132 //
132 // Possible values for Chrome OS are: 133 // Possible values for Chrome OS are:
133 // google/chromeos/device => ChromeDeviceSettingsProto 134 // google/chromeos/device => ChromeDeviceSettingsProto
134 // google/chromeos/user => ChromeSettingsProto 135 // google/chromeos/user => ChromeSettingsProto
135 // google/chromeos/publicaccount => ChromeSettingsProto 136 // google/chromeos/publicaccount => ChromeSettingsProto
136 // google/chrome/extension => ExternalPolicyData 137 // google/chrome/extension => ExternalPolicyData
137 // google/android/user => ChromeSettingsProto 138 // google/android/user => ChromeSettingsProto
139 // google/ios/user => ChromeSettingsProto
138 optional string policy_type = 1; 140 optional string policy_type = 1;
139 141
140 // This is the last policy timestamp that client received from server. 142 // This is the last policy timestamp that client received from server.
141 optional int64 timestamp = 2; 143 optional int64 timestamp = 2;
142 144
143 // Tell server what kind of security signature is required. 145 // Tell server what kind of security signature is required.
144 enum SignatureType { 146 enum SignatureType {
145 NONE = 0; 147 NONE = 0;
146 SHA1_RSA = 1; 148 SHA1_RSA = 1;
147 } 149 }
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 614
613 // Auto-enrollment detection response. 615 // Auto-enrollment detection response.
614 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; 616 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8;
615 617
616 // EMCert upload response. 618 // EMCert upload response.
617 optional DeviceCertUploadResponse cert_upload_response = 9; 619 optional DeviceCertUploadResponse cert_upload_response = 9;
618 620
619 // Response to OAuth2 authorization code request. 621 // Response to OAuth2 authorization code request.
620 optional DeviceServiceApiAccessResponse service_api_access_response = 10; 622 optional DeviceServiceApiAccessResponse service_api_access_response = 10;
621 } 623 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/cloud_policy_constants.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698