OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/usb/web_usb_device_impl.h" | 5 #include "content/renderer/usb/web_usb_device_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "content/renderer/usb/type_converters.h" | 10 #include "content/renderer/usb/type_converters.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 size_t data_size, | 99 size_t data_size, |
100 unsigned int timeout, | 100 unsigned int timeout, |
101 blink::WebUSBDeviceBulkTransferCallbacks* callbacks) { | 101 blink::WebUSBDeviceBulkTransferCallbacks* callbacks) { |
102 RejectAsNotImplemented(callbacks); | 102 RejectAsNotImplemented(callbacks); |
103 } | 103 } |
104 | 104 |
105 void WebUSBDeviceImpl::reset(blink::WebUSBDeviceResetCallbacks* callbacks) { | 105 void WebUSBDeviceImpl::reset(blink::WebUSBDeviceResetCallbacks* callbacks) { |
106 RejectAsNotImplemented(callbacks); | 106 RejectAsNotImplemented(callbacks); |
107 } | 107 } |
108 | 108 |
| 109 void WebUSBDeviceImpl::OnConnectionError() { |
| 110 device_.reset(); |
| 111 } |
| 112 |
109 } // namespace content | 113 } // namespace content |
OLD | NEW |