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

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: Rebased. Created 5 years, 11 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.h
diff --git a/device/usb/usb_device.h b/device/usb/usb_device.h
index e1a17c257e9dbd00ca9c44e4d7ad51e13cc3eaa2..adbd49546caf05df3936ee2f06db54d7b391f525 100644
--- a/device/usb/usb_device.h
+++ b/device/usb/usb_device.h
@@ -45,9 +45,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 false and an empty
// string. This is a blocking method and must be called on FILE thread.
« no previous file with comments | « chrome/browser/extensions/api/device_permissions_manager_unittest.cc ('k') | device/usb/usb_device_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698