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

Unified Diff: extensions/common/api/printer_provider/usb_printer_manifest_data.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
Index: extensions/common/api/printer_provider/usb_printer_manifest_data.h
diff --git a/extensions/common/api/printer_provider/usb_printer_manifest_data.h b/extensions/common/api/printer_provider/usb_printer_manifest_data.h
index fae6053fc3c4573c0c53645be710f1748957a6dd..ed397f0ede05e693386b4208574881edde6ff3a2 100644
--- a/extensions/common/api/printer_provider/usb_printer_manifest_data.h
+++ b/extensions/common/api/printer_provider/usb_printer_manifest_data.h
@@ -10,6 +10,7 @@
#include "extensions/common/extension.h"
namespace device {
+class UsbDevice;
class UsbDeviceFilter;
}
@@ -30,6 +31,8 @@ class UsbPrinterManifestData : public Extension::ManifestData {
static scoped_ptr<UsbPrinterManifestData> FromValue(const base::Value& value,
base::string16* error);
+ bool SupportsDevice(const scoped_refptr<device::UsbDevice>& device) const;
+
const std::vector<device::UsbDeviceFilter>& filters() const {
return filters_;
}

Powered by Google App Engine
This is Rietveld 408576698