OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WebUSBTransferInfo_h | |
6 #define WebUSBTransferInfo_h | |
7 | |
8 #include "public/platform/WebVector.h" | |
9 | |
10 namespace blink { | |
11 | |
12 // Information about a completed USB transfer. | |
13 struct WebUSBTransferInfo { | |
14 enum Status { | |
15 StatusOk, | |
16 StatusStalled, | |
17 StatusOverflow, | |
Reilly Grant (use Gerrit)
2015/07/23 23:24:08
Let's keep this consistent with the WebUSB API and
Ken Rockot(use gerrit already)
2015/07/28 22:30:38
Done. Also changed StatusStalled -> StatusStall
| |
18 }; | |
19 | |
20 WebUSBTransferInfo() | |
21 : status(StatusOk) | |
22 { | |
23 } | |
24 | |
25 Status status; | |
26 | |
27 // Data received, if this is an inbound transfer. | |
28 WebVector<uint8_t> data; | |
29 | |
30 // Number of bytes sent if this is an outbound transfer. | |
31 uint32_t bytesSent; | |
Reilly Grant (use Gerrit)
2015/07/23 23:24:08
bytesWritten to be consistent as well.
Ken Rockot(use gerrit already)
2015/07/28 22:30:38
Done.
| |
32 }; | |
33 | |
34 } // namespace blink | |
35 | |
36 #endif // WebUSBTransferInfo_h | |
OLD | NEW |