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

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

Issue 1618393004: 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: Document use of ErrorWithArguments. 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 IsochronousTransfer(UsbEndpointDirection direction, 74 void IsochronousTransferIn(
75 uint8_t endpoint_number, 75 uint8_t endpoint,
76 scoped_refptr<net::IOBuffer> buffer, 76 const std::vector<uint32_t>& packet_lengths,
77 size_t length, 77 unsigned int timeout,
78 unsigned int packets, 78 const IsochronousTransferCallback& callback) override;
79 unsigned int packet_length, 79
80 unsigned int timeout, 80 void IsochronousTransferOut(
81 const TransferCallback& callback) override; 81 uint8_t endpoint,
82 scoped_refptr<net::IOBuffer> buffer,
83 const std::vector<uint32_t>& packet_lengths,
84 unsigned int timeout,
85 const IsochronousTransferCallback& callback) override;
82 86
83 void GenericTransfer(UsbEndpointDirection direction, 87 void GenericTransfer(UsbEndpointDirection direction,
84 uint8_t endpoint_number, 88 uint8_t endpoint_number,
85 scoped_refptr<net::IOBuffer> buffer, 89 scoped_refptr<net::IOBuffer> buffer,
86 size_t length, 90 size_t length,
87 unsigned int timeout, 91 unsigned int timeout,
88 const TransferCallback& callback) override; 92 const TransferCallback& callback) override;
89 bool FindInterfaceByEndpoint(uint8_t endpoint_address, 93 bool FindInterfaceByEndpoint(uint8_t endpoint_address,
90 uint8_t* interface_number) override; 94 uint8_t* interface_number) override;
91 95
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 TransferRecipient recipient, 146 TransferRecipient recipient,
143 uint8_t request, 147 uint8_t request,
144 uint16_t value, 148 uint16_t value,
145 uint16_t index, 149 uint16_t index,
146 scoped_refptr<net::IOBuffer> buffer, 150 scoped_refptr<net::IOBuffer> buffer,
147 size_t length, 151 size_t length,
148 unsigned int timeout, 152 unsigned int timeout,
149 scoped_refptr<base::TaskRunner> callback_task_runner, 153 scoped_refptr<base::TaskRunner> callback_task_runner,
150 const TransferCallback& callback); 154 const TransferCallback& callback);
151 155
152 void IsochronousTransferInternal( 156 void IsochronousTransferInInternal(
157 uint8_t endpoint_address,
158 const std::vector<uint32_t>& packet_lengths,
159 unsigned int timeout,
160 scoped_refptr<base::TaskRunner> callback_task_runner,
161 const IsochronousTransferCallback& callback);
162
163 void IsochronousTransferOutInternal(
153 uint8_t endpoint_address, 164 uint8_t endpoint_address,
154 scoped_refptr<net::IOBuffer> buffer, 165 scoped_refptr<net::IOBuffer> buffer,
155 size_t length, 166 const std::vector<uint32_t>& packet_lengths,
156 unsigned int packets,
157 unsigned int packet_length,
158 unsigned int timeout, 167 unsigned int timeout,
159 scoped_refptr<base::TaskRunner> callback_task_runner, 168 scoped_refptr<base::TaskRunner> callback_task_runner,
160 const TransferCallback& callback); 169 const IsochronousTransferCallback& callback);
161 170
162 void GenericTransferInternal( 171 void GenericTransferInternal(
163 uint8_t endpoint_address, 172 uint8_t endpoint_address,
164 scoped_refptr<net::IOBuffer> buffer, 173 scoped_refptr<net::IOBuffer> buffer,
165 size_t length, 174 size_t length,
166 unsigned int timeout, 175 unsigned int timeout,
167 scoped_refptr<base::TaskRunner> callback_task_runner, 176 scoped_refptr<base::TaskRunner> callback_task_runner,
168 const TransferCallback& callback); 177 const TransferCallback& callback);
169 178
170 // Submits a transfer and starts tracking it. Retains the buffer and copies 179 // Submits a transfer and starts tracking it. Retains the buffer and copies
(...skipping 30 matching lines...) Expand all
201 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 210 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
202 211
203 base::ThreadChecker thread_checker_; 212 base::ThreadChecker thread_checker_;
204 213
205 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl); 214 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl);
206 }; 215 };
207 216
208 } // namespace device 217 } // namespace device
209 218
210 #endif // DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ 219 #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