Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: printing/backend/print_backend_cups_ipp.h

Issue 2105463002: Create a new print backend for the updated CUPS APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typos. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/backend/print_backend_chromeos.cc ('k') | printing/backend/print_backend_cups_ipp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « printing/backend/print_backend_chromeos.cc ('k') | printing/backend/print_backend_cups_ipp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698