OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PRINTING_BACKEND_PRINT_BACKEND_CUPS_IPP_H_ |
| 6 #define PRINTING_BACKEND_PRINT_BACKEND_CUPS_IPP_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "printing/backend/cups_connection.h" |
| 11 #include "printing/backend/print_backend.h" |
| 12 #include "url/gurl.h" |
| 13 |
| 14 namespace printing { |
| 15 |
| 16 class PrintBackendCupsIpp : public PrintBackend { |
| 17 public: |
| 18 explicit PrintBackendCupsIpp(CupsConnection&& connection); |
| 19 |
| 20 private: |
| 21 ~PrintBackendCupsIpp() override {} |
| 22 |
| 23 // PrintBackend implementation. |
| 24 bool EnumeratePrinters(PrinterList* printer_list) override; |
| 25 std::string GetDefaultPrinterName() override; |
| 26 bool GetPrinterBasicInfo(const std::string& printer_name, |
| 27 PrinterBasicInfo* printer_info) override; |
| 28 bool GetPrinterSemanticCapsAndDefaults( |
| 29 const std::string& printer_name, |
| 30 PrinterSemanticCapsAndDefaults* printer_info) override; |
| 31 bool GetPrinterCapsAndDefaults(const std::string& printer_name, |
| 32 PrinterCapsAndDefaults* printer_info) override; |
| 33 std::string GetPrinterDriverInfo(const std::string& printer_name) override; |
| 34 bool IsValidPrinter(const std::string& printer_name) override; |
| 35 |
| 36 CupsConnection cups_connection_; |
| 37 }; |
| 38 |
| 39 } // namespace printing |
| 40 |
| 41 #endif // PRINTING_BACKEND_PRINT_BACKEND_CUPS_IPP_H_ |
OLD | NEW |