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_H_ | 5 #ifndef DEVICE_SERIAL_SERIAL_IO_HANDLER_H_ |
6 #define DEVICE_SERIAL_SERIAL_IO_HANDLER_H_ | 6 #define DEVICE_SERIAL_SERIAL_IO_HANDLER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/callback.h" | 10 #include "base/callback.h" |
9 #include "base/files/file.h" | 11 #include "base/files/file.h" |
| 12 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
11 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
12 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
13 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
| 17 #include "build/build_config.h" |
14 #include "device/serial/buffer.h" | 18 #include "device/serial/buffer.h" |
15 #include "device/serial/serial.mojom.h" | 19 #include "device/serial/serial.mojom.h" |
16 | 20 |
17 namespace dbus { | 21 namespace dbus { |
18 class FileDescriptor; | 22 class FileDescriptor; |
19 } | 23 } |
20 | 24 |
21 namespace device { | 25 namespace device { |
22 | 26 |
23 // Provides a simplified interface for performing asynchronous I/O on serial | 27 // Provides a simplified interface for performing asynchronous I/O on serial |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner_; | 244 scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner_; |
241 | 245 |
242 std::string port_; | 246 std::string port_; |
243 | 247 |
244 DISALLOW_COPY_AND_ASSIGN(SerialIoHandler); | 248 DISALLOW_COPY_AND_ASSIGN(SerialIoHandler); |
245 }; | 249 }; |
246 | 250 |
247 } // namespace device | 251 } // namespace device |
248 | 252 |
249 #endif // DEVICE_SERIAL_SERIAL_IO_HANDLER_H_ | 253 #endif // DEVICE_SERIAL_SERIAL_IO_HANDLER_H_ |
OLD | NEW |