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

Unified Diff: device/usb/usb_device_handle.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/public/interfaces/device.mojom ('k') | device/usb/usb_device_handle_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_handle.h
diff --git a/device/usb/usb_device_handle.h b/device/usb/usb_device_handle.h
index 31f0ec5f3f122640f861f32d5068a0628f55718f..722296400029da488d649c93c97e6507c56cf6e5 100644
--- a/device/usb/usb_device_handle.h
+++ b/device/usb/usb_device_handle.h
@@ -111,10 +111,10 @@ class UsbDeviceHandle : public base::RefCountedThreadSafe<UsbDeviceHandle> {
unsigned int timeout,
const TransferCallback& callback) = 0;
- // Gets the interface containing |endpoint_address|. Returns false if no
+ // Gets the interface containing |endpoint_address|. Returns nullptr if no
// claimed interface contains that endpoint.
- virtual bool FindInterfaceByEndpoint(uint8_t endpoint_address,
- uint8_t* interface_number) = 0;
+ virtual const UsbInterfaceDescriptor* FindInterfaceByEndpoint(
+ uint8_t endpoint_address) = 0;
protected:
friend class base::RefCountedThreadSafe<UsbDeviceHandle>;
« no previous file with comments | « device/usb/public/interfaces/device.mojom ('k') | device/usb/usb_device_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698