| 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 #ifndef CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ | 5 #ifndef CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ |
| 6 #define CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ | 6 #define CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // True if the printer should be auto-configured and a PPD is unnecessary. | 40 // True if the printer should be auto-configured and a PPD is unnecessary. |
| 41 bool autoconf = false; | 41 bool autoconf = false; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 // The location where the printer is stored. | 44 // The location where the printer is stored. |
| 45 enum Source { | 45 enum Source { |
| 46 SRC_USER_PREFS, | 46 SRC_USER_PREFS, |
| 47 SRC_POLICY, | 47 SRC_POLICY, |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 // An enumeration of printer protocols. Do not change these values as they | 50 // An enumeration of printer protocols. |
| 51 // are used in enums.xml. | 51 // These values are written to logs. New enum values can be added, but |
| 52 // existing enums must never be renumbered or deleted and reused. |
| 52 enum PrinterProtocol { | 53 enum PrinterProtocol { |
| 53 kUnknown = 0, | 54 kUnknown = 0, |
| 54 kUsb = 1, | 55 kUsb = 1, |
| 55 kIpp = 2, | 56 kIpp = 2, |
| 56 kIpps = 3, | 57 kIpps = 3, |
| 57 kHttp = 4, | 58 kHttp = 4, |
| 58 kHttps = 5, | 59 kHttps = 5, |
| 59 kSocket = 6, | 60 kSocket = 6, |
| 60 kLpd = 7, | 61 kLpd = 7, |
| 61 kProtocolMax | 62 kProtocolMax |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // The datastore which holds this printer. | 148 // The datastore which holds this printer. |
| 148 Source source_; | 149 Source source_; |
| 149 | 150 |
| 150 // Timestamp of most recent change. | 151 // Timestamp of most recent change. |
| 151 base::Time last_updated_; | 152 base::Time last_updated_; |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 } // namespace chromeos | 155 } // namespace chromeos |
| 155 | 156 |
| 156 #endif // CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ | 157 #endif // CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ |
| OLD | NEW |