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

Unified Diff: device/usb/webusb_descriptors.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/web_usb_permission_provider.cc ('k') | device/usb/webusb_descriptors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/webusb_descriptors.h
diff --git a/device/usb/webusb_descriptors.h b/device/usb/webusb_descriptors.h
index c88b1f97389dd022677d7edb4a499a7a970bcdde..34a7d614ca0e590376a882cc8d75c34b751da666 100644
--- a/device/usb/webusb_descriptors.h
+++ b/device/usb/webusb_descriptors.h
@@ -12,6 +12,7 @@
#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
+#include "base/optional.h"
#include "url/gurl.h"
namespace device {
@@ -70,10 +71,13 @@ void ReadWebUsbDescriptors(
void(std::unique_ptr<WebUsbAllowedOrigins> allowed_origins,
const GURL& landing_page)>& callback);
-// Check if the origin is allowed.
+// Check if the origin is allowed to access a given device, optionally filtering
+// by configuration and function.
bool FindInWebUsbAllowedOrigins(
const device::WebUsbAllowedOrigins* allowed_origins,
- const GURL& origin);
+ const GURL& origin,
+ base::Optional<uint8_t> configuration_value,
+ base::Optional<uint8_t> first_interface);
} // device
« no previous file with comments | « chrome/browser/usb/web_usb_permission_provider.cc ('k') | device/usb/webusb_descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698