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

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

Issue 19733003: Implement cloud policy invalidations using the invalidation service framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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
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
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 // This field is used for devices to send the additional ID to fetch settings. 163 // This field is used for devices to send the additional ID to fetch settings.
164 // Retrieving some settings requires more than just device or user ID. 164 // Retrieving some settings requires more than just device or user ID.
165 // For example, to retrieve public account, devices need to pass in 165 // For example, to retrieve public account, devices need to pass in
166 // public account ID in addition to device ID. To retrieve extension or 166 // public account ID in addition to device ID. To retrieve extension or
167 // plug-in settings, devices need to pass in extension/plug-in ID in 167 // plug-in settings, devices need to pass in extension/plug-in ID in
168 // addition to user ID. 168 // addition to user ID.
169 // policy_type represents the type of settings (e.g. public account, 169 // policy_type represents the type of settings (e.g. public account,
170 // extension) devices request to fetch. 170 // extension) devices request to fetch.
171 optional string settings_entity_id = 6; 171 optional string settings_entity_id = 6;
172
173 // If this fetch is due to a policy invalidation, this field contains the
174 // version provided with the invalidation. The server interprets this value
175 // and the value of invalidation_payload to fetch the up-to-date policy.
176 optional int64 invalidation_version = 7;
177
178 // If this fetch is due to a policy invalidation, this field contains the
179 // payload delivered with the invalidation. The server interprets this value
180 // and the value of invalidation_version to fetch the up-to-date policy.
181 optional bytes invalidation_payload = 8;
172 } 182 }
173 183
174 // This message is included in serialized form in PolicyFetchResponse 184 // This message is included in serialized form in PolicyFetchResponse
175 // below. It may also be signed, with the signature being created for 185 // below. It may also be signed, with the signature being created for
176 // the serialized form. 186 // the serialized form.
177 message PolicyData { 187 message PolicyData {
178 // See PolicyFetchRequest.policy_type. 188 // See PolicyFetchRequest.policy_type.
179 optional string policy_type = 1; 189 optional string policy_type = 1;
180 190
181 // [timestamp] is milliseconds since Epoch in UTC timezone. It is 191 // [timestamp] is milliseconds since Epoch in UTC timezone. It is
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // applies to device policy. 245 // applies to device policy.
236 optional bool valid_serial_number_missing = 10; 246 optional bool valid_serial_number_missing = 10;
237 247
238 // Indicates which public account or extension/plug-in this policy data is 248 // Indicates which public account or extension/plug-in this policy data is
239 // for. See PolicyFetchRequest.settings_entity_id for more details. 249 // for. See PolicyFetchRequest.settings_entity_id for more details.
240 optional string settings_entity_id = 11; 250 optional string settings_entity_id = 11;
241 251
242 // Indicates the identity the device service account is associated with. 252 // Indicates the identity the device service account is associated with.
243 // This is only sent as part of device policy fetch. 253 // This is only sent as part of device policy fetch.
244 optional string service_account_identity = 12; 254 optional string service_account_identity = 12;
255
256 // The object source which hosts policy objects within the invalidation
257 // service. This value is combined with invalidation_name to form the object
258 // id used to register for invalidations to this policy.
259 optional int32 invalidation_source = 13;
260
261 // The name which uniquely identifies this policy within the invalidation
262 // service object source. This value is combined with invalidation_source to
263 // form the object id used to register for invalidations to this policy.
264 optional bytes invalidation_name = 14;
245 } 265 }
246 266
247 message PolicyFetchResponse { 267 message PolicyFetchResponse {
248 // Since a single policy request may ask for multiple policies, we 268 // Since a single policy request may ask for multiple policies, we
249 // provide separate error code for each individual policy fetch. 269 // provide separate error code for each individual policy fetch.
250 270
251 // We will use standard HTTP Status Code as error code. 271 // We will use standard HTTP Status Code as error code.
252 optional int32 error_code = 1; 272 optional int32 error_code = 1;
253 273
254 // Human readable error message for customer support purpose. 274 // Human readable error message for customer support purpose.
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 612
593 // Auto-enrollment detection response. 613 // Auto-enrollment detection response.
594 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; 614 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8;
595 615
596 // EMCert upload response. 616 // EMCert upload response.
597 optional DeviceCertUploadResponse cert_upload_response = 9; 617 optional DeviceCertUploadResponse cert_upload_response = 9;
598 618
599 // Response to OAuth2 authorization code request. 619 // Response to OAuth2 authorization code request.
600 optional DeviceServiceApiAccessResponse service_api_access_response = 10; 620 optional DeviceServiceApiAccessResponse service_api_access_response = 10;
601 } 621 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698