Index: device/usb/usb_device.h |
diff --git a/device/usb/usb_device.h b/device/usb/usb_device.h |
index 92d0e295532be355248f85fcc45fe8ae2b7be5ba..9822a38813fa6ece5cb00c071d8fa8cd4d3d75f8 100644 |
--- a/device/usb/usb_device.h |
+++ b/device/usb/usb_device.h |
@@ -7,7 +7,6 @@ |
#include <stdint.h> |
-#include <string> |
#include <vector> |
#include "base/callback.h" |
@@ -60,6 +59,10 @@ |
// Creates a UsbDeviceHandle for further manipulation. |
virtual void Open(const OpenCallback& callback) = 0; |
+ // Explicitly closes a device handle. This method will be automatically called |
+ // by the destructor of a UsbDeviceHandle as well. |
+ virtual bool Close(scoped_refptr<UsbDeviceHandle> handle) = 0; |
+ |
// Gets the UsbConfigDescriptor for the active device configuration or nullptr |
// if the device is unconfigured. |
virtual const UsbConfigDescriptor* GetActiveConfiguration() = 0; |