| 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_SOURCE_SENDER_H_ | 5 #ifndef DEVICE_SERIAL_DATA_SOURCE_SENDER_H_ |
| 6 #define DEVICE_SERIAL_DATA_SOURCE_SENDER_H_ | 6 #define DEVICE_SERIAL_DATA_SOURCE_SENDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 13 #include "device/serial/buffer.h" | 16 #include "device/serial/buffer.h" |
| 14 #include "device/serial/data_stream.mojom.h" | 17 #include "device/serial/data_stream.mojom.h" |
| 15 #include "mojo/public/cpp/bindings/binding.h" | 18 #include "mojo/public/cpp/bindings/binding.h" |
| 16 #include "mojo/public/cpp/system/data_pipe.h" | 19 #include "mojo/public/cpp/system/data_pipe.h" |
| 17 | 20 |
| 18 namespace device { | 21 namespace device { |
| 19 | 22 |
| 20 // A DataSourceSender is an interface between a source of data and a | 23 // A DataSourceSender is an interface between a source of data and a |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 bool shut_down_; | 93 bool shut_down_; |
| 91 | 94 |
| 92 base::WeakPtrFactory<DataSourceSender> weak_factory_; | 95 base::WeakPtrFactory<DataSourceSender> weak_factory_; |
| 93 | 96 |
| 94 DISALLOW_COPY_AND_ASSIGN(DataSourceSender); | 97 DISALLOW_COPY_AND_ASSIGN(DataSourceSender); |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 } // namespace device | 100 } // namespace device |
| 98 | 101 |
| 99 #endif // DEVICE_SERIAL_DATA_SOURCE_SENDER_H_ | 102 #endif // DEVICE_SERIAL_DATA_SOURCE_SENDER_H_ |
| OLD | NEW |