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
3 // found in the LICENSE file.
5 #ifndef PRINTING_BACKEND_CUPS_HELPER_H_
6 #define PRINTING_BACKEND_CUPS_HELPER_H_
12 #include "printing/printing_export.h"
16 // These are helper functions for dealing with CUPS.
19 struct PrinterSemanticCapsAndDefaults
;
21 // Helper wrapper around http_t structure, with connection and cleanup
23 class PRINTING_EXPORT HttpConnectionCUPS
{
25 HttpConnectionCUPS(const GURL
& print_server_url
,
26 http_encryption_t encryption
);
27 ~HttpConnectionCUPS();
29 void SetBlocking(bool blocking
);
37 // Helper function to parse and convert PPD capabilitites to
39 PRINTING_EXPORT
bool ParsePpdCapabilities(
40 const std::string
& printer_name
,
41 const std::string
& printer_capabilities
,
42 PrinterSemanticCapsAndDefaults
* printer_info
);
44 } // namespace printing
46 #endif // PRINTING_BACKEND_CUPS_HELPER_H_