OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_BROWSER_USB_USB_DEVICE_HANDLE_H_ | 5 #ifndef CHROME_BROWSER_USB_USB_DEVICE_HANDLE_H_ |
6 #define CHROME_BROWSER_USB_USB_DEVICE_HANDLE_H_ | 6 #define CHROME_BROWSER_USB_USB_DEVICE_HANDLE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 #include "chrome/browser/usb/usb_interface.h" | 15 #include "chrome/browser/usb/usb_interface.h" |
16 #include "content/public/browser/browser_thread.h" | |
17 #include "net/base/completion_callback.h" | 16 #include "net/base/completion_callback.h" |
18 #include "net/base/io_buffer.h" | 17 #include "net/base/io_buffer.h" |
19 | 18 |
20 struct libusb_device_handle; | 19 struct libusb_device_handle; |
21 struct libusb_iso_packet_descriptor; | 20 struct libusb_iso_packet_descriptor; |
22 struct libusb_transfer; | 21 struct libusb_transfer; |
23 | 22 |
24 typedef libusb_device_handle* PlatformUsbDeviceHandle; | 23 typedef libusb_device_handle* PlatformUsbDeviceHandle; |
25 typedef libusb_iso_packet_descriptor* PlatformUsbIsoPacketDescriptor; | 24 typedef libusb_iso_packet_descriptor* PlatformUsbIsoPacketDescriptor; |
26 typedef libusb_transfer* PlatformUsbTransferHandle; | 25 typedef libusb_transfer* PlatformUsbTransferHandle; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // Retain the UsbContext so that the platform context will not be destroyed | 176 // Retain the UsbContext so that the platform context will not be destroyed |
178 // before this handle. | 177 // before this handle. |
179 scoped_refptr<UsbContext> context_; | 178 scoped_refptr<UsbContext> context_; |
180 | 179 |
181 base::ThreadChecker thread_checker_; | 180 base::ThreadChecker thread_checker_; |
182 | 181 |
183 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandle); | 182 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandle); |
184 }; | 183 }; |
185 | 184 |
186 #endif // CHROME_BROWSER_USB_USB_DEVICE_HANDLE_H_ | 185 #endif // CHROME_BROWSER_USB_USB_DEVICE_HANDLE_H_ |
OLD | NEW |