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

Unified Diff: device/usb/webusb_descriptors.h

Issue 1739523002: WebUsb Android chooser UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 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
Index: device/usb/webusb_descriptors.h
diff --git a/device/usb/webusb_descriptors.h b/device/usb/webusb_descriptors.h
index 516adfc8e8e8ec9e6187c1cdf697d5da45c25d1e..a13440ce8bf44318e02349a91ef0897b1a9809bb 100644
--- a/device/usb/webusb_descriptors.h
+++ b/device/usb/webusb_descriptors.h
@@ -67,6 +67,11 @@ void ReadWebUsbDescriptors(
const base::Callback<void(scoped_ptr<WebUsbAllowedOrigins> allowed_origins,
const GURL& landing_page)>& callback);
+// Check if the origin is allowed.
+bool FindInWebUsbAllowedOrigins(
+ const device::WebUsbAllowedOrigins* allowed_origins,
+ const GURL& origin);
+
} // device
#endif // DEVICE_USB_WEBUSB_DESCRIPTORS_H_

Powered by Google App Engine
This is Rietveld 408576698