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

Unified Diff: chromeos/printing/printer_configuration.h

Issue 2903113002: Track printer protocol usage for CUPS printers. (Closed)
Patch Set: rebase Created 3 years, 7 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
Index: chromeos/printing/printer_configuration.h
diff --git a/chromeos/printing/printer_configuration.h b/chromeos/printing/printer_configuration.h
index 6b9bd641acf4b95cfc62e6b3cd4644a0dbcddde8..18d72bc934f0249ac82a47e0a7461a338f532e62 100644
--- a/chromeos/printing/printer_configuration.h
+++ b/chromeos/printing/printer_configuration.h
@@ -47,6 +47,20 @@ class CHROMEOS_EXPORT Printer {
SRC_POLICY,
};
+ // An enumeration of printer protocols. Do not change these values as they
+ // are used in enums.xml.
+ enum PrinterProtocol {
+ kUnknown = 0,
+ kUsb = 1,
+ kIpp = 2,
+ kIpps = 3,
+ kHttp = 4,
+ kHttps = 5,
+ kSocket = 6,
+ kLpd = 7,
+ kProtocolMax
+ };
+
// Constructs a printer object that is completely empty.
Printer();
@@ -94,6 +108,9 @@ class CHROMEOS_EXPORT Printer {
// |uri_|.
bool IsIppEverywhere() const;
+ // Returns the printer protocol the printer is configured with.
+ Printer::PrinterProtocol GetProtocol() const;
+
Source source() const { return source_; }
void set_source(const Source source) { source_ = source; }
« no previous file with comments | « chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc ('k') | chromeos/printing/printer_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698