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

Side by Side Diff: device/usb/usb_device_handle_impl.h

Issue 2542903002: device: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « device/usb/mojo/device_manager_impl.h ('k') | device/usb/usb_device_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ 5 #ifndef DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_
6 #define DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ 6 #define DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 namespace device { 33 namespace device {
34 34
35 struct EndpointMapValue { 35 struct EndpointMapValue {
36 const UsbInterfaceDescriptor* interface; 36 const UsbInterfaceDescriptor* interface;
37 const UsbEndpointDescriptor* endpoint; 37 const UsbEndpointDescriptor* endpoint;
38 }; 38 };
39 39
40 class UsbContext; 40 class UsbContext;
41 struct UsbConfigDescriptor;
42 class UsbDeviceImpl; 41 class UsbDeviceImpl;
43 42
44 typedef libusb_device_handle* PlatformUsbDeviceHandle; 43 typedef libusb_device_handle* PlatformUsbDeviceHandle;
45 typedef libusb_iso_packet_descriptor* PlatformUsbIsoPacketDescriptor; 44 typedef libusb_iso_packet_descriptor* PlatformUsbIsoPacketDescriptor;
46 typedef libusb_transfer* PlatformUsbTransferHandle; 45 typedef libusb_transfer* PlatformUsbTransferHandle;
47 46
48 // UsbDeviceHandle class provides basic I/O related functionalities. 47 // UsbDeviceHandle class provides basic I/O related functionalities.
49 class UsbDeviceHandleImpl : public UsbDeviceHandle { 48 class UsbDeviceHandleImpl : public UsbDeviceHandle {
50 public: 49 public:
51 scoped_refptr<UsbDevice> GetDevice() const override; 50 scoped_refptr<UsbDevice> GetDevice() const override;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 207 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
209 208
210 base::ThreadChecker thread_checker_; 209 base::ThreadChecker thread_checker_;
211 210
212 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl); 211 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl);
213 }; 212 };
214 213
215 } // namespace device 214 } // namespace device
216 215
217 #endif // DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_ 216 #endif // DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_
OLDNEW
« no previous file with comments | « device/usb/mojo/device_manager_impl.h ('k') | device/usb/usb_device_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698