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

Unified Diff: chrome/browser/chromeos/printing/printer_configuration.h

Issue 2161933003: Define printer configuration objects for Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/printing/printer_pref_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | chrome/browser/chromeos/printing/printer_pref_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698