Chromium Code Reviews| Index: chrome/browser/chromeos/printing/printer_configuration.h |
| diff --git a/chrome/browser/chromeos/printing/printer_configuration.h b/chrome/browser/chromeos/printing/printer_configuration.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f15cb9b18aa97e5f3cbe45f39d487b189bd2c501 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/printing/printer_configuration.h |
| @@ -0,0 +1,42 @@ |
| +#ifndef CHROMEOS_PRINTING_PRINTER_CONFIG_H_ |
| +#define CHROMEOS_PRINTING_PRINTER_CONFIG_H_ |
| + |
| +namespace chromeos { |
| + |
| +// Represents a Postscript Printer Description with which the printer was setup. |
| +struct PPDFile { |
| + // Identifier from the quirks server. -1 otherwise. |
| + int id; |
| + |
| + std::string file_name; |
| + |
| + // If there is a file with a later version on the quirks server, that file |
| + // should be used. The default value is 0. |
| + int version_number; |
| + |
| + // This will be true if the file was retrived from the quirks server. |
| + // Otherwise, the file was saved to disk by the user. |
| + bool from_quirks_server; |
| +} |
| + |
| +struct Printer { |
| + // Globally unique identifier. Empty indicates a new printer. |
| + std::string id; |
|
xdai1
2016/07/19 19:09:43
Compared with PrinterBasicInfo (https://cs.chromiu
skau
2016/07/28 20:07:15
Description has been added. Status will come from
|
| + |
| + // The manufacturer of the printer. e.g. HP |
| + std::string manufacturer; |
| + |
| + // The model of the printer. e.g. OfficeJet 415 |
| + std::string model; |
| + |
| + // The full path for the printer. Suitable for configuration in CUPS. |
| + // Contains protocol, hostname, port, and queue. |
| + std::string uri; |
| + |
| + // The associated postscript printer description. |
| + PPDFile ppd; |
| +} |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROMEOS_PRINTING_PRINTER_CONFIG_H_ |