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_WIN_H_ | 5 #ifndef DEVICE_SERIAL_SERIAL_IO_HANDLER_WIN_H_ |
6 #define DEVICE_SERIAL_SERIAL_IO_HANDLER_WIN_H_ | 6 #define DEVICE_SERIAL_SERIAL_IO_HANDLER_WIN_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "device/serial/serial_io_handler.h" | 14 #include "device/serial/serial_io_handler.h" |
15 | 15 |
16 namespace device { | 16 namespace device { |
17 | 17 |
18 class SerialIoHandlerWin : public SerialIoHandler, | 18 class SerialIoHandlerWin : public SerialIoHandler, |
19 public base::MessageLoopForIO::IOHandler { | 19 public base::MessageLoopForIO::IOHandler { |
20 protected: | 20 protected: |
21 // SerialIoHandler implementation. | 21 // SerialIoHandler implementation. |
22 void ReadImpl() override; | 22 void ReadImpl() override; |
23 void WriteImpl() override; | 23 void WriteImpl() override; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // handler that owns it. | 70 // handler that owns it. |
71 UiThreadHelper* helper_; | 71 UiThreadHelper* helper_; |
72 base::WeakPtrFactory<SerialIoHandlerWin> weak_factory_; | 72 base::WeakPtrFactory<SerialIoHandlerWin> weak_factory_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(SerialIoHandlerWin); | 74 DISALLOW_COPY_AND_ASSIGN(SerialIoHandlerWin); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace device | 77 } // namespace device |
78 | 78 |
79 #endif // DEVICE_SERIAL_SERIAL_IO_HANDLER_WIN_H_ | 79 #endif // DEVICE_SERIAL_SERIAL_IO_HANDLER_WIN_H_ |
OLD | NEW |