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 // Methods for parsing IPP Printer attributes. |
| 6 |
5 #ifndef PRINTING_BACKEND_CUPS_IPP_UTIL_H_ | 7 #ifndef PRINTING_BACKEND_CUPS_IPP_UTIL_H_ |
6 #define PRINTING_BACKEND_CUPS_IPP_UTIL_H_ | 8 #define PRINTING_BACKEND_CUPS_IPP_UTIL_H_ |
7 | 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
11 #include "printing/backend/cups_printer.h" | 13 #include "printing/backend/cups_printer.h" |
12 #include "printing/backend/print_backend.h" | 14 #include "printing/backend/print_backend.h" |
13 | 15 |
14 namespace printing { | 16 namespace printing { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 bool CollateDefault(const CupsOptionProvider& printer); | 52 bool CollateDefault(const CupsOptionProvider& printer); |
51 | 53 |
52 // Populates the |printer_info| object with attributes retrived using IPP from | 54 // Populates the |printer_info| object with attributes retrived using IPP from |
53 // |printer|. | 55 // |printer|. |
54 void CapsAndDefaultsFromPrinter(const CupsOptionProvider& printer, | 56 void CapsAndDefaultsFromPrinter(const CupsOptionProvider& printer, |
55 PrinterSemanticCapsAndDefaults* printer_info); | 57 PrinterSemanticCapsAndDefaults* printer_info); |
56 | 58 |
57 } // namespace printing | 59 } // namespace printing |
58 | 60 |
59 #endif // PRINTING_BACKEND_CUPS_IPP_UTIL_H_ | 61 #endif // PRINTING_BACKEND_CUPS_IPP_UTIL_H_ |
OLD | NEW |