|
|
Separate usb device handle from usb device.
*This CL has been splitted to four steps*:
1. Upgrade libusb and introduce a mechanism to interrupt libusb_handle_events. _Done_
2. Separate UsbDevice and UsbDeviceHandle.
3. Introduce UsbTransfer and improve life cycle management of transfers.
4. Introduce `chrome.usb.getDevices` and `chrome.usb.openDevice` API.
BUG= 223817
Total comments: 1
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1620 lines, -1113 lines) |
Patch |
 |
M |
chrome/browser/extensions/api/usb/usb_api.h
|
View
|
1
2
|
5 chunks |
+60 lines, -18 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/usb/usb_api.cc
|
View
|
1
2
3
|
31 chunks |
+263 lines, -158 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/usb/usb_apitest.cc
|
View
|
1
2
|
4 chunks |
+37 lines, -39 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/usb/usb_device_resource.h
|
View
|
1
2
3
|
3 chunks |
+48 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/usb/usb_device_resource.cc
|
View
|
1
2
3
|
2 chunks |
+131 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_function_histogram_value.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/usb/usb_device.h
|
View
|
|
1 chunk |
+0 lines, -169 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/usb/usb_device.cc
|
View
|
|
1 chunk |
+0 lines, -341 lines |
0 comments
|
Download
|
 |
A + |
chrome/browser/usb/usb_device_handle.h
|
View
|
1
2
3
|
5 chunks |
+64 lines, -56 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/usb/usb_device_handle.cc
|
View
|
1
2
3
|
1 chunk |
+439 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/usb/usb_interface.h
|
View
|
1
2
|
6 chunks |
+8 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/usb/usb_interface.cc
|
View
|
1
2
|
7 chunks |
+18 lines, -23 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/usb/usb_service.h
|
View
|
1
2
3
|
1 chunk |
+40 lines, -54 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/usb/usb_service.cc
|
View
|
1
2
3
|
4 chunks |
+239 lines, -98 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/usb/usb_service_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/usb.idl
|
View
|
1
2
3
|
3 chunks |
+81 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/usb/device_handling/test.js
|
View
|
1
2
|
1 chunk |
+26 lines, -23 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/usb/invalid_length_transfer/test.js
|
View
|
1
2
|
2 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/usb/list_interfaces/test.js
|
View
|
1
2
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/usb/transfer_event/test.js
|
View
|
1
2
|
1 chunk |
+45 lines, -41 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/usb/transfer_failure/test.js
|
View
|
1
2
|
2 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/usb/zero_length_transfer/test.js
|
View
|
1
2
|
1 chunk |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
third_party/libusb/README.chromium
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/libusb/libusb_send_event.patch
|
View
|
1
2
3
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/libusb/src/libusb/core.c
|
View
|
1
2
3
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/libusb/src/libusb/libusb.h
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|