DescriptionDestroy DeviceImpl when the underlying UsbDevice is disconnected.
A open message pipe to a DeviceImpl represents a physical resource, the
USB device connected to the host. Instead of continuing to support
handling messages sent on this pipe after the device is disconnected it
makes more sense to simply close it.
For efficiency and because DeviceImpls can outlive the DeviceManagerImpl
that created them a new observer interface is added to UsbDevice so that
the DeviceImpl can listed for the removal of the physical device all on
its own.
BUG=492204
Committed: https://crrev.com/1474f931e1e45778c3287bd4f7a20620eafb8ab9
Cr-Commit-Position: refs/heads/master@{#375329}
Patch Set 1 #Patch Set 2 : Fix upstream. #Patch Set 3 : Revert change to web_usb_device_impl.cc. #
Messages
Total messages: 15 (6 generated)
|