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 #include "device/usb/usb_service_impl.h" | 5 #include "device/usb/usb_service_impl.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/barrier_closure.h" | 14 #include "base/barrier_closure.h" |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
19 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
20 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "base/thread_task_runner_handle.h" | 22 #include "base/threading/thread_task_runner_handle.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "components/device_event_log/device_event_log.h" | 24 #include "components/device_event_log/device_event_log.h" |
25 #include "device/usb/usb_device_handle.h" | 25 #include "device/usb/usb_device_handle.h" |
26 #include "device/usb/usb_error.h" | 26 #include "device/usb/usb_error.h" |
27 #include "device/usb/webusb_descriptors.h" | 27 #include "device/usb/webusb_descriptors.h" |
28 #include "net/base/io_buffer.h" | 28 #include "net/base/io_buffer.h" |
29 #include "third_party/libusb/src/libusb/libusb.h" | 29 #include "third_party/libusb/src/libusb/libusb.h" |
30 | 30 |
31 #if defined(OS_WIN) | 31 #if defined(OS_WIN) |
32 #include <setupapi.h> | 32 #include <setupapi.h> |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 } | 641 } |
642 | 642 |
643 void UsbServiceImpl::EnumerationFailed(PlatformUsbDevice platform_device, | 643 void UsbServiceImpl::EnumerationFailed(PlatformUsbDevice platform_device, |
644 const base::Closure& refresh_complete) { | 644 const base::Closure& refresh_complete) { |
645 libusb_ref_device(platform_device); | 645 libusb_ref_device(platform_device); |
646 ignored_devices_.insert(platform_device); | 646 ignored_devices_.insert(platform_device); |
647 refresh_complete.Run(); | 647 refresh_complete.Run(); |
648 } | 648 } |
649 | 649 |
650 } // namespace device | 650 } // namespace device |
OLD | NEW |