| 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_H_ | 5 #ifndef DEVICE_SERIAL_SERIAL_CONNECTION_H_ |
| 6 #define DEVICE_SERIAL_SERIAL_CONNECTION_H_ | 6 #define DEVICE_SERIAL_SERIAL_CONNECTION_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "device/serial/serial.mojom.h" | 10 #include "device/serial/serial.mojom.h" |
| 11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 12 | 12 |
| 13 namespace device { | 13 namespace device { |
| 14 | 14 |
| 15 class DataSinkReceiver; | 15 class DataSinkReceiver; |
| 16 class DataSourceSender; | 16 class DataSourceSender; |
| 17 class ReadOnlyBuffer; | 17 class ReadOnlyBuffer; |
| 18 class SerialIoHandler; | 18 class SerialIoHandler; |
| 19 class WritableBuffer; | 19 class WritableBuffer; |
| 20 | 20 |
| 21 class SerialConnection : public serial::Connection { | 21 class SerialConnection : public serial::Connection { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 49 scoped_refptr<DataSourceSender> sender_; | 49 scoped_refptr<DataSourceSender> sender_; |
| 50 | 50 |
| 51 mojo::StrongBinding<serial::Connection> binding_; | 51 mojo::StrongBinding<serial::Connection> binding_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(SerialConnection); | 53 DISALLOW_COPY_AND_ASSIGN(SerialConnection); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace device | 56 } // namespace device |
| 57 | 57 |
| 58 #endif // DEVICE_SERIAL_SERIAL_CONNECTION_H_ | 58 #endif // DEVICE_SERIAL_SERIAL_CONNECTION_H_ |
| OLD | NEW |