Chromium Code Reviews| Index: public/platform/modules/webusb/WebUSBTransferInfo.h |
| diff --git a/public/platform/modules/webusb/WebUSBTransferInfo.h b/public/platform/modules/webusb/WebUSBTransferInfo.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6087496d368e692133821a4e0f292101b21039cc |
| --- /dev/null |
| +++ b/public/platform/modules/webusb/WebUSBTransferInfo.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WebUSBTransferInfo_h |
| +#define WebUSBTransferInfo_h |
| + |
| +#include "public/platform/WebVector.h" |
| + |
| +namespace blink { |
| + |
| +struct WebUSBTransferInfo { |
| + 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.
|
| + StatusOk, |
| + StatusStall, |
| + StatusBabble, |
| + }; |
| + |
| + WebUSBTransferInfo() |
| + : status(StatusOk) |
| + , bytesWritten(0) |
| + { |
| + } |
| + |
| + Status status; |
| + |
| + // Data received, if this is an inbound transfer. |
| + WebVector<uint8_t> data; |
| + |
| + // Number of bytes written if this is an outbound transfer. |
| + uint32_t bytesWritten; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebUSBTransferInfo_h |