| OLD | NEW |
| (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 "serial.mojom"; | |
| 8 import "data_stream_serialization.mojom"; | |
| 9 | |
| 10 // The client state of a serial connection. | |
| 11 struct ConnectionState { | |
| 12 uint32 connectionId; | |
| 13 bool paused = false; | |
| 14 bool persistent = false; | |
| 15 string name = ""; | |
| 16 uint32 receiveTimeout = 0; | |
| 17 uint32 sendTimeout = 0; | |
| 18 uint32 bufferSize = 4096; | |
| 19 }; | |
| 20 | |
| 21 // A serialized serial connection. | |
| 22 struct SerializedConnection { | |
| 23 ConnectionState state; | |
| 24 ReceiveError queuedReceiveError = NONE; | |
| 25 array<int8>? queuedReceiveData; | |
| 26 Connection connection; | |
| 27 SerializedDataSender sender; | |
| 28 SerializedDataReceiver receiver; | |
| 29 }; | |
| OLD | NEW |