Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ | 5 #ifndef CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ |
| 6 #define CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ | 6 #define CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 // The *effective* manufacturer and model of this printer, in other words, | 36 // The *effective* manufacturer and model of this printer, in other words, |
| 37 // the manufacturer and model of the printer for which we grab a PPD. This | 37 // the manufacturer and model of the printer for which we grab a PPD. This |
| 38 // doesn’t have to (but can) be the actual manufacturer/model of the | 38 // doesn’t have to (but can) be the actual manufacturer/model of the |
| 39 // printer. We should always try to fill these fields in, even if we don’t | 39 // printer. We should always try to fill these fields in, even if we don’t |
| 40 // think they’ll be needed, as they provide a fallback mechanism for | 40 // think they’ll be needed, as they provide a fallback mechanism for |
| 41 // finding a PPD. | 41 // finding a PPD. |
| 42 std::string effective_manufacturer; | 42 std::string effective_manufacturer; |
| 43 std::string effective_model; | 43 std::string effective_model; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 // Returns true if the printer should be automatically configured using | |
| 47 // IPP Everywhere. | |
| 48 static bool IsIppEverywhere(const Printer& printer); | |
|
Carlson
2016/12/01 01:58:44
Seems sort of weird to have this as a static funct
skau
2016/12/01 21:45:12
My thought was that it might be mistaken to be a f
| |
| 49 | |
| 46 // Constructs a printer object that is completely empty. | 50 // Constructs a printer object that is completely empty. |
| 47 Printer(); | 51 Printer(); |
| 48 | 52 |
| 49 // Constructs a printer object with an id. | 53 // Constructs a printer object with an id. |
| 50 explicit Printer(const std::string& id); | 54 explicit Printer(const std::string& id); |
| 51 | 55 |
| 52 // Copy constructor and assignment. | 56 // Copy constructor and assignment. |
| 53 explicit Printer(const Printer& printer); | 57 explicit Printer(const Printer& printer); |
| 54 Printer& operator=(const Printer& printer); | 58 Printer& operator=(const Printer& printer); |
| 55 | 59 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 // How to find the associated postscript printer description. | 112 // How to find the associated postscript printer description. |
| 109 PpdReference ppd_reference_; | 113 PpdReference ppd_reference_; |
| 110 | 114 |
| 111 // The UUID from an autoconf protocol for deduplication. Could be empty. | 115 // The UUID from an autoconf protocol for deduplication. Could be empty. |
| 112 std::string uuid_; | 116 std::string uuid_; |
| 113 }; | 117 }; |
| 114 | 118 |
| 115 } // namespace chromeos | 119 } // namespace chromeos |
| 116 | 120 |
| 117 #endif // CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ | 121 #endif // CHROMEOS_PRINTING_PRINTER_CONFIGURATION_H_ |
| OLD | NEW |