Index: chrome/browser/usb/web_usb_permission_provider.h |
diff --git a/chrome/browser/usb/web_usb_permission_provider.h b/chrome/browser/usb/web_usb_permission_provider.h |
index 5668ee37a75d9e920ac567a459c13314b2643841..436255e0ab7475914c1cd745ad10e539a6184b6c 100644 |
--- a/chrome/browser/usb/web_usb_permission_provider.h |
+++ b/chrome/browser/usb/web_usb_permission_provider.h |
@@ -14,6 +14,9 @@ namespace content { |
class RenderFrameHost; |
} |
+class GURL; |
+class UsbChooserContext; |
+ |
// This implementation of the permission provider interface enforces the rules |
// of the WebUSB permission model. Devices are checked for WebUSB descriptors |
// granting access to the render frame's current origin as well as permission |
@@ -21,7 +24,10 @@ class RenderFrameHost; |
class WebUSBPermissionProvider : public device::usb::PermissionProvider { |
public: |
static bool HasDevicePermission( |
- content::RenderFrameHost* render_frame_host, |
+ UsbChooserContext* chooser_context, |
+ const GURL& requesting_origin, |
+ const GURL& embedding_origin, |
+ bool is_embedded_frame, |
scoped_refptr<const device::UsbDevice> device); |
explicit WebUSBPermissionProvider( |