| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "device/serial/data_stream.mojom.h" | 10 #include "device/serial/data_stream.mojom.h" |
| 11 #include "device/serial/serial.mojom.h" | 11 #include "device/serial/serial.mojom.h" |
| 12 #include "device/serial/serial_connection_factory.h" | 12 #include "device/serial/serial_connection_factory.h" |
| 13 #include "device/serial/serial_device_enumerator.h" | 13 #include "device/serial/serial_device_enumerator.h" |
| 14 #include "mojo/public/cpp/bindings/interface_impl.h" | 14 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_impl.h" |
| 15 | 15 |
| 16 namespace device { | 16 namespace device { |
| 17 | 17 |
| 18 class SerialServiceImpl : public mojo::InterfaceImpl<serial::SerialService> { | 18 class SerialServiceImpl : public mojo::InterfaceImpl<serial::SerialService> { |
| 19 public: | 19 public: |
| 20 explicit SerialServiceImpl( | 20 explicit SerialServiceImpl( |
| 21 scoped_refptr<SerialConnectionFactory> connection_factory); | 21 scoped_refptr<SerialConnectionFactory> connection_factory); |
| 22 SerialServiceImpl(scoped_refptr<SerialConnectionFactory> connection_factory, | 22 SerialServiceImpl(scoped_refptr<SerialConnectionFactory> connection_factory, |
| 23 scoped_ptr<SerialDeviceEnumerator> device_enumerator); | 23 scoped_ptr<SerialDeviceEnumerator> device_enumerator); |
| 24 ~SerialServiceImpl() override; | 24 ~SerialServiceImpl() override; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 48 | 48 |
| 49 scoped_ptr<SerialDeviceEnumerator> device_enumerator_; | 49 scoped_ptr<SerialDeviceEnumerator> device_enumerator_; |
| 50 scoped_refptr<SerialConnectionFactory> connection_factory_; | 50 scoped_refptr<SerialConnectionFactory> connection_factory_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(SerialServiceImpl); | 52 DISALLOW_COPY_AND_ASSIGN(SerialServiceImpl); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace device | 55 } // namespace device |
| 56 | 56 |
| 57 #endif // DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_ | 57 #endif // DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_ |
| OLD | NEW |