| 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 import "data_stream.mojom"; | 5 import "data_stream.mojom" |
| 6 | 6 |
| 7 module device.serial { | 7 module device.serial { |
| 8 | 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; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 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 | 51 |
| 52 } | 52 } |
| OLD | NEW |