| 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 #ifndef DEVICE_SERIAL_SERIAL_IO_HANDLER_POSIX_H_ | 5 #ifndef DEVICE_SERIAL_SERIAL_IO_HANDLER_POSIX_H_ |
| 6 #define DEVICE_SERIAL_SERIAL_IO_HANDLER_POSIX_H_ | 6 #define DEVICE_SERIAL_SERIAL_IO_HANDLER_POSIX_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 9 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 10 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
| 11 #include "device/serial/serial_io_handler.h" | 12 #include "device/serial/serial_io_handler.h" |
| 12 | 13 |
| 13 namespace device { | 14 namespace device { |
| 14 | 15 |
| 15 // Linux reports breaks and parity errors by inserting the sequence '\377\0x' | 16 // Linux reports breaks and parity errors by inserting the sequence '\377\0x' |
| 16 // into the byte stream where 'x' is '\0' for a break and the corrupted byte for | 17 // into the byte stream where 'x' is '\0' for a break and the corrupted byte for |
| 17 // a parity error. | 18 // a parity error. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 bool parity_check_enabled_; | 67 bool parity_check_enabled_; |
| 67 char chars_stashed_[2]; | 68 char chars_stashed_[2]; |
| 68 int num_chars_stashed_; | 69 int num_chars_stashed_; |
| 69 | 70 |
| 70 DISALLOW_COPY_AND_ASSIGN(SerialIoHandlerPosix); | 71 DISALLOW_COPY_AND_ASSIGN(SerialIoHandlerPosix); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace device | 74 } // namespace device |
| 74 | 75 |
| 75 #endif // DEVICE_SERIAL_SERIAL_IO_HANDLER_POSIX_H_ | 76 #endif // DEVICE_SERIAL_SERIAL_IO_HANDLER_POSIX_H_ |
| OLD | NEW |