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

Unified Diff: chrome/browser/usb/web_usb_permission_provider.h

Issue 2746313002: Remove RenderFrameHost pointer from ChooserController. (Closed)
Patch Set: Fix Android build and juncai@ comment. Created 3 years, 9 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 | « chrome/browser/usb/usb_chooser_controller.cc ('k') | chrome/browser/usb/web_usb_permission_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chrome/browser/usb/usb_chooser_controller.cc ('k') | chrome/browser/usb/web_usb_permission_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698