| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/posix/eintr_wrapper.h" | |
| 6 #include "chrome/browser/extensions/api/serial/serial_connection.h" | 5 #include "chrome/browser/extensions/api/serial/serial_connection.h" |
| 7 | 6 |
| 8 #include <sys/ioctl.h> | 7 #include <sys/ioctl.h> |
| 9 #include <termios.h> | 8 #include <termios.h> |
| 10 | 9 |
| 11 #if defined(OS_LINUX) | 10 #if defined(OS_LINUX) |
| 12 #include <linux/serial.h> | 11 #include <linux/serial.h> |
| 13 #endif | 12 #endif |
| 14 | 13 |
| 15 namespace extensions { | 14 namespace extensions { |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 info->cts_flow_control.reset(new bool((config.c_cflag & CRTSCTS) != 0)); | 267 info->cts_flow_control.reset(new bool((config.c_cflag & CRTSCTS) != 0)); |
| 269 return true; | 268 return true; |
| 270 } | 269 } |
| 271 | 270 |
| 272 std::string SerialConnection::MaybeFixUpPortName( | 271 std::string SerialConnection::MaybeFixUpPortName( |
| 273 const std::string &port_name) { | 272 const std::string &port_name) { |
| 274 return port_name; | 273 return port_name; |
| 275 } | 274 } |
| 276 | 275 |
| 277 } // namespace extensions | 276 } // namespace extensions |
| OLD | NEW |