Chromium Code Reviews| Index: chromeos/printing/printer_configuration.h |
| diff --git a/chromeos/printing/printer_configuration.h b/chromeos/printing/printer_configuration.h |
| index 6b9bd641acf4b95cfc62e6b3cd4644a0dbcddde8..9531e3f88ed3fefb249744073402168e4783f717 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 { |
| + UNKOWN = 0, |
|
Lei Zhang
2017/05/25 19:02:29
Typo
Lei Zhang
2017/05/25 19:02:29
Can we start using kFoo? https://bugs.chromium.org
skau
2017/05/25 19:35:48
Done.
skau
2017/05/25 19:35:48
Done.
|
| + USB = 1, |
| + IPP = 2, |
| + IPPS = 3, |
| + HTTP = 4, |
| + HTTPS = 5, |
| + SOCKET = 6, |
| + LPD = 7, |
| + PROTOCOL_MAX |
| + }; |
| + |
| // 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; } |