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

Unified Diff: device/serial/data_stream.mojom

Issue 571333002: Add serialization support to the JS DataSender and DataReceiver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stash-service
Patch Set: Created 6 years, 3 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.mojom
diff --git a/device/serial/data_stream.mojom b/device/serial/data_stream.mojom
index 689b38148411ede1b7ca63c39c3a2f47a841027b..6e831dd9590491b35844c1f0c40296cc67019e02 100644
--- a/device/serial/data_stream.mojom
+++ b/device/serial/data_stream.mojom
@@ -43,4 +43,20 @@ interface DataSinkClient {
ReportBytesSentAndError(uint32 bytes_sent, int32 error) => (uint32 bytes_to_flush);
};
+struct SerializedDataSender {
raymes 2014/09/17 02:05:04 As noted I think it would be good to move these to
Sam McNally 2014/09/17 08:07:14 Done.
+ handle<message_pipe> sink;
+ handle<data_pipe_producer> data_pipe;
+ int32 fatal_error_value;
+ bool shut_down;
+};
+
+struct SerializedDataReceiver {
+ handle<message_pipe> source;
+ handle<data_pipe_consumer> data_pipe;
+ int32 fatal_error_value;
+ uint32 bytes_received;
+ bool paused;
+ bool shut_down;
+};
+
}

Powered by Google App Engine
This is Rietveld 408576698