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

Side by Side Diff: components/policy/proto/device_management_local.proto

Issue 2830033003: Use {To/From}JavaTime for policy timestamps (Closed)
Patch Set: Created 3 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 import "device_management_backend.proto"; 11 import "device_management_backend.proto";
12 12
13 // Wrapper around CloudPolicyResponse/DevicePolicyResponse for caching on disk. 13 // Wrapper around CloudPolicyResponse/DevicePolicyResponse for caching on disk.
14 message CachedCloudPolicyResponse { 14 message CachedCloudPolicyResponse {
15 // The DevicePolicyResponse wrapped by this message. 15 // The DevicePolicyResponse wrapped by this message.
16 optional DevicePolicyResponse device_policy = 1; 16 optional DevicePolicyResponse device_policy = 1;
17 // Timestamp noting when the |unmanaged| flag was set. The meaning is 17 // Timestamp noting when the |unmanaged| flag was set. The meaning is
18 // milliseconds since 1970. When caching (deprecated) DevicePolicyResponses, 18 // milliseconds since Epoch in UTC timezone (Java time). When caching
19 // this timestamp also notes when the response was cached. 19 // (deprecated) DevicePolicyResponses, this timestamp also notes when the
20 // response was cached.
20 optional uint64 timestamp = 2; 21 optional uint64 timestamp = 2;
21 // Flag that is set to true if this device is not managed. 22 // Flag that is set to true if this device is not managed.
22 optional bool unmanaged = 3; 23 optional bool unmanaged = 3;
23 // The PolicyFetchResponse wrapped by this message. 24 // The PolicyFetchResponse wrapped by this message.
24 optional PolicyFetchResponse cloud_policy = 4; 25 optional PolicyFetchResponse cloud_policy = 4;
25 } 26 }
26 27
27 // Encapsulates a device ID and the associated device token. 28 // Encapsulates a device ID and the associated device token.
28 message DeviceCredentials { 29 message DeviceCredentials {
29 optional string device_id = 1; 30 optional string device_id = 1;
30 optional string device_token = 2; 31 optional string device_token = 2;
31 } 32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698