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 #include "device/devices_app/usb/type_converters.h" | 5 #include "device/devices_app/usb/type_converters.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <map> | 10 #include <map> |
8 #include <utility> | 11 #include <utility> |
9 | 12 |
10 #include "base/logging.h" | 13 #include "base/logging.h" |
11 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
12 #include "device/usb/usb_device.h" | 15 #include "device/usb/usb_device.h" |
13 #include "mojo/common/url_type_converters.h" | 16 #include "mojo/common/url_type_converters.h" |
14 #include "mojo/public/cpp/bindings/array.h" | 17 #include "mojo/public/cpp/bindings/array.h" |
15 | 18 |
16 namespace mojo { | 19 namespace mojo { |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 info->configurations = mojo::Array<device::usb::ConfigurationInfoPtr>::From( | 261 info->configurations = mojo::Array<device::usb::ConfigurationInfoPtr>::From( |
259 device.configurations()); | 262 device.configurations()); |
260 if (device.webusb_allowed_origins()) { | 263 if (device.webusb_allowed_origins()) { |
261 info->webusb_allowed_origins = device::usb::WebUsbDescriptorSet::From( | 264 info->webusb_allowed_origins = device::usb::WebUsbDescriptorSet::From( |
262 *device.webusb_allowed_origins()); | 265 *device.webusb_allowed_origins()); |
263 } | 266 } |
264 return info.Pass(); | 267 return info.Pass(); |
265 } | 268 } |
266 | 269 |
267 } // namespace mojo | 270 } // namespace mojo |
OLD | NEW |