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

Unified Diff: extensions/browser/api/device_permissions_prompt.h

Issue 1034333002: Check USB device path access when prompting users to select a device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move MockPermissionBrokerClient into its own header. Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/usb/usb_device_impl.cc ('k') | extensions/browser/api/device_permissions_prompt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/device_permissions_prompt.h
diff --git a/extensions/browser/api/device_permissions_prompt.h b/extensions/browser/api/device_permissions_prompt.h
index 3ef2587695ebefb38bc51f3c4ed7c4e9669cc043..e7d11ca901478736a67c8427eed90d70768b8a52 100644
--- a/extensions/browser/api/device_permissions_prompt.h
+++ b/extensions/browser/api/device_permissions_prompt.h
@@ -106,6 +106,13 @@ class DevicePermissionsPrompt {
// Querying for devices must be done asynchronously on the FILE thread.
void DoDeviceQuery();
+ void AppendCheckedUsbDevice(std::vector<DeviceInfo>* device_info,
+ scoped_refptr<device::UsbDevice> device,
+ const base::Closure& callback,
+ bool allowed);
+ void AddCheckedUsbDevice(scoped_refptr<device::UsbDevice> device,
+ bool allowed);
+ void DeviceQueryComplete(std::vector<DeviceInfo>* device_info);
void SetDevices(const std::vector<DeviceInfo>& devices);
void AddDevice(const DeviceInfo& device);
void RemoveDevice(scoped_refptr<device::UsbDevice> device);
« no previous file with comments | « device/usb/usb_device_impl.cc ('k') | extensions/browser/api/device_permissions_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698