#include "services/device/public/cpp/hid/hid_report_utils.h"
#include "base/containers/contains.h"
namespace device {
namespace {
const std::vector<mojom::HidReportDescriptionPtr>& ReportsForType(
const mojom::HidCollectionInfo& collection,
HidReportType report_type) { … }
}
bool IsAlwaysProtected(const mojom::HidUsageAndPage& hid_usage_and_page,
HidReportType report_type) { … }
bool CollectionHasUnprotectedReports(
const mojom::HidCollectionInfo& collection) { … }
const mojom::HidCollectionInfo* FindCollectionWithReport(
const mojom::HidDeviceInfo& device,
uint8_t report_id,
HidReportType report_type) { … }
}