Chromium Code Reviews| Index: device/usb/usb_device.h |
| diff --git a/device/usb/usb_device.h b/device/usb/usb_device.h |
| index 53087c8c79ddc5e7fb16f1cf1362824a1f9b513a..c2cad87db26db8cf8e2c0b61d5ecb54b8656fa6b 100644 |
| --- a/device/usb/usb_device.h |
| +++ b/device/usb/usb_device.h |
| @@ -5,6 +5,8 @@ |
| #ifndef DEVICE_USB_USB_DEVICE_H_ |
| #define DEVICE_USB_USB_DEVICE_H_ |
| +#include <vector> |
| + |
| #include "base/basictypes.h" |
| #include "base/callback.h" |
| #include "base/memory/ref_counted.h" |
| @@ -52,7 +54,10 @@ class UsbDevice : public base::RefCountedThreadSafe<UsbDevice> { |
| // Gets the UsbConfigDescriptor for the active device configuration or nullptr |
| // if the device is unconfigured. |
| - virtual const UsbConfigDescriptor* GetConfiguration() = 0; |
| + virtual const UsbConfigDescriptor* GetCurrentConfiguration() = 0; |
|
Reilly Grant (use Gerrit)
2015/07/31 23:36:12
GetCurrentConfiguration -> GetActiveConfiguration
juncai
2015/08/03 17:46:01
Done.
|
| + |
| + // Gets all the UsbConfigDescriptor for the device configuration. |
| + virtual const std::vector<UsbConfigDescriptor>& configurations() const = 0; |
|
Reilly Grant (use Gerrit)
2015/07/31 23:36:12
I'd rather this was not a virtual function. You ca
juncai
2015/08/03 17:46:01
Done.
|
| protected: |
| UsbDevice(uint16 vendor_id, |