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 EXTENSIONS_BROWSER_API_SERIAL_SERIAL_CONNECTION_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SERIAL_SERIAL_CONNECTION_H_ |
6 #define EXTENSIONS_BROWSER_API_SERIAL_SERIAL_CONNECTION_H_ | 6 #define EXTENSIONS_BROWSER_API_SERIAL_SERIAL_CONNECTION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 // Asynchronous I/O handler. | 190 // Asynchronous I/O handler. |
191 scoped_refptr<device::SerialIoHandler> io_handler_; | 191 scoped_refptr<device::SerialIoHandler> io_handler_; |
192 }; | 192 }; |
193 | 193 |
194 } // namespace extensions | 194 } // namespace extensions |
195 | 195 |
196 namespace mojo { | 196 namespace mojo { |
197 | 197 |
198 template <> | 198 template <> |
199 class TypeConverter<device::serial::HostControlSignalsPtr, | 199 struct TypeConverter<device::serial::HostControlSignalsPtr, |
200 extensions::core_api::serial::HostControlSignals> { | 200 extensions::core_api::serial::HostControlSignals> { |
201 public: | 201 static device::serial::HostControlSignalsPtr Convert( |
202 static device::serial::HostControlSignalsPtr ConvertFrom( | |
203 const extensions::core_api::serial::HostControlSignals& input); | 202 const extensions::core_api::serial::HostControlSignals& input); |
204 }; | 203 }; |
205 | 204 |
206 template <> | 205 template <> |
207 class TypeConverter<device::serial::ConnectionOptionsPtr, | 206 struct TypeConverter<device::serial::ConnectionOptionsPtr, |
208 extensions::core_api::serial::ConnectionOptions> { | 207 extensions::core_api::serial::ConnectionOptions> { |
209 public: | 208 static device::serial::ConnectionOptionsPtr Convert( |
210 static device::serial::ConnectionOptionsPtr ConvertFrom( | |
211 const extensions::core_api::serial::ConnectionOptions& input); | 209 const extensions::core_api::serial::ConnectionOptions& input); |
212 }; | 210 }; |
213 | 211 |
214 } // namespace mojo | 212 } // namespace mojo |
215 | 213 |
216 #endif // EXTENSIONS_BROWSER_API_SERIAL_SERIAL_CONNECTION_H_ | 214 #endif // EXTENSIONS_BROWSER_API_SERIAL_SERIAL_CONNECTION_H_ |
OLD | NEW |