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_ |