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

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

Issue 497363004: Merge components/usb_service into device/usb. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 3 months 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/usb_device_handle.h ('k') | device/usb/usb_device_handle_impl.cc » ('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 COMPONENTS_USB_SERVICE_USB_DEVICE_HANDLE_IMPL_H_ 5 #ifndef DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_
6 #define COMPONENTS_USB_SERVICE_USB_DEVICE_HANDLE_IMPL_H_ 6 #define DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/threading/thread_checker.h" 14 #include "base/threading/thread_checker.h"
15 #include "components/usb_service/usb_device_handle.h" 15 #include "device/usb/usb_device_handle.h"
16 #include "components/usb_service/usb_interface.h" 16 #include "device/usb/usb_interface.h"
17 #include "net/base/io_buffer.h" 17 #include "net/base/io_buffer.h"
18 #include "third_party/libusb/src/libusb/libusb.h" 18 #include "third_party/libusb/src/libusb/libusb.h"
19 19
20 namespace base { 20 namespace base {
21 class SingleThreadTaskRunner; 21 class SingleThreadTaskRunner;
22 } 22 }
23 23
24 namespace usb_service { 24 namespace device {
25 25
26 class UsbContext; 26 class UsbContext;
27 class UsbConfigDescriptor; 27 class UsbConfigDescriptor;
28 class UsbDeviceImpl; 28 class UsbDeviceImpl;
29 29
30 typedef libusb_device_handle* PlatformUsbDeviceHandle; 30 typedef libusb_device_handle* PlatformUsbDeviceHandle;
31 typedef libusb_iso_packet_descriptor* PlatformUsbIsoPacketDescriptor; 31 typedef libusb_iso_packet_descriptor* PlatformUsbIsoPacketDescriptor;
32 typedef libusb_transfer* PlatformUsbTransferHandle; 32 typedef libusb_transfer* PlatformUsbTransferHandle;
33 33
34 // UsbDeviceHandle class provides basic I/O related functionalities. 34 // UsbDeviceHandle class provides basic I/O related functionalities.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // before this handle. 162 // before this handle.
163 scoped_refptr<UsbContext> context_; 163 scoped_refptr<UsbContext> context_;
164 164
165 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 165 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
166 166
167 base::ThreadChecker thread_checker_; 167 base::ThreadChecker thread_checker_;
168 168
169 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl); 169 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandleImpl);
170 }; 170 };
171 171
172 } // namespace usb_service 172 } // namespace device
173 173
174 #endif // COMPONENTS_USB_SERVICE_USB_DEVICE_HANDLE_IMPL_H_ 174 #endif // DEVICE_USB_USB_DEVICE_HANDLE_IMPL_H_
OLDNEW
« no previous file with comments | « device/usb/usb_device_handle.h ('k') | device/usb/usb_device_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698