Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: device/devices_app/usb/type_converters.h

Issue 1646783002: Update webusb_descriptors.cc to parse the new WebUSB descriptors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@io_buffer
Patch Set: Sometimes MSVC complains about passing size_type to BarrierClosure. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « device/devices_app/usb/device_impl_unittest.cc ('k') | device/devices_app/usb/type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698