Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINTER_BACKEND_PROXY_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINTER_BACKEND_PROXY_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/callback_forward.h" | |
| 12 #include "base/values.h" | |
| 13 #include "printing/backend/print_backend.h" | |
| 14 | |
| 15 class Profile; | |
| 16 | |
| 17 namespace printing { | |
| 18 | |
| 19 using EnumeratePrintersCallback = base::Callback<void(const PrinterList&)>; | |
| 20 | |
| 21 // Returns the name of the default printer. | |
| 22 std::string GetDefaultPrinterOnBlockingPoolThread(); | |
| 23 | |
| 24 // Retrieves printers for display in the print dialog and calls |cb| with the | |
| 25 // list. | |
|
Lei Zhang
2016/11/04 21:46:51
Mention this must be called on the UI thread.
skau
2016/11/04 22:31:16
Done.
| |
| 26 void EnumeratePrinters(Profile* profile, const EnumeratePrintersCallback& cb); | |
| 27 | |
| 28 } // namespace printing | |
| 29 | |
| 30 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINTER_BACKEND_PROXY_H_ | |
| OLD | NEW |