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

Side by Side 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: update gyp 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698