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

Side by Side Diff: device/usb/usb_device_handle_impl.h

Issue 1658953003: Revert of Update device/usb and its Mojo interface for variable size ISO packets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « device/usb/usb_device_handle.h ('k') | device/usb/usb_device_handle_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ 5 #ifndef DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_
6 #define DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ 6 #define DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 TransferRequestType request_type, 64 TransferRequestType request_type,
65 TransferRecipient recipient, 65 TransferRecipient recipient,
66 uint8_t request, 66 uint8_t request,
67 uint16_t value, 67 uint16_t value,
68 uint16_t index, 68 uint16_t index,
69 scoped_refptr<net::IOBuffer> buffer, 69 scoped_refptr<net::IOBuffer> buffer,
70 size_t length, 70 size_t length,
71 unsigned int timeout, 71 unsigned int timeout,
72 const TransferCallback& callback) override; 72 const TransferCallback& callback) override;
73 73
74 void IsochronousTransferIn( 74 void IsochronousTransfer(UsbEndpointDirection direction,
75 uint8_t endpoint, 75 uint8_t endpoint_number,
76 const std::vector<uint32_t>& packet_lengths, 76 scoped_refptr<net::IOBuffer> buffer,
77 unsigned int timeout, 77 size_t length,
78 const IsochronousTransferCallback& callback) override; 78 unsigned int packets,
79 79 unsigned int packet_length,
80 void IsochronousTransferOut( 80 unsigned int timeout,
81 uint8_t endpoint, 81 const TransferCallback& callback) override;
82 scoped_refptr<net::IOBuffer> buffer,
83 const std::vector<uint32_t>& packet_lengths,
84 unsigned int timeout,
85 const IsochronousTransferCallback& callback) override;
86 82
87 void GenericTransfer(UsbEndpointDirection direction, 83 void GenericTransfer(UsbEndpointDirection direction,
88 uint8_t endpoint_number, 84 uint8_t endpoint_number,
89 scoped_refptr<net::IOBuffer> buffer, 85 scoped_refptr<net::IOBuffer> buffer,
90 size_t length, 86 size_t length,
91 unsigned int timeout, 87 unsigned int timeout,
92 const TransferCallback& callback) override; 88 const TransferCallback& callback) override;
93 bool FindInterfaceByEndpoint(uint8_t endpoint_address, 89 bool FindInterfaceByEndpoint(uint8_t endpoint_address,
94 uint8_t* interface_number) override; 90 uint8_t* interface_number) override;
95 91
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 TransferRecipient recipient, 142 TransferRecipient recipient,
147 uint8_t request, 143 uint8_t request,
148 uint16_t value, 144 uint16_t value,
149 uint16_t index, 145 uint16_t index,
150 scoped_refptr<net::IOBuffer> buffer, 146 scoped_refptr<net::IOBuffer> buffer,
151 size_t length, 147 size_t length,
152 unsigned int timeout, 148 unsigned int timeout,
153 scoped_refptr<base::TaskRunner> callback_task_runner, 149 scoped_refptr<base::TaskRunner> callback_task_runner,
154 const TransferCallback& callback); 150 const TransferCallback& callback);
155 151
156 void IsochronousTransferInInternal( 152 void IsochronousTransferInternal(
157 uint8_t endpoint_address, 153 uint8_t endpoint_address,
158 const std::vector<uint32_t>& packet_lengths, 154 scoped_refptr<net::IOBuffer> buffer,
155 size_t length,
156 unsigned int packets,
157 unsigned int packet_length,
159 unsigned int timeout, 158 unsigned int timeout,
160 scoped_refptr<base::TaskRunner> callback_task_runner, 159 scoped_refptr<base::TaskRunner> callback_task_runner,
161 const IsochronousTransferCallback& callback); 160 const TransferCallback& callback);
162
163 void IsochronousTransferOutInternal(
164 uint8_t endpoint_address,
165 scoped_refptr<net::IOBuffer> buffer,
166 const std::vector<uint32_t>& packet_lengths,
167 unsigned int timeout,
168 scoped_refptr<base::TaskRunner> callback_task_runner,
169 const IsochronousTransferCallback& callback);
170 161
171 void GenericTransferInternal( 162 void GenericTransferInternal(
172 uint8_t endpoint_address, 163 uint8_t endpoint_address,
173 scoped_refptr<net::IOBuffer> buffer, 164 scoped_refptr<net::IOBuffer> buffer,
174 size_t length, 165 size_t length,
175 unsigned int timeout, 166 unsigned int timeout,
176 scoped_refptr<base::TaskRunner> callback_task_runner, 167 scoped_refptr<base::TaskRunner> callback_task_runner,
177 const TransferCallback& callback); 168 const TransferCallback& callback);
178 169
179 // Submits a transfer and starts tracking it. Retains the buffer and copies 170 // Submits a transfer and starts tracking it. Retains the buffer and copies
(...skipping 30 matching lines...) Expand all
210 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 201 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
211 202
212 base::ThreadChecker thread_checker_; 203 base::ThreadChecker thread_checker_;
213 204
214 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl); 205 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl);
215 }; 206 };
216 207
217 } // namespace device 208 } // namespace device
218 209
219 #endif // DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ 210 #endif // DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_
OLDNEW
« no previous file with comments | « device/usb/usb_device_handle.h ('k') | device/usb/usb_device_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698