// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_DEVICE_PUBLIC_CPP_USB_USB_IDS_H_ #define SERVICES_DEVICE_PUBLIC_CPP_USB_USB_IDS_H_ #include <stddef.h> #include <stdint.h> #include "base/memory/raw_ptr_exclusion.h" namespace device { struct UsbProduct { … }; // This structure is used in an array so the cumulative size is significant. // Order fields to minimize/eliminate alignment padding. // Chose field size based on contained data to further reduce structure size. // For example, uint16_t instead of size_t. struct UsbVendor { … }; // UsbIds provides a static mapping from a vendor ID to a name, as well as a // mapping from a vendor/product ID pair to a product name. class UsbIds { … }; } // namespace device #endif // SERVICES_DEVICE_PUBLIC_CPP_USB_USB_IDS_H_