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

Unified Diff: device/usb/usb_device_handle.h

Issue 601073002: Move string descriptor getters from UsbDeviceHandle to UsbDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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_handle.h
diff --git a/device/usb/usb_device_handle.h b/device/usb/usb_device_handle.h
index d0b748445b83c0d15061535944b64a60e31efea7..4c00f693e100b9821a07356fef1070926707fc92 100644
--- a/device/usb/usb_device_handle.h
+++ b/device/usb/usb_device_handle.h
@@ -56,9 +56,7 @@ class UsbDeviceHandle : public base::RefCountedThreadSafe<UsbDeviceHandle> {
virtual bool SetInterfaceAlternateSetting(int interface_number,
int alternate_setting) = 0;
virtual bool ResetDevice() = 0;
- virtual bool GetManufacturer(base::string16* manufacturer) = 0;
- virtual bool GetProduct(base::string16* product) = 0;
- virtual bool GetSerial(base::string16* serial) = 0;
+ virtual bool GetStringDescriptor(uint8 string_id, base::string16* string) = 0;
scheib 2014/09/25 17:36:04 Why not an enum for string_id? Oh (after research)
Reilly Grant (use Gerrit) 2014/09/25 17:58:44 It'll be gone completely from this interface when
// Async IO. Can be called on any thread.
virtual void ControlTransfer(UsbEndpointDirection direction,

Powered by Google App Engine
This is Rietveld 408576698