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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBDevice.h

Issue 2234443002: Mojo C++ binding: make device/usb mojom targets use STD string/vector types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move the vector converter into a private header. Created 4 years, 4 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
Index: third_party/WebKit/Source/modules/webusb/USBDevice.h
diff --git a/third_party/WebKit/Source/modules/webusb/USBDevice.h b/third_party/WebKit/Source/modules/webusb/USBDevice.h
index 309caca9ec2f976e358cefa1f3641e132e2dbc82..2c427aa9c33bd2496816831304fcee872df343a3 100644
--- a/third_party/WebKit/Source/modules/webusb/USBDevice.h
+++ b/third_party/WebKit/Source/modules/webusb/USBDevice.h
@@ -101,13 +101,13 @@ private:
void asyncReleaseInterface(size_t interfaceIndex, ScriptPromiseResolver*, bool success);
void onInterfaceClaimedOrUnclaimed(bool claimed, size_t interfaceIndex);
void asyncSelectAlternateInterface(size_t interfaceIndex, size_t alternateIndex, ScriptPromiseResolver*, bool success);
- void asyncControlTransferIn(ScriptPromiseResolver*, device::usb::blink::TransferStatus, mojo::WTFArray<uint8_t>);
+ void asyncControlTransferIn(ScriptPromiseResolver*, device::usb::blink::TransferStatus, const Optional<Vector<uint8_t>>&);
void asyncControlTransferOut(unsigned, ScriptPromiseResolver*, device::usb::blink::TransferStatus);
void asyncClearHalt(ScriptPromiseResolver*, bool success);
- void asyncTransferIn(ScriptPromiseResolver*, device::usb::blink::TransferStatus, mojo::WTFArray<uint8_t>);
+ void asyncTransferIn(ScriptPromiseResolver*, device::usb::blink::TransferStatus, const Optional<Vector<uint8_t>>&);
void asyncTransferOut(unsigned, ScriptPromiseResolver*, device::usb::blink::TransferStatus);
- void asyncIsochronousTransferIn(ScriptPromiseResolver*, mojo::WTFArray<uint8_t>, mojo::WTFArray<device::usb::blink::IsochronousPacketPtr>);
- void asyncIsochronousTransferOut(ScriptPromiseResolver*, mojo::WTFArray<device::usb::blink::IsochronousPacketPtr>);
+ void asyncIsochronousTransferIn(ScriptPromiseResolver*, const Optional<Vector<uint8_t>>&, Vector<device::usb::blink::IsochronousPacketPtr>);
+ void asyncIsochronousTransferOut(ScriptPromiseResolver*, Vector<device::usb::blink::IsochronousPacketPtr>);
void asyncReset(ScriptPromiseResolver*, bool success);
void onConnectionError();

Powered by Google App Engine
This is Rietveld 408576698