Index: content/renderer/usb/web_usb_device_impl.h |
diff --git a/content/renderer/usb/web_usb_device_impl.h b/content/renderer/usb/web_usb_device_impl.h |
index 3f6eab52b1ef55a603a2abc0a82bf71c357b45fc..7f01d8d758a2d89fedf3801c8272bdc841ebea9e 100644 |
--- a/content/renderer/usb/web_usb_device_impl.h |
+++ b/content/renderer/usb/web_usb_device_impl.h |
@@ -14,6 +14,7 @@ |
#include "third_party/WebKit/public/platform/modules/webusb/WebUSBDevice.h" |
#include "third_party/WebKit/public/platform/modules/webusb/WebUSBDeviceInfo.h" |
#include "third_party/WebKit/public/platform/modules/webusb/WebUSBError.h" |
+#include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h" |
namespace mojo { |
class Shell; |
@@ -21,7 +22,7 @@ |
namespace content { |
-class WebUSBDeviceImpl : public blink::WebUSBDevice { |
+class WebUSBDeviceImpl : public blink::WebUSBDevice, public mojo::ErrorHandler { |
public: |
WebUSBDeviceImpl(device::usb::DeviceManagerPtr device_manager, |
const blink::WebUSBDeviceInfo& device_info); |
@@ -61,6 +62,9 @@ |
blink::WebUSBDeviceBulkTransferCallbacks* callbacks) override; |
void reset(blink::WebUSBDeviceResetCallbacks* callbacks) override; |
+ // mojo::ErrorHandler implementation: |
+ void OnConnectionError() override; |
+ |
device::usb::DeviceManagerPtr device_manager_; |
blink::WebUSBDeviceInfo device_info_; |