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

Unified Diff: device/usb/usb_device_impl.h

Issue 1253163005: Try to read BOS and WebUSB descriptors from USB devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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: device/usb/usb_device_impl.h
diff --git a/device/usb/usb_device_impl.h b/device/usb/usb_device_impl.h
index 3e9c8d0cc435455626918372c3cd96b9a9e23af4..d2d51e2251df2daa28058d0a3b8d3f601986be4f 100644
--- a/device/usb/usb_device_impl.h
+++ b/device/usb/usb_device_impl.h
@@ -12,6 +12,7 @@
#include "base/threading/thread_checker.h"
#include "device/usb/usb_descriptors.h"
#include "device/usb/usb_device.h"
+#include "device/usb/webusb_descriptors.h"
struct libusb_device;
struct libusb_config_descriptor;
@@ -56,6 +57,10 @@ class UsbDeviceImpl : public UsbDevice {
serial_number_ = value;
}
void set_device_path(const std::string& value) { device_path_ = value; }
+ void set_webusb_allowed_origins(scoped_ptr<WebUsbDescriptorSet> descriptors) {
+ webusb_allowed_origins_ = descriptors.Pass();
+ }
+ void set_webusb_landing_page(const GURL& url) { webusb_landing_page_ = url; }
PlatformUsbDevice platform_device() const { return platform_device_; }

Powered by Google App Engine
This is Rietveld 408576698