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

Unified Diff: device/usb/usb_device.h

Issue 1265833005: Get all the UsbConfigDescriptor for the device configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated chromeos related code again Created 5 years, 5 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 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,

Powered by Google App Engine
This is Rietveld 408576698