Index: third_party/WebKit/public/platform/modules/webusb/WebUSBTransferInfo.h |
diff --git a/third_party/WebKit/public/platform/modules/webusb/WebUSBTransferInfo.h b/third_party/WebKit/public/platform/modules/webusb/WebUSBTransferInfo.h |
index a9fb88927c883682ca9308560172b5840e97e6c8..ff0adf4fc43f41bbfbe206df1a028e37de548ba1 100644 |
--- a/third_party/WebKit/public/platform/modules/webusb/WebUSBTransferInfo.h |
+++ b/third_party/WebKit/public/platform/modules/webusb/WebUSBTransferInfo.h |
@@ -17,18 +17,25 @@ struct WebUSBTransferInfo { |
}; |
WebUSBTransferInfo() |
- : status(Status::Ok) |
- , bytesWritten(0) |
{ |
} |
- Status status; |
+ // Individual packet statuses. This vector has only one element if this was |
Ken Rockot(use gerrit already)
2016/02/03 14:19:10
nit: why past tense "was"? it may have happened or
|
+ // not an isochronous transfer. |
+ WebVector<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; |
+ // Requested length of each packet if this was an inbound isochronous |
+ // transfer. |
+ WebVector<uint32_t> packetLength; |
+ |
+ // Number of bytes written if this is an outbound transfer. This vector has |
+ // only one element if this was not an isochronous transfer otherwise it is |
+ // the number of bytes transferred in each isochronous packet (inbound or |
+ // outbound). |
+ WebVector<uint32_t> bytesTransferred; |
}; |
} // namespace blink |