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

Unified Diff: components/usb_service/usb_device_handle_impl.h

Issue 463493006: Add chrome.usbPrivate API for use by USB device WEBUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change "Google Inc." to "Test Manufacturer". Created 6 years, 4 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
« no previous file with comments | « components/usb_service/usb_device_handle.h ('k') | components/usb_service/usb_device_handle_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/usb_service/usb_device_handle_impl.h
diff --git a/components/usb_service/usb_device_handle_impl.h b/components/usb_service/usb_device_handle_impl.h
index 0af9f3a50536cd881b115fc3d543d921939b10af..7d113377ee1ade3a358ea334dfe397537be8200b 100644
--- a/components/usb_service/usb_device_handle_impl.h
+++ b/components/usb_service/usb_device_handle_impl.h
@@ -45,6 +45,8 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
const int interface_number,
const int alternate_setting) OVERRIDE;
virtual bool ResetDevice() OVERRIDE;
+ virtual bool GetManufacturer(base::string16* manufacturer) OVERRIDE;
+ virtual bool GetProduct(base::string16* product) OVERRIDE;
virtual bool GetSerial(base::string16* serial) OVERRIDE;
virtual void ControlTransfer(const UsbEndpointDirection direction,
const TransferRequestType request_type,
@@ -123,6 +125,9 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
// the in-flight transfer set.
void TransferComplete(PlatformUsbTransferHandle transfer);
+ bool GetSupportedLanguages();
+ bool GetStringDescriptor(uint8 string_id, base::string16* string);
+
// Informs the object to drop internal references.
void InternalClose();
@@ -132,6 +137,9 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
scoped_refptr<UsbConfigDescriptor> interfaces_;
+ std::vector<uint16> languages_;
+ std::map<uint8, base::string16> strings_;
+
typedef std::map<int, scoped_refptr<InterfaceClaimer> > ClaimedInterfaceMap;
ClaimedInterfaceMap claimed_interfaces_;
« no previous file with comments | « components/usb_service/usb_device_handle.h ('k') | components/usb_service/usb_device_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698