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

Unified Diff: chrome/browser/ui/webui/print_preview/printer_backend_proxy.h

Issue 2463473002: Present the printer list from preferences for Chrome OS. (Closed)
Patch Set: tidy Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
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
new file mode 100644
index 0000000000000000000000000000000000000000..e950b60163c889e5000b1c5296512fbcb2982a97
--- /dev/null
+++ b/chrome/browser/ui/webui/print_preview/printer_backend_proxy.h
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINTER_BACKEND_PROXY_H_
+#define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINTER_BACKEND_PROXY_H_
+
+#include <memory>
+#include <string>
+
+#include "base/values.h"
+#include "printing/backend/print_backend.h"
+
+class Profile;
+
+namespace printing {
+
+// Returns the name of the default printer.
+std::string GetDefaultPrinterOnBlockingPoolThread();
+
+// Returns printers for display in the print dialog.
+PrinterList EnumeratePrintersOnBlockingPoolThread(Profile* profile);
+
+} // namespace printing
+
+#endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINTER_BACKEND_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698