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