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/sequenced_task_runner.h" |
18 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
19 #include "base/stl_util.h" | 20 #include "base/stl_util.h" |
20 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
21 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
22 #include "base/task_scheduler/post_task.h" | 23 #include "base/task_scheduler/post_task.h" |
23 #include "build/build_config.h" | 24 #include "build/build_config.h" |
24 #include "components/device_event_log/device_event_log.h" | 25 #include "components/device_event_log/device_event_log.h" |
25 #include "device/usb/usb_device_handle.h" | 26 #include "device/usb/usb_device_handle.h" |
26 #include "device/usb/usb_error.h" | 27 #include "device/usb/usb_error.h" |
27 #include "device/usb/webusb_descriptors.h" | 28 #include "device/usb/webusb_descriptors.h" |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 } | 556 } |
556 | 557 |
557 void UsbServiceImpl::EnumerationFailed(PlatformUsbDevice platform_device, | 558 void UsbServiceImpl::EnumerationFailed(PlatformUsbDevice platform_device, |
558 const base::Closure& refresh_complete) { | 559 const base::Closure& refresh_complete) { |
559 libusb_ref_device(platform_device); | 560 libusb_ref_device(platform_device); |
560 ignored_devices_.insert(platform_device); | 561 ignored_devices_.insert(platform_device); |
561 refresh_complete.Run(); | 562 refresh_complete.Run(); |
562 } | 563 } |
563 | 564 |
564 } // namespace device | 565 } // namespace device |
OLD | NEW |