#include "printing/backend/print_backend_cups_ipp.h"
#include <cups/cups.h>
#include <memory>
#include <utility>
#include <vector>
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "printing/backend/cups_connection.h"
#include "printing/backend/cups_ipp_helper.h"
#include "printing/backend/print_backend_consts.h"
#include "printing/mojom/print.mojom.h"
#include "printing/units.h"
namespace printing {
PrintBackendCupsIpp::PrintBackendCupsIpp(
std::unique_ptr<CupsConnection> cups_connection)
: … { … }
PrintBackendCupsIpp::~PrintBackendCupsIpp() = default;
mojom::ResultCode PrintBackendCupsIpp::EnumeratePrinters(
PrinterList& printer_list) { … }
mojom::ResultCode PrintBackendCupsIpp::GetDefaultPrinterName(
std::string& default_printer) { … }
mojom::ResultCode PrintBackendCupsIpp::GetPrinterBasicInfo(
const std::string& printer_name,
PrinterBasicInfo* printer_info) { … }
mojom::ResultCode PrintBackendCupsIpp::GetPrinterSemanticCapsAndDefaults(
const std::string& printer_name,
PrinterSemanticCapsAndDefaults* printer_info) { … }
std::vector<std::string> PrintBackendCupsIpp::GetPrinterDriverInfo(
const std::string& printer_name) { … }
bool PrintBackendCupsIpp::IsValidPrinter(const std::string& printer_name) { … }
}