| Index: components/usb_service/usb_device_filter.h
|
| diff --git a/components/usb_service/usb_device_filter.h b/components/usb_service/usb_device_filter.h
|
| index 76a3b2c73967f6bf2672e610988bdd7298d7e021..26911523c7c2c3223ab47474d50656e49647bfab 100644
|
| --- a/components/usb_service/usb_device_filter.h
|
| +++ b/components/usb_service/usb_device_filter.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef COMPONENTS_USB_SERVICE_USB_DEVICE_FILTER_H_
|
| #define COMPONENTS_USB_SERVICE_USB_DEVICE_FILTER_H_
|
|
|
| +#include <vector>
|
| +
|
| #include "base/memory/ref_counted.h"
|
| #include "components/usb_service/usb_service_export.h"
|
|
|
| @@ -27,9 +29,12 @@ class USB_SERVICE_EXPORT UsbDeviceFilter {
|
| void SetInterfaceSubclass(uint8 interface_subclass);
|
| void SetInterfaceProtocol(uint8 interface_protocol);
|
|
|
| - bool Matches(scoped_refptr<UsbDevice> device);
|
| + bool Matches(scoped_refptr<UsbDevice> device) const;
|
| base::Value* ToValue() const;
|
|
|
| + static bool MatchesAny(scoped_refptr<UsbDevice> device,
|
| + const std::vector<UsbDeviceFilter>& filters);
|
| +
|
| private:
|
| uint16 vendor_id_;
|
| uint16 product_id_;
|
|
|