Chromium Code Reviews| Index: chrome/browser/ui/webui/print_preview/printer_backend_proxy.h |
| diff --git a/chrome/browser/ui/webui/print_preview/printer_backend_proxy.h b/chrome/browser/ui/webui/print_preview/printer_backend_proxy.h |
| index e950b60163c889e5000b1c5296512fbcb2982a97..2789d60c7dbc9b89f26a30e19ac29cdd3ae5d7fa 100644 |
| --- a/chrome/browser/ui/webui/print_preview/printer_backend_proxy.h |
| +++ b/chrome/browser/ui/webui/print_preview/printer_backend_proxy.h |
| @@ -8,6 +8,7 @@ |
| #include <memory> |
| #include <string> |
| +#include "base/callback_forward.h" |
| #include "base/values.h" |
| #include "printing/backend/print_backend.h" |
| @@ -15,12 +16,21 @@ class Profile; |
| namespace printing { |
| +using PrinterSetupCallback = |
| + base::Callback<void(std::unique_ptr<base::DictionaryValue>)>; |
| + |
| // Returns the name of the default printer. |
| std::string GetDefaultPrinterOnBlockingPoolThread(); |
| // Returns printers for display in the print dialog. |
| PrinterList EnumeratePrintersOnBlockingPoolThread(Profile* profile); |
| +// Returns the PrinterBasicInfo for |printer_name| from the backend. Attempts |
| +// to setup the printer if necessary. Returns nullptr if there is an error. |
|
Lei Zhang
2016/11/02 23:09:22
Documentation is not quite right. void functions d
skau
2016/11/03 22:38:08
Thanks. I forgot to change the comment when I cha
|
| +void ConfigurePrinterAndFetchCapabilities(Profile* profile, |
| + const std::string& printer_name, |
| + const PrinterSetupCallback& cb); |
| + |
| } // namespace printing |
| #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINTER_BACKEND_PROXY_H_ |