#ifndef SERVICES_DEVICE_PUBLIC_MOJOM_USB_DEVICE_MOJOM_H_
#define SERVICES_DEVICE_PUBLIC_MOJOM_USB_DEVICE_MOJOM_H_
#include <stdint.h>
#include <limits>
#include <optional>
#include <type_traits>
#include <utility>
#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "services/device/public/mojom/usb_device.mojom-features.h"
#include "services/device/public/mojom/usb_device.mojom-shared.h"
#include "services/device/public/mojom/usb_device.mojom-forward.h"
#include "mojo/public/mojom/base/read_only_buffer.mojom.h"
#include "mojo/public/mojom/base/string16.mojom.h"
#include "url/mojom/url.mojom.h"
#include <string>
#include <vector>
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
namespace device::mojom {
class UsbDeviceProxy;
template <typename ImplRefTraits>
class UsbDeviceStub;
class UsbDeviceRequestValidator;
class UsbDeviceResponseValidator;
class UsbDevice
: public UsbDeviceInterfaceBase { … };
class UsbDeviceClientProxy;
template <typename ImplRefTraits>
class UsbDeviceClientStub;
class UsbDeviceClientRequestValidator;
class UsbDeviceClient
: public UsbDeviceClientInterfaceBase { … };
class UsbDeviceProxy
: public UsbDevice { … };
class UsbDeviceClientProxy
: public UsbDeviceClient { … };
class UsbDeviceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<UsbDevice>>
class UsbDeviceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
UsbDeviceStub() = default;
~UsbDeviceStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class UsbDeviceClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<UsbDeviceClient>>
class UsbDeviceClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
UsbDeviceClientStub() = default;
~UsbDeviceClientStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class UsbDeviceRequestValidator : public mojo::MessageReceiver { … };
class UsbDeviceClientRequestValidator : public mojo::MessageReceiver { … };
class UsbDeviceResponseValidator : public mojo::MessageReceiver { … };
class UsbIsochronousPacket { … };
template <typename T, UsbIsochronousPacket::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, UsbIsochronousPacket::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, UsbIsochronousPacket::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, UsbIsochronousPacket::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class UsbOpenDeviceResult { … };
class UsbEndpointInfo { … };
template <typename T, UsbEndpointInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, UsbEndpointInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, UsbEndpointInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, UsbEndpointInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class UsbAlternateInterfaceInfo { … };
template <typename T, UsbAlternateInterfaceInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, UsbAlternateInterfaceInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, UsbAlternateInterfaceInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, UsbAlternateInterfaceInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class UsbInterfaceInfo { … };
template <typename T, UsbInterfaceInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, UsbInterfaceInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, UsbInterfaceInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, UsbInterfaceInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class UsbConfigurationInfo { … };
template <typename T, UsbConfigurationInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, UsbConfigurationInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, UsbConfigurationInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, UsbConfigurationInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class UsbDeviceInfo { … };
template <typename T, UsbDeviceInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, UsbDeviceInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, UsbDeviceInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, UsbDeviceInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class UsbControlTransferParams { … };
template <typename T, UsbControlTransferParams::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, UsbControlTransferParams::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, UsbControlTransferParams::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, UsbControlTransferParams::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
UsbOpenDeviceResultPtr UsbOpenDeviceResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, UsbOpenDeviceResult>::value>::type*>
bool UsbOpenDeviceResult::Equals(const T& other) const { … }
template <typename StructPtrType>
UsbEndpointInfoPtr UsbEndpointInfo::Clone() const { … }
template <typename T, UsbEndpointInfo::EnableIfSame<T>*>
bool UsbEndpointInfo::Equals(const T& other_struct) const { … }
template <typename T, UsbEndpointInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
UsbAlternateInterfaceInfoPtr UsbAlternateInterfaceInfo::Clone() const { … }
template <typename T, UsbAlternateInterfaceInfo::EnableIfSame<T>*>
bool UsbAlternateInterfaceInfo::Equals(const T& other_struct) const { … }
template <typename T, UsbAlternateInterfaceInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
UsbInterfaceInfoPtr UsbInterfaceInfo::Clone() const { … }
template <typename T, UsbInterfaceInfo::EnableIfSame<T>*>
bool UsbInterfaceInfo::Equals(const T& other_struct) const { … }
template <typename T, UsbInterfaceInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
UsbConfigurationInfoPtr UsbConfigurationInfo::Clone() const { … }
template <typename T, UsbConfigurationInfo::EnableIfSame<T>*>
bool UsbConfigurationInfo::Equals(const T& other_struct) const { … }
template <typename T, UsbConfigurationInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
UsbDeviceInfoPtr UsbDeviceInfo::Clone() const { … }
template <typename T, UsbDeviceInfo::EnableIfSame<T>*>
bool UsbDeviceInfo::Equals(const T& other_struct) const { … }
template <typename T, UsbDeviceInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
UsbControlTransferParamsPtr UsbControlTransferParams::Clone() const { … }
template <typename T, UsbControlTransferParams::EnableIfSame<T>*>
bool UsbControlTransferParams::Equals(const T& other_struct) const { … }
template <typename T, UsbControlTransferParams::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
UsbIsochronousPacketPtr UsbIsochronousPacket::Clone() const { … }
template <typename T, UsbIsochronousPacket::EnableIfSame<T>*>
bool UsbIsochronousPacket::Equals(const T& other_struct) const { … }
template <typename T, UsbIsochronousPacket::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::device::mojom::UsbEndpointInfo::DataView,
::device::mojom::UsbEndpointInfoPtr> { … };
template <>
struct StructTraits<::device::mojom::UsbAlternateInterfaceInfo::DataView,
::device::mojom::UsbAlternateInterfaceInfoPtr> { … };
template <>
struct StructTraits<::device::mojom::UsbInterfaceInfo::DataView,
::device::mojom::UsbInterfaceInfoPtr> { … };
template <>
struct StructTraits<::device::mojom::UsbConfigurationInfo::DataView,
::device::mojom::UsbConfigurationInfoPtr> { … };
template <>
struct StructTraits<::device::mojom::UsbDeviceInfo::DataView,
::device::mojom::UsbDeviceInfoPtr> { … };
template <>
struct StructTraits<::device::mojom::UsbControlTransferParams::DataView,
::device::mojom::UsbControlTransferParamsPtr> { … };
template <>
struct StructTraits<::device::mojom::UsbIsochronousPacket::DataView,
::device::mojom::UsbIsochronousPacketPtr> { … };
template <>
struct UnionTraits<::device::mojom::UsbOpenDeviceResult::DataView,
::device::mojom::UsbOpenDeviceResultPtr> { … };
}
#endif