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