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

Side by Side Diff: device/serial/data_stream_serialization.mojom

Issue 2410743002: Remove the mojo serial interfaces and related infrastructure. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « device/serial/data_stream.mojom ('k') | device/serial/serial.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module device.serial;
6
7 import "data_stream.mojom";
8
9 // A serialized form of a DataSender.
10 struct SerializedDataSender {
11 // The control channel to the DataSink to which this DataSender sends data.
12 DataSink sink;
13
14 // The error to report for sends in progress when a fatal error occurs.
15 int32 fatal_error_value;
16 };
17
18 // A pending receive error.
19 struct PendingReceiveError {
20 // The value of the error.
21 int32 error;
22
23 // The location of the error.
24 uint32 offset;
25 };
26
27 // A serialized form of a DataReceiver.
28 struct SerializedDataReceiver {
29 // The control channel to the DataSource from which this DataReceiver receives
30 // data.
31 DataSource source;
32 // DataSourceClient&
33 handle<message_pipe> client;
34
35 // The error to report for a receive in progress when a fatal error occurs.
36 int32 fatal_error_value;
37
38 // The number of bytes this DataReceiver has received from the DataSource.
39 uint32 bytes_received;
40
41 // Whether a Resume() message needs to be sent to the DataSource for it to
42 // resume sending data.
43 bool paused;
44
45 // The pending receive error if there is one.
46 PendingReceiveError? pending_error;
47
48 array<array<uint8>> pending_data;
49 };
OLDNEW
« no previous file with comments | « device/serial/data_stream.mojom ('k') | device/serial/serial.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698