| 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; }
|
|
|
|
|