Chromium Code Reviews| Index: chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h |
| diff --git a/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h b/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h |
| index b959644da24312905d2c88e1580972f2667b67bd..7125bf86eea25446d57ec3a9338331b8de62fab1 100644 |
| --- a/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h |
| +++ b/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h |
| @@ -88,6 +88,20 @@ class CupsPrintersHandler : public ::settings::SettingsPageUIHandler, |
| void OnPrintersFound(const std::vector<Printer>& printers) override; |
| void OnDiscoveryDone() override; |
| + // Invokes debugd to add the printer to CUPS. If |ipp_everywhere| is true, |
| + // automatic configuration will be attempted and |ppd_path| is ignored. |
| + // |ppd_path| is the path to a Postscript Printer Description file that will |
| + // be used to configure the printer capabilities. This file must be in |
| + // Downloads or teh PPD Cache. |
|
Carlson
2016/12/05 23:40:11
the
skau
2016/12/06 20:55:46
Done.
|
| + void AddPrinterToCups(std::unique_ptr<Printer> printer, |
| + const std::string& ppd_path, |
| + bool ipp_everywhere); |
| + |
| + // Callback for PpdProvider::ResolveCallback. |
| + void OnPPDResolved(std::unique_ptr<Printer> printer, |
| + printing::PpdProvider::CallbackResultCode result, |
| + base::FilePath ppd_path); |
| + |
| std::unique_ptr<chromeos::PrinterDiscoverer> printer_discoverer_; |
| std::unique_ptr<chromeos::printing::PpdProvider> ppd_provider_; |