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

Unified Diff: third_party/WebKit/public/platform/modules/webusb/WebUSBTransferInfo.h

Issue 1635903004: Add support for isochronous transfers in WebUSB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb_isoc
Patch Set: Fix tense. Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/platform/modules/webusb/WebUSBDevice.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c31f00ceda1103df9058ff3258af2471f30e2320 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 is
+ // 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 is 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 is 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
« no previous file with comments | « third_party/WebKit/public/platform/modules/webusb/WebUSBDevice.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698