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

Unified Diff: device/serial/data_stream_serialization.mojom

Issue 646063003: Change data pipe wrappers used by SerialConnection to use message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 2 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: device/serial/data_stream_serialization.mojom
diff --git a/device/serial/data_stream_serialization.mojom b/device/serial/data_stream_serialization.mojom
index 381347b5da065317ddfa1db9d7a982792b81eec2..b5b8850a93b4df88f42f1c73486d8e185f8b0cb4 100644
--- a/device/serial/data_stream_serialization.mojom
+++ b/device/serial/data_stream_serialization.mojom
@@ -11,11 +11,11 @@ struct SerializedDataSender {
// The control channel to the DataSink to which this DataSender sends data.
DataSink sink;
- // The data pipe this DataSender uses to send data to the DataSink.
- handle<data_pipe_producer> data_pipe;
-
// The error to report for sends in progress when a fatal error occurs.
int32 fatal_error_value;
+
+ // The size of the send buffer.
+ uint32 buffer_size;
};
// A pending receive error.
@@ -33,9 +33,6 @@ struct SerializedDataReceiver {
// data.
DataSource source;
- // The data pipe this DataReceiver uses to receive data from the DataSource.
- handle<data_pipe_consumer> data_pipe;
-
// The error to report for a receive in progress when a fatal error occurs.
int32 fatal_error_value;
@@ -48,6 +45,8 @@ struct SerializedDataReceiver {
// The pending receive error if there is one.
PendingReceiveError? pending_error;
+
+ array<array<uint8>> pending_data;
};
}

Powered by Google App Engine
This is Rietveld 408576698