| 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 data pipe this DataSender uses to send data to the DataSink. | 14 // The data pipe this DataSender uses to send data to the DataSink. |
| 15 handle<data_pipe_producer> data_pipe; | 15 handle<data_pipe_producer> data_pipe; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 44 | 44 |
| 45 // Whether a Resume() message needs to be sent to the DataSource for it to | 45 // Whether a Resume() message needs to be sent to the DataSource for it to |
| 46 // resume sending data. | 46 // resume sending data. |
| 47 bool paused; | 47 bool paused; |
| 48 | 48 |
| 49 // The pending receive error if there is one. | 49 // The pending receive error if there is one. |
| 50 PendingReceiveError? pending_error; | 50 PendingReceiveError? pending_error; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } | 53 } |
| OLD | NEW |