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_SERVICE_IMPL_H_ | 5 #ifndef DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_ |
6 #define DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_ | 6 #define DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "device/serial/data_stream.mojom.h" | 13 #include "device/serial/data_stream.mojom.h" |
14 #include "device/serial/serial.mojom.h" | 14 #include "device/serial/serial.mojom.h" |
15 #include "device/serial/serial_connection_factory.h" | 15 #include "device/serial/serial_connection_factory.h" |
16 #include "device/serial/serial_device_enumerator.h" | 16 #include "device/serial/serial_device_enumerator.h" |
17 #include "mojo/public/cpp/bindings/strong_binding.h" | 17 #include "mojo/public/cpp/bindings/strong_binding.h" |
18 | 18 |
19 namespace device { | 19 namespace device { |
20 | 20 |
21 class SerialServiceImpl : public serial::SerialService { | 21 class SerialServiceImpl : public serial::SerialService { |
22 public: | 22 public: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 std::unique_ptr<SerialDeviceEnumerator> device_enumerator_; | 55 std::unique_ptr<SerialDeviceEnumerator> device_enumerator_; |
56 scoped_refptr<SerialConnectionFactory> connection_factory_; | 56 scoped_refptr<SerialConnectionFactory> connection_factory_; |
57 mojo::StrongBinding<serial::SerialService> binding_; | 57 mojo::StrongBinding<serial::SerialService> binding_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(SerialServiceImpl); | 59 DISALLOW_COPY_AND_ASSIGN(SerialServiceImpl); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace device | 62 } // namespace device |
63 | 63 |
64 #endif // DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_ | 64 #endif // DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_ |
OLD | NEW |