OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 PRINTING_BACKEND_CUPS_HELPER_H_ | 5 #ifndef PRINTING_BACKEND_CUPS_HELPER_H_ |
6 #define PRINTING_BACKEND_CUPS_HELPER_H_ | 6 #define PRINTING_BACKEND_CUPS_HELPER_H_ |
7 | 7 |
8 #include <cups/cups.h> | 8 #include <cups/cups.h> |
| 9 #include <cups/ppd.h> |
9 | 10 |
10 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
11 #include "printing/printing_export.h" | 12 #include "printing/printing_export.h" |
12 | 13 |
13 class GURL; | 14 class GURL; |
14 | 15 |
15 // These are helper functions for dealing with CUPS. | 16 // These are helper functions for dealing with CUPS. |
16 namespace printing { | 17 namespace printing { |
17 | 18 |
18 struct PrinterSemanticCapsAndDefaults; | 19 struct PrinterSemanticCapsAndDefaults; |
(...skipping 17 matching lines...) Expand all Loading... |
36 // Helper function to parse and convert PPD capabilitites to | 37 // Helper function to parse and convert PPD capabilitites to |
37 // semantic options. | 38 // semantic options. |
38 PRINTING_EXPORT bool ParsePpdCapabilities( | 39 PRINTING_EXPORT bool ParsePpdCapabilities( |
39 base::StringPiece printer_name, | 40 base::StringPiece printer_name, |
40 base::StringPiece printer_capabilities, | 41 base::StringPiece printer_capabilities, |
41 PrinterSemanticCapsAndDefaults* printer_info); | 42 PrinterSemanticCapsAndDefaults* printer_info); |
42 | 43 |
43 } // namespace printing | 44 } // namespace printing |
44 | 45 |
45 #endif // PRINTING_BACKEND_CUPS_HELPER_H_ | 46 #endif // PRINTING_BACKEND_CUPS_HELPER_H_ |
OLD | NEW |