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

Unified Diff: device/usb/usb_device_handle_impl.h

Issue 1847183002: Use interface associations to check function permissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nit and fixed Windows build. Created 4 years, 9 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 | « device/usb/usb_device_handle.h ('k') | device/usb/usb_device_handle_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0cb2311e6febb2d771bb97916e00af9c2d67cb54..ed722bbdee941309c1f2ba82e4be909099272f94 100644
--- a/device/usb/usb_device_handle_impl.h
+++ b/device/usb/usb_device_handle_impl.h
@@ -32,8 +32,8 @@ class IOBuffer;
namespace device {
struct EndpointMapValue {
- int interface_number;
- UsbTransferType transfer_type;
+ const UsbInterfaceDescriptor* interface;
+ const UsbEndpointDescriptor* endpoint;
};
class UsbContext;
@@ -91,8 +91,8 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
size_t length,
unsigned int timeout,
const TransferCallback& callback) override;
- bool FindInterfaceByEndpoint(uint8_t endpoint_address,
- uint8_t* interface_number) override;
+ const UsbInterfaceDescriptor* FindInterfaceByEndpoint(
+ uint8_t endpoint_address) override;
protected:
friend class UsbDeviceImpl;
« no previous file with comments | « device/usb/usb_device_handle.h ('k') | device/usb/usb_device_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698