diff options
Diffstat (limited to 'device/usb/usb_descriptors.h')
-rw-r--r-- | device/usb/usb_descriptors.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/device/usb/usb_descriptors.h b/device/usb/usb_descriptors.h index adaa0ab..cd8490a 100644 --- a/device/usb/usb_descriptors.h +++ b/device/usb/usb_descriptors.h @@ -6,12 +6,19 @@ #define DEVICE_USB_USB_DESCRIPTORS_H_ #include <stdint.h> + +#include <map> #include <vector> +#include "base/callback_forward.h" +#include "base/memory/ref_counted.h" +#include "base/memory/scoped_ptr.h" #include "base/strings/string16.h" namespace device { +class UsbDeviceHandle; + // A Java counterpart will be generated for this enum. // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.device.usb enum UsbTransferType { @@ -83,6 +90,12 @@ struct UsbConfigDescriptor { bool ParseUsbStringDescriptor(const std::vector<uint8_t>& descriptor, base::string16* output); +void ReadUsbStringDescriptors( + scoped_refptr<UsbDeviceHandle> device_handle, + scoped_ptr<std::map<uint8_t, base::string16>> index_map, + const base::Callback<void(scoped_ptr<std::map<uint8_t, base::string16>>)>& + callback); + } // namespace device #endif // DEVICE_USB_USB_DESCRIPTORS_H_ |