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

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

Issue 11434053: Add support for public account policy to CloudPolicyClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years 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
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 message PolicyFetchRequest { 93 message PolicyFetchRequest {
94 // This is the policy type, which maps to D3 policy type internally. 94 // This is the policy type, which maps to D3 policy type internally.
95 // By convention, we use "/" as separator to create policy namespace. 95 // By convention, we use "/" as separator to create policy namespace.
96 // The policy type names are case insensitive. 96 // The policy type names are case insensitive.
97 // 97 //
98 // Possible values for Chrome OS are: 98 // Possible values for Chrome OS are:
99 // google/chromeos/device => ChromeDeviceSettingsProto 99 // google/chromeos/device => ChromeDeviceSettingsProto
100 // google/chromeos/user => ChromeSettingsProto 100 // google/chromeos/user => ChromeSettingsProto
101 // google/chromeos/unregistered_user => ChromeInitialSettingsProto (unused) 101 // google/chromeos/publicaccount => ChromeSettingsProto
102 optional string policy_type = 1; 102 optional string policy_type = 1;
103 103
104 // This is the last policy timestamp that client received from server. 104 // This is the last policy timestamp that client received from server.
105 optional int64 timestamp = 2; 105 optional int64 timestamp = 2;
106 106
107 // Tell server what kind of security signature is required. 107 // Tell server what kind of security signature is required.
108 enum SignatureType { 108 enum SignatureType {
109 NONE = 0; 109 NONE = 0;
110 SHA1_RSA = 1; 110 SHA1_RSA = 1;
111 } 111 }
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 252 }
253 253
254 message TimePeriod { 254 message TimePeriod {
255 // [timestamp] is milli seconds since Epoch in UTC timezone. 255 // [timestamp] is milli seconds since Epoch in UTC timezone.
256 optional int64 start_timestamp = 1; 256 optional int64 start_timestamp = 1;
257 optional int64 end_timestamp = 2; 257 optional int64 end_timestamp = 2;
258 } 258 }
259 259
260 message ActiveTimePeriod { 260 message ActiveTimePeriod {
261 optional TimePeriod time_period = 1; 261 optional TimePeriod time_period = 1;
262
263 // The active duration during the above time period.
264 // The unit is milli-second.
bartfab (slow) 2012/12/03 12:28:40 This comment seems unrelated to the CL. But since
Mattias Nissler (ping if slow) 2012/12/03 13:50:39 True. This is the text they have on the google3 si
bartfab (slow) 2012/12/03 14:01:05 I think being in sync with the server trumps any s
262 optional int32 active_duration = 2; 265 optional int32 active_duration = 2;
263 } 266 }
264 267
265 // This captures launch events for one app/extension or other installments. 268 // This captures launch events for one app/extension or other installments.
266 message InstallableLaunch { 269 message InstallableLaunch {
267 optional string install_id = 1; 270 optional string install_id = 1;
268 271
269 // Time duration where this report covers. These are required 272 // Time duration where this report covers. These are required
270 // and the record will be ignored if not set. 273 // and the record will be ignored if not set.
271 optional TimePeriod duration = 2; 274 optional TimePeriod duration = 2;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 314
312 // Error code, see enum above. 315 // Error code, see enum above.
313 optional ErrorCode error_code = 9; 316 optional ErrorCode error_code = 9;
314 317
315 // Human-readable error message. 318 // Human-readable error message.
316 optional string error_message = 10; 319 optional string error_message = 10;
317 } 320 }
318 321
319 // Report device level status. 322 // Report device level status.
320 message DeviceStatusReportRequest { 323 message DeviceStatusReportRequest {
324 // The OS version reported by the device is a platform version
325 // e.g. 1435.0.2011_12_16_1635.
321 optional string os_version = 1; 326 optional string os_version = 1;
322 optional string firmware_version = 2; 327 optional string firmware_version = 2;
323 328
324 // "Validated", "Dev". Same as verified mode. 329 // "Verified", "Dev". Same as verified mode.
325 // If the mode is unknown, this field should not be set. 330 // If the mode is unknown, this field should not be set.
326 optional string boot_mode = 3; 331 optional string boot_mode = 3;
327 332
333 // Device active times collection since last report rpc call.
328 // No longer used -- use active_period instead. 334 // No longer used -- use active_period instead.
329 repeated TimePeriod active_time = 4 [deprecated=true]; 335 repeated TimePeriod active_time = 4 [deprecated = true];
330 336
331 // The browser version string as shown in the About dialog. 337 // The browser version string as shown in the About dialog.
338 // e.g. 17.0.963.18.
332 optional string browser_version = 5; 339 optional string browser_version = 5;
333 340
334 // A list of periods when the device was active, aggregated by day. 341 // A list of periods when the device was active, aggregated by day.
335 repeated ActiveTimePeriod active_period = 6; 342 repeated ActiveTimePeriod active_period = 6;
336 343
337 // The device location. 344 // The device location.
338 optional DeviceLocation device_location = 7; 345 optional DeviceLocation device_location = 7;
339 } 346 }
340 347
341 // Report session (a user on one device) level status. 348 // Report session (a user on one device) level status.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 } 418 }
412 419
413 // Request from the DMAgent on the device to the DMServer. This is 420 // Request from the DMAgent on the device to the DMServer. This is
414 // container for all requests from device to server. The overall HTTP 421 // container for all requests from device to server. The overall HTTP
415 // request MUST be in the following format: 422 // request MUST be in the following format:
416 // 423 //
417 // * HTTP method is POST 424 // * HTTP method is POST
418 // * Data mime type is application/x-protobuffer 425 // * Data mime type is application/x-protobuffer
419 // * HTTP parameters are (all required, all case sensitive): 426 // * HTTP parameters are (all required, all case sensitive):
420 // * request: MUST BE one of 427 // * request: MUST BE one of
428 // * enterprise_check
429 // * ping
430 // * policy
421 // * register 431 // * register
432 // * status
422 // * unregister 433 // * unregister
423 // * policy
424 // * ping
425 // * status
426 // * enterprise_check
427 // 434 //
428 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS. 435 // * devicetype: MUST BE "1" for Android or "2" for Chrome OS.
429 // * apptype: MUST BE Android or Chrome. 436 // * apptype: MUST BE Android or Chrome.
430 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E]. 437 // * deviceid: MUST BE no more than 64-char in [\x21-\x7E].
431 // * agent: MUST BE no more than 64-char long. 438 // * agent: MUST BE no more than 64-char long.
432 // * HTTP Authorization header MUST be in the following formats: 439 // * HTTP Authorization header MUST be in the following formats:
433 // * For register and ping requests, using Gaia authentication: 440 // * For register and ping requests
434 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync> 441 // Authorization: GoogleLogin auth=<auth cookie for Mobile Sync>
435 // 442 //
436 // * For unregister, policy and status requests: 443 // * For unregister, policy and status requests:
437 // Authorization: GoogleDMToken token=<dm token from register> 444 // Authorization: GoogleDMToken token=<dm token from register>
438 // 445 //
439 // * The Authorization header isn't used for enterprise_check requests, nor 446 // * The Authorization header isn't used for enterprise_check requests, nor
440 // for register requests using OAuth. In the latter case, the OAuth token is 447 // for register requests using OAuth. In the latter case, the OAuth token is
441 // passed in the "oauth" parameter. 448 // passed in the "oauth" parameter.
442 // 449 //
443 // DeviceManagementRequest should only contain one request which matches the 450 // DeviceManagementRequest should only contain one request which matches the
(...skipping 27 matching lines...) Expand all
471 // Response from server to device. 478 // Response from server to device.
472 // 479 //
473 // The server uses the following numbers as HTTP status codes 480 // The server uses the following numbers as HTTP status codes
474 // to report top-level errors. 481 // to report top-level errors.
475 // 482 //
476 // 200 OK: valid response is returned to client. 483 // 200 OK: valid response is returned to client.
477 // 400 Bad Request: invalid argument. 484 // 400 Bad Request: invalid argument.
478 // 401 Unauthorized: invalid auth cookie or DM token. 485 // 401 Unauthorized: invalid auth cookie or DM token.
479 // 403 Forbidden: device management is not allowed. 486 // 403 Forbidden: device management is not allowed.
480 // 404 Not Found: the request URL is invalid. 487 // 404 Not Found: the request URL is invalid.
481 // 410 Gone: device is unknown to the server. 488 // 410 Device Not Found: the device id is not found.
482 // 491 Request Pending: the request is pending approval. 489 // 491 Request Pending: the request is pending approval.
483 // 500 Internal Server Error: most likely a bug in DM server. 490 // 500 Internal Server Error: most likely a bug in DM server.
484 // 503 Service Unavailable: most likely a backend error. 491 // 503 Service Unavailable: most likely a backend error.
485 // 901 Device Not Found: the device id is not found. 492 // 901 Device Not Found: the device id is not found.
486 // 902 Policy Not Found: the policy is not found. 493 // 902 Policy Not Found: the policy is not found.
487 message DeviceManagementResponse { 494 message DeviceManagementResponse {
488 // Error message. 495 // Error message.
489 optional string error_message = 2; 496 optional string error_message = 2;
490 497
491 // Register response 498 // Register response
492 optional DeviceRegisterResponse register_response = 3; 499 optional DeviceRegisterResponse register_response = 3;
493 500
494 // Unregister response 501 // Unregister response
495 optional DeviceUnregisterResponse unregister_response = 4; 502 optional DeviceUnregisterResponse unregister_response = 4;
496 503
497 // Policy response. 504 // Policy response.
498 optional DevicePolicyResponse policy_response = 5; 505 optional DevicePolicyResponse policy_response = 5;
499 506
500 // Device status report response. 507 // Device status report response.
501 optional DeviceStatusReportResponse device_status_report_response = 6; 508 optional DeviceStatusReportResponse device_status_report_response = 6;
502 509
503 // Session status report response. 510 // Session status report response.
504 optional SessionStatusReportResponse session_status_report_response = 7; 511 optional SessionStatusReportResponse session_status_report_response = 7;
505 512
506 // Auto-enrollment detection response. 513 // Auto-enrollment detection response.
507 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; 514 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8;
508 } 515 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698