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

Unified Diff: device/usb/usb_device_handle_impl.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_handle_impl.h
diff --git a/device/usb/usb_device_handle_impl.h b/device/usb/usb_device_handle_impl.h
index ce70d811dbf8fe19aecef841f24e81c004945052..4e619d250191b08cdcf850e156eace24ff657e0d 100644
--- a/device/usb/usb_device_handle_impl.h
+++ b/device/usb/usb_device_handle_impl.h
@@ -37,6 +37,7 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
public:
scoped_refptr<UsbDevice> GetDevice() const override;
void Close() override;
+ bool SetConfiguration(int configuration_value) override;
bool ClaimInterface(int interface_number) override;
bool ReleaseInterface(int interface_number) override;
bool SetInterfaceAlternateSetting(int interface_number,
@@ -86,8 +87,7 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
// This constructor is called by UsbDevice.
UsbDeviceHandleImpl(scoped_refptr<UsbContext> context,
UsbDeviceImpl* device,
- PlatformUsbDeviceHandle handle,
- const UsbConfigDescriptor& config);
+ PlatformUsbDeviceHandle handle);
~UsbDeviceHandleImpl() override;
@@ -130,8 +130,6 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
PlatformUsbDeviceHandle handle_;
- const UsbConfigDescriptor& config_;
-
std::vector<uint16> languages_;
std::map<uint8, base::string16> strings_;

Powered by Google App Engine
This is Rietveld 408576698