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 struct WebUSBTransferInfo { | |
13 enum Status { | |
dcheng
2015/08/03 21:59:18
enum class here for consistency
Ken Rockot(use gerrit already)
2015/08/03 22:01:16
Oops! Done.
| |
14 StatusOk, | |
15 StatusStall, | |
16 StatusBabble, | |
17 }; | |
18 | |
19 WebUSBTransferInfo() | |
20 : status(StatusOk) | |
21 , bytesWritten(0) | |
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 written if this is an outbound transfer. | |
31 uint32_t bytesWritten; | |
32 }; | |
33 | |
34 } // namespace blink | |
35 | |
36 #endif // WebUSBTransferInfo_h | |
OLD | NEW |