Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: content/renderer/usb/web_usb_device_impl.h

Issue 1635903004: Add support for isochronous transfers in WebUSB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb_isoc
Patch Set: Fix tense. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/usb/web_usb_device_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/usb/web_usb_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698