// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_DEVICE_SERIAL_SERIAL_IO_HANDLER_POSIX_H_ #define SERVICES_DEVICE_SERIAL_SERIAL_IO_HANDLER_POSIX_H_ #include <memory> #include "base/files/file_descriptor_watcher_posix.h" #include "base/task/single_thread_task_runner.h" #include "services/device/serial/serial_io_handler.h" namespace device { // Linux reports breaks and parity errors by inserting the sequence '\377\0x' // into the byte stream where 'x' is '\0' for a break and the corrupted byte for // a parity error. enum class ErrorDetectState { … }; class SerialIoHandlerPosix : public SerialIoHandler { … }; } // namespace device #endif // SERVICES_DEVICE_SERIAL_SERIAL_IO_HANDLER_POSIX_H_