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 #ifndef CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ |
6 #define CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ | 6 #define CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 uint8_t alternate_setting, | 50 uint8_t alternate_setting, |
51 blink::WebUSBDeviceSetInterfaceAlternateSettingCallbacks* | 51 blink::WebUSBDeviceSetInterfaceAlternateSettingCallbacks* |
52 callbacks) override; | 52 callbacks) override; |
53 void clearHalt(uint8_t endpoint_number, | 53 void clearHalt(uint8_t endpoint_number, |
54 blink::WebUSBDeviceClearHaltCallbacks* callbacks) override; | 54 blink::WebUSBDeviceClearHaltCallbacks* callbacks) override; |
55 void controlTransfer( | 55 void controlTransfer( |
56 const blink::WebUSBDevice::ControlTransferParameters& parameters, | 56 const blink::WebUSBDevice::ControlTransferParameters& parameters, |
57 uint8_t* data, | 57 uint8_t* data, |
58 size_t data_size, | 58 size_t data_size, |
59 unsigned int timeout, | 59 unsigned int timeout, |
60 blink::WebUSBDeviceControlTransferCallbacks* callbacks) override; | 60 blink::WebUSBDeviceTransferCallbacks* callbacks) override; |
61 void transfer(blink::WebUSBDevice::TransferDirection direction, | 61 void transfer(blink::WebUSBDevice::TransferDirection direction, |
62 uint8_t endpoint_number, | 62 uint8_t endpoint_number, |
63 uint8_t* data, | 63 uint8_t* data, |
64 size_t data_size, | 64 size_t data_size, |
65 unsigned int timeout, | 65 unsigned int timeout, |
66 blink::WebUSBDeviceBulkTransferCallbacks* callbacks) override; | 66 blink::WebUSBDeviceTransferCallbacks* callbacks) override; |
| 67 void isochronousTransfer( |
| 68 blink::WebUSBDevice::TransferDirection direction, |
| 69 uint8_t endpoint_number, |
| 70 uint8_t* data, |
| 71 size_t data_size, |
| 72 blink::WebVector<uint32_t> packet_lengths, |
| 73 unsigned int timeout, |
| 74 blink::WebUSBDeviceTransferCallbacks* callbacks) override; |
67 void reset(blink::WebUSBDeviceResetCallbacks* callbacks) override; | 75 void reset(blink::WebUSBDeviceResetCallbacks* callbacks) override; |
68 | 76 |
69 device::usb::DevicePtr device_; | 77 device::usb::DevicePtr device_; |
70 blink::WebUSBDeviceInfo device_info_; | 78 blink::WebUSBDeviceInfo device_info_; |
71 | 79 |
72 base::WeakPtrFactory<WebUSBDeviceImpl> weak_factory_; | 80 base::WeakPtrFactory<WebUSBDeviceImpl> weak_factory_; |
73 | 81 |
74 DISALLOW_COPY_AND_ASSIGN(WebUSBDeviceImpl); | 82 DISALLOW_COPY_AND_ASSIGN(WebUSBDeviceImpl); |
75 }; | 83 }; |
76 | 84 |
77 } // namespace content | 85 } // namespace content |
78 | 86 |
79 #endif // CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ | 87 #endif // CONTENT_RENDERER_USB_WEB_USB_DEVICE_IMPL_H_ |
OLD | NEW |