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

Unified Diff: device/usb/usb_device_handle.h

Issue 1369643002: Add configuration and interface permission checks to DeviceImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add new method ot Android USB mocks. Created 5 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 0597378e1c399476d0f837d8c6caf4cbbf075ca3..23d2fd5c7b84e6582d9efd057cf60ece10504ce1 100644
--- a/device/usb/usb_device_handle.h
+++ b/device/usb/usb_device_handle.h
@@ -90,6 +90,11 @@ class UsbDeviceHandle : public base::RefCountedThreadSafe<UsbDeviceHandle> {
unsigned int timeout,
const TransferCallback& callback) = 0;
+ // Gets the interface containing |endpoint_address|. Returns false if no
+ // claimed interface contains that endpoint.
+ virtual bool FindInterfaceByEndpoint(uint8_t endpoint_address,
+ uint8_t* interface_number) = 0;
+
protected:
friend class base::RefCountedThreadSafe<UsbDeviceHandle>;

Powered by Google App Engine
This is Rietveld 408576698