|
Add configuration and interface permission checks to DeviceImpl.
New methods to check whether a client has permission to access a device
configuration or interface have been added to the PermissionProvider
interface. DeviceManagerImpl then uses the new Bind() method to give
DeviceImpl a new pointer to the object it has been using for permission
checks. Permission checks are not required for bulk, interrupt and
isochronous transfers because they require the interface to be claimed
first.
BUG= 492204
Committed: https://crrev.com/83746f46774aef7ca1b7b5ef33d49a6bc90d24e2
Cr-Commit-Position: refs/heads/master@{#351408}
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+463 lines, -162 lines) |
Patch |
|
M |
chrome/browser/devtools/device/usb/android_usb_browsertest.cc
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/usb/web_usb_permission_provider.h
|
View
|
|
2 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/usb/web_usb_permission_provider.cc
|
View
|
|
6 chunks |
+56 lines, -7 lines |
1 comment
|
Download
|
|
M |
device/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/device_tests.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/devices_app/usb/device_impl.h
|
View
|
|
3 chunks |
+15 lines, -34 lines |
0 comments
|
Download
|
|
M |
device/devices_app/usb/device_impl.cc
|
View
|
|
11 chunks |
+170 lines, -66 lines |
0 comments
|
Download
|
|
M |
device/devices_app/usb/device_impl_unittest.cc
|
View
|
|
11 chunks |
+48 lines, -6 lines |
0 comments
|
Download
|
|
M |
device/devices_app/usb/device_manager_impl.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
device/devices_app/usb/device_manager_impl_unittest.cc
|
View
|
|
4 chunks |
+3 lines, -22 lines |
0 comments
|
Download
|
|
A |
device/devices_app/usb/fake_permission_provider.h
|
View
|
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
|
A |
device/devices_app/usb/fake_permission_provider.cc
|
View
|
1
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/devices_app/usb/public/interfaces/device.mojom
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/devices_app/usb/public/interfaces/permission_provider.mojom
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/usb/mock_usb_device_handle.h
|
View
|
|
2 chunks |
+14 lines, -15 lines |
0 comments
|
Download
|
|
M |
device/usb/usb_device.h
|
View
|
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
device/usb/usb_device_handle.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/usb/usb_device_handle_impl.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/usb/usb_device_handle_impl.cc
|
View
|
|
2 chunks |
+15 lines, -3 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 12 (4 generated)
|