OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // Sync protocol datatype extension for printer data. | 5 // Sync protocol datatype extension for printer data. |
6 | 6 |
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
8 // any fields in this file. | 8 // any fields in this file. |
9 | 9 |
10 syntax = "proto2"; | 10 syntax = "proto2"; |
11 | 11 |
12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
13 | 13 |
14 package sync_pb; | 14 package sync_pb; |
15 | 15 |
16 // User PPD configuration | 16 // User PPD configuration |
17 message PrinterPPDReference { | 17 message PrinterPPDReference { |
18 // Url for user provided file. Overrides other fields. | 18 // Url for user provided file. Overrides other fields. |
19 optional string user_supplied_ppd_url = 1; | 19 optional string user_supplied_ppd_url = 1; |
20 | 20 |
21 // Retired fields | 21 // Retired fields |
22 optional string effective_manufacturer = 2 [deprecated = true]; | 22 optional string effective_manufacturer = 2 [deprecated = true]; |
23 optional string effective_model = 3 [deprecated = true]; | 23 optional string effective_model = 3 [deprecated = true]; |
24 | 24 |
25 // String identifying the type of printer, used to look up a ppd to drive the | 25 // String identifying the type of printer, used to look up a ppd to drive the |
26 // printer. | 26 // printer. |
27 optional string effective_make_and_model = 4; | 27 optional string effective_make_and_model = 4; |
| 28 |
| 29 // True if the printer should be automatically configured, false otherwise. |
| 30 optional bool autoconf = 5 [default = false]; |
28 } | 31 } |
29 | 32 |
30 message PrinterSpecifics { | 33 message PrinterSpecifics { |
31 // Printer record GUID | 34 // Printer record GUID |
32 optional string id = 1; | 35 optional string id = 1; |
33 | 36 |
34 // User visible name. Any string. | 37 // User visible name. Any string. |
35 optional string display_name = 2; | 38 optional string display_name = 2; |
36 | 39 |
37 // User visible description. Any string. | 40 // User visible description. Any string. |
(...skipping 16 matching lines...) Expand all Loading... |
54 | 57 |
55 // PPDData was deprecated in favor of PPDReference format. | 58 // PPDData was deprecated in favor of PPDReference format. |
56 optional bytes ppd = 8 [deprecated = true]; | 59 optional bytes ppd = 8 [deprecated = true]; |
57 | 60 |
58 // Structure representing the user's ppd configuration. | 61 // Structure representing the user's ppd configuration. |
59 optional PrinterPPDReference ppd_reference = 9; | 62 optional PrinterPPDReference ppd_reference = 9; |
60 | 63 |
61 // Timestamp when printer was last updated. | 64 // Timestamp when printer was last updated. |
62 optional int64 updated_timestamp = 10; | 65 optional int64 updated_timestamp = 10; |
63 } | 66 } |
OLD | NEW |