| 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_DATA_SINK_RECEIVER_H_ | 5 #ifndef DEVICE_SERIAL_DATA_SINK_RECEIVER_H_ |
| 6 #define DEVICE_SERIAL_DATA_SINK_RECEIVER_H_ | 6 #define DEVICE_SERIAL_DATA_SINK_RECEIVER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <queue> | 10 #include <queue> |
| 9 | 11 |
| 10 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" |
| 11 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
| 12 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 14 #include "device/serial/buffer.h" | 17 #include "device/serial/buffer.h" |
| 15 #include "device/serial/data_stream.mojom.h" | 18 #include "device/serial/data_stream.mojom.h" |
| 16 #include "mojo/public/cpp/bindings/binding.h" | 19 #include "mojo/public/cpp/bindings/binding.h" |
| 17 #include "mojo/public/cpp/system/data_pipe.h" | 20 #include "mojo/public/cpp/system/data_pipe.h" |
| 18 | 21 |
| 19 namespace device { | 22 namespace device { |
| 20 | 23 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 bool shut_down_; | 104 bool shut_down_; |
| 102 | 105 |
| 103 base::WeakPtrFactory<DataSinkReceiver> weak_factory_; | 106 base::WeakPtrFactory<DataSinkReceiver> weak_factory_; |
| 104 | 107 |
| 105 DISALLOW_COPY_AND_ASSIGN(DataSinkReceiver); | 108 DISALLOW_COPY_AND_ASSIGN(DataSinkReceiver); |
| 106 }; | 109 }; |
| 107 | 110 |
| 108 } // namespace device | 111 } // namespace device |
| 109 | 112 |
| 110 #endif // DEVICE_SERIAL_DATA_SINK_RECEIVER_H_ | 113 #endif // DEVICE_SERIAL_DATA_SINK_RECEIVER_H_ |
| OLD | NEW |