OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 module device.serial; |
| 6 |
5 import "data_stream.mojom"; | 7 import "data_stream.mojom"; |
6 | 8 |
7 module device.serial { | |
8 | |
9 // A serialized form of a DataSender. | 9 // A serialized form of a DataSender. |
10 struct SerializedDataSender { | 10 struct SerializedDataSender { |
11 // The control channel to the DataSink to which this DataSender sends data. | 11 // The control channel to the DataSink to which this DataSender sends data. |
12 DataSink sink; | 12 DataSink sink; |
13 | 13 |
14 // The error to report for sends in progress when a fatal error occurs. | 14 // The error to report for sends in progress when a fatal error occurs. |
15 int32 fatal_error_value; | 15 int32 fatal_error_value; |
16 | 16 |
17 // The size of the send buffer. | 17 // The size of the send buffer. |
18 uint32 buffer_size; | 18 uint32 buffer_size; |
(...skipping 22 matching lines...) Expand all Loading... |
41 | 41 |
42 // Whether a Resume() message needs to be sent to the DataSource for it to | 42 // Whether a Resume() message needs to be sent to the DataSource for it to |
43 // resume sending data. | 43 // resume sending data. |
44 bool paused; | 44 bool paused; |
45 | 45 |
46 // The pending receive error if there is one. | 46 // The pending receive error if there is one. |
47 PendingReceiveError? pending_error; | 47 PendingReceiveError? pending_error; |
48 | 48 |
49 array<array<uint8>> pending_data; | 49 array<array<uint8>> pending_data; |
50 }; | 50 }; |
51 | |
52 } | |
OLD | NEW |