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

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

Issue 1153173002: Include USB printers in printer list as "provisional" devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed more comments. Created 5 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview/extension_printer_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/extension_printer_handler.h
diff --git a/chrome/browser/ui/webui/print_preview/extension_printer_handler.h b/chrome/browser/ui/webui/print_preview/extension_printer_handler.h
index 9995184afd6a0b8c6d794aa1721b2c9b3fa96feb..5f3d1bb2efa8e3850f7a671551fce147987c02b4 100644
--- a/chrome/browser/ui/webui/print_preview/extension_printer_handler.h
+++ b/chrome/browser/ui/webui/print_preview/extension_printer_handler.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_EXTENSION_PRINTER_HANDLER_H_
#include <string>
+#include <vector>
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
@@ -29,6 +30,10 @@ namespace cloud_devices {
class CloudDeviceDescription;
}
+namespace device {
+class UsbDevice;
+}
+
namespace gfx {
class Size;
}
@@ -93,7 +98,7 @@ class ExtensionPrinterHandler : public PrinterHandler {
// They just propagate results to callbacks passed to them.
void WrapGetPrintersCallback(
const PrinterHandler::GetPrintersCallback& callback,
- const base::ListValue& pritners,
+ const base::ListValue& printers,
bool done);
void WrapGetCapabilityCallback(
const PrinterHandler::GetCapabilityCallback& callback,
@@ -102,10 +107,14 @@ class ExtensionPrinterHandler : public PrinterHandler {
void WrapPrintCallback(const PrinterHandler::PrintCallback& callback,
bool success,
const std::string& status);
+ void OnUsbDevicesEnumerated(
+ const PrinterHandler::GetPrintersCallback& callback,
+ const std::vector<scoped_refptr<device::UsbDevice>>& devices);
content::BrowserContext* browser_context_;
scoped_ptr<local_discovery::PWGRasterConverter> pwg_raster_converter_;
+ int pending_enumeration_count_ = 0;
scoped_refptr<base::TaskRunner> slow_task_runner_;
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview/extension_printer_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698