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

Unified Diff: device/usb/usb_device.h

Issue 826283002: Add support for sending a USB SET_CONFIGURATION request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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.h
diff --git a/device/usb/usb_device.h b/device/usb/usb_device.h
index 8b8ec6232134ba9f3b184c42214197222ebea142..cfea8aee7fa08aba24dbd632e44326a6e930bff5 100644
--- a/device/usb/usb_device.h
+++ b/device/usb/usb_device.h
@@ -51,9 +51,10 @@ class UsbDevice : public base::RefCountedThreadSafe<UsbDevice> {
// Blocking method. Must be called on FILE thread.
virtual bool Close(scoped_refptr<UsbDeviceHandle> handle) = 0;
- // Gets the UsbConfigDescriptor for the active device configuration.
+ // Gets the UsbConfigDescriptor for the active device configuration or nullptr
+ // if the device is unconfigured.
// Blocking method. Must be called on FILE thread.
- virtual const UsbConfigDescriptor& GetConfiguration() = 0;
+ virtual const UsbConfigDescriptor* GetConfiguration() = 0;
// Gets the manufacturer string of the device, or returns false.
// Blocking method. Must be called on FILE thread.

Powered by Google App Engine
This is Rietveld 408576698