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

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: Rebased. 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
« no previous file with comments | « device/usb/usb_device.cc ('k') | device/usb/usb_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_impl.h
diff --git a/device/usb/usb_device_impl.h b/device/usb/usb_device_impl.h
index 404838f6a65c4bc307a2d1a61c73babfb7b169d1..bb6654bb07527fb8fca307153aae610e0532eae0 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_; }
« no previous file with comments | « device/usb/usb_device.cc ('k') | device/usb/usb_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698