|
Move device/usb classes from the FILE thread to UI thread.
Code that interacts with device/usb often lives on the UI thread. As
with the recent migration of device/hid (issue 422540) moving ownership
of these classes to the UI thread makes calling code substancially
simplier. Blocking operations are handled internally by posting tasks
to the FILE thread and returning a result to the UI thread
asynchronously.
This change paves the way for replacing libusb with platform-specific
implementations of these classes that may have different thread usage
requirements (as is the case in the device/hid code).
BUG= 427985
Committed: https://crrev.com/b87cb277526092e101ce29f2ad0393f6247cc39e
Cr-Commit-Position: refs/heads/master@{#325491}
Total comments: 10
Total comments: 6
Total comments: 8
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+2887 lines, -2869 lines) |
Patch |
 |
M |
chrome/browser/chrome_device_client.cc
|
View
|
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/devtools/device/usb/android_usb_browsertest.cc
|
View
|
1
2
3
4
5
|
18 chunks |
+101 lines, -167 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/devtools/device/usb/android_usb_device.h
|
View
|
1
2
3
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/devtools/device/usb/android_usb_device.cc
|
View
|
1
2
3
4
5
6
|
17 chunks |
+213 lines, -189 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/device_permissions_manager_unittest.cc
|
View
|
1
|
4 chunks |
+122 lines, -166 lines |
0 comments
|
Download
|
 |
M |
device/hid/hid_connection_unittest.cc
|
View
|
|
4 chunks |
+8 lines, -29 lines |
0 comments
|
Download
|
 |
M |
device/hid/hid_service.cc
|
View
|
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
device/test/usb_test_gadget.h
|
View
|
|
3 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
device/test/usb_test_gadget_impl.cc
|
View
|
|
6 chunks |
+420 lines, -340 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_context.cc
|
View
|
|
3 chunks |
+13 lines, -15 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device.h
|
View
|
1
|
3 chunks |
+21 lines, -24 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device.cc
|
View
|
1
|
1 chunk |
+12 lines, -2 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_filter_unittest.cc
|
View
|
1
|
7 chunks |
+20 lines, -8 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_handle.h
|
View
|
1
2
3
|
2 chunks |
+23 lines, -24 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_handle_impl.h
|
View
|
1
2
3
|
6 chunks |
+98 lines, -39 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_handle_impl.cc
|
View
|
1
2
3
|
19 chunks |
+440 lines, -318 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_handle_unittest.cc
|
View
|
1
|
8 chunks |
+106 lines, -51 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_impl.h
|
View
|
1
|
5 chunks |
+21 lines, -24 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_device_impl.cc
|
View
|
1
|
6 chunks |
+38 lines, -167 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_service.h
|
View
|
1
|
4 chunks |
+11 lines, -14 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_service.cc
|
View
|
|
3 chunks |
+8 lines, -38 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_service_impl.h
|
View
|
|
3 chunks |
+73 lines, -20 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_service_impl.cc
|
View
|
|
7 chunks |
+421 lines, -193 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_service_unittest.cc
|
View
|
|
2 chunks |
+14 lines, -13 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/device_permissions_manager.h
|
View
|
1
2
|
7 chunks |
+14 lines, -32 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/device_permissions_manager.cc
|
View
|
1
2
|
13 chunks |
+29 lines, -84 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/device_permissions_prompt.h
|
View
|
1
2
|
6 chunks |
+13 lines, -28 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/device_permissions_prompt.cc
|
View
|
1
2
|
7 chunks |
+34 lines, -107 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_api.h
|
View
|
1
|
5 chunks |
+134 lines, -153 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_api.cc
|
View
|
1
|
26 chunks |
+371 lines, -453 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_apitest.cc
|
View
|
1
2
3
|
10 chunks |
+51 lines, -83 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_device_resource.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_event_router.h
|
View
|
|
4 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_event_router.cc
|
View
|
|
7 chunks |
+17 lines, -58 lines |
0 comments
|
Download
|
 |
M |
extensions/shell/browser/shell_device_client.cc
|
View
|
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
extensions/test/data/api_test/usb/reset_device/test.js
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 36 (11 generated)
|