Index: printing/backend/print_backend_cups_ipp.h |
diff --git a/printing/backend/print_backend_cups_ipp.h b/printing/backend/print_backend_cups_ipp.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..06cc73dcac6d4fd63f29067b9ddfc76323130c13 |
--- /dev/null |
+++ b/printing/backend/print_backend_cups_ipp.h |
@@ -0,0 +1,42 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PRINTING_BACKEND_PRINT_BACKEND_CUPS_IPP_H_ |
+#define PRINTING_BACKEND_PRINT_BACKEND_CUPS_IPP_H_ |
+ |
+#include <memory> |
+#include <string> |
+ |
+#include "printing/backend/cups_connection.h" |
+#include "printing/backend/print_backend.h" |
+#include "url/gurl.h" |
+ |
+namespace printing { |
+ |
+class PrintBackendCupsIpp : public PrintBackend { |
+ public: |
+ explicit PrintBackendCupsIpp(std::unique_ptr<CupsConnection> connection); |
+ |
+ private: |
+ ~PrintBackendCupsIpp() override; |
+ |
+ // PrintBackend implementation. |
+ bool EnumeratePrinters(PrinterList* printer_list) override; |
+ std::string GetDefaultPrinterName() override; |
+ bool GetPrinterBasicInfo(const std::string& printer_name, |
+ PrinterBasicInfo* printer_info) override; |
+ bool GetPrinterSemanticCapsAndDefaults( |
+ const std::string& printer_name, |
+ PrinterSemanticCapsAndDefaults* printer_info) override; |
+ bool GetPrinterCapsAndDefaults(const std::string& printer_name, |
+ PrinterCapsAndDefaults* printer_info) override; |
+ std::string GetPrinterDriverInfo(const std::string& printer_name) override; |
+ bool IsValidPrinter(const std::string& printer_name) override; |
+ |
+ std::unique_ptr<CupsConnection> cups_connection_; |
+}; |
+ |
+} // namespace printing |
+ |
+#endif // PRINTING_BACKEND_PRINT_BACKEND_CUPS_IPP_H_ |