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

Unified Diff: device/usb/usb_device_handle_usbfs.h

Issue 2274343002: Tell the kernel to discard USB requests when they time out. (Closed)
Patch Set: Created 4 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 | « no previous file | device/usb/usb_device_handle_usbfs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_handle_usbfs.h
diff --git a/device/usb/usb_device_handle_usbfs.h b/device/usb/usb_device_handle_usbfs.h
index 4cfc1851a3875a3f3b0abb381885e0c3bad3f943..47ae15526f048c1467e7899506f4448cb1497811 100644
--- a/device/usb/usb_device_handle_usbfs.h
+++ b/device/usb/usb_device_handle_usbfs.h
@@ -139,8 +139,10 @@ class UsbDeviceHandleUsbfs : public UsbDeviceHandle {
const UsbDeviceHandle::IsochronousTransferCallback& callback,
UsbTransferStatus status);
void SetUpTimeoutCallback(Transfer* transfer, unsigned int timeout);
-
- static void CancelTransfer(Transfer* transfer, UsbTransferStatus status);
+ std::unique_ptr<Transfer> RemoveFromTransferList(Transfer* transfer);
+ void CancelTransfer(Transfer* transfer, UsbTransferStatus status);
+ void DiscardUrbBlocking(Transfer* transfer);
+ void UrbDiscarded(Transfer* transfer);
scoped_refptr<UsbDevice> device_;
base::ScopedFD fd_;
« no previous file with comments | « no previous file | device/usb/usb_device_handle_usbfs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698