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

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

Issue 7200010: Introduce a state flag within the signed policy response. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 | « no previous file | no next file » | 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) 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698