OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_USB_TYPE_CONVERTERS_H_ | 5 #ifndef DEVICE_DEVICES_APP_USB_TYPE_CONVERTERS_H_ |
6 #define DEVICE_USB_TYPE_CONVERTERS_H_ | 6 #define DEVICE_DEVICES_APP_USB_TYPE_CONVERTERS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "device/usb/public/interfaces/device.mojom.h" | 10 #include "device/devices_app/usb/public/interfaces/device.mojom.h" |
11 #include "device/usb/public/interfaces/device_manager.mojom.h" | 11 #include "device/devices_app/usb/public/interfaces/device_manager.mojom.h" |
12 #include "device/usb/usb_descriptors.h" | 12 #include "device/usb/usb_descriptors.h" |
13 #include "device/usb/usb_device_filter.h" | 13 #include "device/usb/usb_device_filter.h" |
14 #include "device/usb/usb_device_handle.h" | 14 #include "device/usb/usb_device_handle.h" |
15 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h" | 15 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h" |
16 #include "third_party/mojo/src/mojo/public/cpp/bindings/type_converter.h" | 16 #include "third_party/mojo/src/mojo/public/cpp/bindings/type_converter.h" |
17 | 17 |
18 // Type converters to convert objects between internal device/usb data types and | 18 // Type converters to convert objects between internal device/usb data types and |
19 // public Mojo interface data types. | 19 // public Mojo interface data types. |
20 | 20 |
21 namespace device { | 21 namespace device { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 const device::UsbConfigDescriptor& config); | 94 const device::UsbConfigDescriptor& config); |
95 }; | 95 }; |
96 | 96 |
97 template <> | 97 template <> |
98 struct TypeConverter<device::usb::DeviceInfoPtr, device::UsbDevice> { | 98 struct TypeConverter<device::usb::DeviceInfoPtr, device::UsbDevice> { |
99 static device::usb::DeviceInfoPtr Convert(const device::UsbDevice& device); | 99 static device::usb::DeviceInfoPtr Convert(const device::UsbDevice& device); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace mojo | 102 } // namespace mojo |
103 | 103 |
104 #endif // DEVICE_USB_TYPE_CONVERTERS_H_ | 104 #endif // DEVICE_DEVICES_APP_USB_TYPE_CONVERTERS_H_ |
OLD | NEW |