OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 DevicePolicyResponse for caching on disk. | 13 // Wrapper around DevicePolicyResponse for caching on disk. |
14 message CachedDevicePolicyResponse { | 14 message CachedDevicePolicyResponse { |
15 // The DevicePolicyResponse wrapped by this message. | 15 // The DevicePolicyResponse wrapped by this message. |
16 optional DevicePolicyResponse policy = 1; | 16 optional DevicePolicyResponse policy = 1; |
17 // Timestamp noting when this policy was cached. | 17 // Timestamp noting when this policy was cached. |
18 optional uint64 timestamp = 2; | 18 optional uint64 timestamp = 2; |
19 // Flag that is set to true if this device is not managed. | 19 // Flag that is set to true if this device is not managed. |
20 optional bool unmanaged = 3; | 20 optional bool unmanaged = 3; |
21 } | 21 } |
22 | 22 |
23 // Wrapper around CloudPolicyResponse for caching on disk. | |
24 message CachedCloudPolicyResponse { | |
25 // The CloudPolicyResponse wrapped by this message. | |
26 optional CloudPolicyResponse policy_response = 1; | |
27 // Flag that is set to true if this device or user is not managed. | |
28 optional bool unmanaged = 2; | |
29 // Timestamp noting when 'unmanaged' information was stored. | |
30 optional uint64 timestamp = 3; | |
Mattias Nissler (ping if slow)
2011/02/02 12:27:55
See other comment about single cache.
Jakob Kummerow
2011/02/03 14:36:52
Done.
| |
31 } | |
32 | |
23 // Encapsulates a device ID and the associated device token. | 33 // Encapsulates a device ID and the associated device token. |
24 message DeviceCredentials { | 34 message DeviceCredentials { |
25 optional string device_id = 1; | 35 optional string device_id = 1; |
26 optional string device_token = 2; | 36 optional string device_token = 2; |
27 } | 37 } |
28 | 38 |
OLD | NEW |