#include "services/device/hid/hid_device_info.h"
#include "base/containers/contains.h"
#include "base/uuid.h"
#include "build/build_config.h"
#include "services/device/public/cpp/hid/hid_blocklist.h"
#include "services/device/public/cpp/hid/hid_report_descriptor.h"
namespace device {
HidDeviceInfo::PlatformDeviceIdEntry::PlatformDeviceIdEntry(
base::flat_set<uint8_t> report_ids,
HidPlatformDeviceId platform_device_id)
: … { … }
HidDeviceInfo::PlatformDeviceIdEntry::PlatformDeviceIdEntry(
const PlatformDeviceIdEntry& entry) = default;
HidDeviceInfo::PlatformDeviceIdEntry&
HidDeviceInfo::PlatformDeviceIdEntry::operator=(
const PlatformDeviceIdEntry& entry) = default;
HidDeviceInfo::PlatformDeviceIdEntry::~PlatformDeviceIdEntry() = default;
HidDeviceInfo::HidDeviceInfo(HidPlatformDeviceId platform_device_id,
const std::string& physical_device_id,
uint16_t vendor_id,
uint16_t product_id,
const std::string& product_name,
const std::string& serial_number,
mojom::HidBusType bus_type,
base::span<const uint8_t> report_descriptor,
std::string device_node) { … }
HidDeviceInfo::HidDeviceInfo(HidPlatformDeviceId platform_device_id,
const std::string& physical_device_id,
const std::string& interface_id,
uint16_t vendor_id,
uint16_t product_id,
const std::string& product_name,
const std::string& serial_number,
mojom::HidBusType bus_type,
mojom::HidCollectionInfoPtr collection,
size_t max_input_report_size,
size_t max_output_report_size,
size_t max_feature_report_size)
: … { … }
HidDeviceInfo::~HidDeviceInfo() = default;
void HidDeviceInfo::AppendDeviceInfo(scoped_refptr<HidDeviceInfo> device_info) { … }
}