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_CONNECTION_FACTORY_H_ | 5 #ifndef DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_ |
6 #define DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_ | 6 #define DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
12 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
13 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
14 #include "device/serial/data_stream.mojom.h" | 15 #include "device/serial/data_stream.mojom.h" |
15 #include "device/serial/serial.mojom.h" | 16 #include "device/serial/serial.mojom.h" |
16 #include "mojo/public/cpp/bindings/interface_request.h" | 17 #include "mojo/public/cpp/bindings/interface_request.h" |
17 | 18 |
18 namespace device { | 19 namespace device { |
19 | 20 |
20 class SerialIoHandler; | 21 class SerialIoHandler; |
(...skipping 23 matching lines...) Expand all Loading... |
44 | 45 |
45 const IoHandlerFactory io_handler_factory_; | 46 const IoHandlerFactory io_handler_factory_; |
46 scoped_refptr<base::SingleThreadTaskRunner> connect_task_runner_; | 47 scoped_refptr<base::SingleThreadTaskRunner> connect_task_runner_; |
47 | 48 |
48 DISALLOW_COPY_AND_ASSIGN(SerialConnectionFactory); | 49 DISALLOW_COPY_AND_ASSIGN(SerialConnectionFactory); |
49 }; | 50 }; |
50 | 51 |
51 } // namespace device | 52 } // namespace device |
52 | 53 |
53 #endif // DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_ | 54 #endif // DEVICE_SERIAL_SERIAL_CONNECTION_FACTORY_H_ |
OLD | NEW |