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_DEVICES_APP_USB_TYPE_CONVERTERS_H_ | 5 #ifndef DEVICE_DEVICES_APP_USB_TYPE_CONVERTERS_H_ |
6 #define DEVICE_DEVICES_APP_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/devices_app/usb/public/interfaces/device.mojom.h" | 10 #include "device/devices_app/usb/public/interfaces/device.mojom.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 template <> | 105 template <> |
106 struct TypeConverter<device::usb::WebUsbConfigurationSubsetPtr, | 106 struct TypeConverter<device::usb::WebUsbConfigurationSubsetPtr, |
107 device::WebUsbConfigurationSubset> { | 107 device::WebUsbConfigurationSubset> { |
108 static device::usb::WebUsbConfigurationSubsetPtr Convert( | 108 static device::usb::WebUsbConfigurationSubsetPtr Convert( |
109 const device::WebUsbConfigurationSubset& config); | 109 const device::WebUsbConfigurationSubset& config); |
110 }; | 110 }; |
111 | 111 |
112 template <> | 112 template <> |
113 struct TypeConverter<device::usb::WebUsbDescriptorSetPtr, | 113 struct TypeConverter<device::usb::WebUsbDescriptorSetPtr, |
114 device::WebUsbDescriptorSet> { | 114 device::WebUsbAllowedOrigins> { |
115 static device::usb::WebUsbDescriptorSetPtr Convert( | 115 static device::usb::WebUsbDescriptorSetPtr Convert( |
116 const device::WebUsbDescriptorSet& set); | 116 const device::WebUsbAllowedOrigins& allowed_origins); |
117 }; | 117 }; |
118 | 118 |
119 template <> | 119 template <> |
120 struct TypeConverter<device::usb::DeviceInfoPtr, device::UsbDevice> { | 120 struct TypeConverter<device::usb::DeviceInfoPtr, device::UsbDevice> { |
121 static device::usb::DeviceInfoPtr Convert(const device::UsbDevice& device); | 121 static device::usb::DeviceInfoPtr Convert(const device::UsbDevice& device); |
122 }; | 122 }; |
123 | 123 |
124 } // namespace mojo | 124 } // namespace mojo |
125 | 125 |
126 #endif // DEVICE_DEVICES_APP_USB_TYPE_CONVERTERS_H_ | 126 #endif // DEVICE_DEVICES_APP_USB_TYPE_CONVERTERS_H_ |
OLD | NEW |