#ifndef CONTENT_BROWSER_XR_WEBXR_INTERNALS_MOJOM_WEBXR_INTERNALS_MOJOM_H_
#define CONTENT_BROWSER_XR_WEBXR_INTERNALS_MOJOM_WEBXR_INTERNALS_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 "content/browser/xr/webxr_internals/mojom/webxr_internals.mojom-features.h"
#include "content/browser/xr/webxr_internals/mojom/webxr_internals.mojom-shared.h"
#include "content/browser/xr/webxr_internals/mojom/webxr_internals.mojom-forward.h"
#include "device/vr/public/mojom/xr_device.mojom-forward.h"
#include "device/vr/public/mojom/xr_session.mojom.h"
#include "mojo/public/mojom/base/time.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 webxr::mojom {
class WebXrInternalsHandlerProxy;
template <typename ImplRefTraits>
class WebXrInternalsHandlerStub;
class WebXrInternalsHandlerRequestValidator;
class WebXrInternalsHandlerResponseValidator;
class WebXrInternalsHandler
: public WebXrInternalsHandlerInterfaceBase { … };
class XRInternalsSessionListenerProxy;
template <typename ImplRefTraits>
class XRInternalsSessionListenerStub;
class XRInternalsSessionListenerRequestValidator;
class XRInternalsSessionListener
: public XRInternalsSessionListenerInterfaceBase { … };
class WebXrInternalsHandlerProxy
: public WebXrInternalsHandler { … };
class XRInternalsSessionListenerProxy
: public XRInternalsSessionListener { … };
class WebXrInternalsHandlerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<WebXrInternalsHandler>>
class WebXrInternalsHandlerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WebXrInternalsHandlerStub() = default;
~WebXrInternalsHandlerStub() 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 XRInternalsSessionListenerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<XRInternalsSessionListener>>
class XRInternalsSessionListenerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
XRInternalsSessionListenerStub() = default;
~XRInternalsSessionListenerStub() 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 WebXrInternalsHandlerRequestValidator : public mojo::MessageReceiver { … };
class XRInternalsSessionListenerRequestValidator : public mojo::MessageReceiver { … };
class WebXrInternalsHandlerResponseValidator : public mojo::MessageReceiver { … };
class DeviceInfo { … };
template <typename T, DeviceInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, DeviceInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, DeviceInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, DeviceInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class SessionRequestedRecord { … };
template <typename T, SessionRequestedRecord::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SessionRequestedRecord::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SessionRequestedRecord::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SessionRequestedRecord::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class SessionRejectedRecord { … };
template <typename T, SessionRejectedRecord::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SessionRejectedRecord::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SessionRejectedRecord::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SessionRejectedRecord::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class SessionStartedRecord { … };
template <typename T, SessionStartedRecord::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SessionStartedRecord::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SessionStartedRecord::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SessionStartedRecord::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class SessionStoppedRecord { … };
template <typename T, SessionStoppedRecord::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SessionStoppedRecord::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SessionStoppedRecord::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SessionStoppedRecord::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class RuntimeInfo { … };
template <typename T, RuntimeInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, RuntimeInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, RuntimeInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, RuntimeInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
DeviceInfoPtr DeviceInfo::Clone() const { … }
template <typename T, DeviceInfo::EnableIfSame<T>*>
bool DeviceInfo::Equals(const T& other_struct) const { … }
template <typename T, DeviceInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SessionRequestedRecordPtr SessionRequestedRecord::Clone() const { … }
template <typename T, SessionRequestedRecord::EnableIfSame<T>*>
bool SessionRequestedRecord::Equals(const T& other_struct) const { … }
template <typename T, SessionRequestedRecord::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SessionRejectedRecordPtr SessionRejectedRecord::Clone() const { … }
template <typename T, SessionRejectedRecord::EnableIfSame<T>*>
bool SessionRejectedRecord::Equals(const T& other_struct) const { … }
template <typename T, SessionRejectedRecord::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SessionStartedRecordPtr SessionStartedRecord::Clone() const { … }
template <typename T, SessionStartedRecord::EnableIfSame<T>*>
bool SessionStartedRecord::Equals(const T& other_struct) const { … }
template <typename T, SessionStartedRecord::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SessionStoppedRecordPtr SessionStoppedRecord::Clone() const { … }
template <typename T, SessionStoppedRecord::EnableIfSame<T>*>
bool SessionStoppedRecord::Equals(const T& other_struct) const { … }
template <typename T, SessionStoppedRecord::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
RuntimeInfoPtr RuntimeInfo::Clone() const { … }
template <typename T, RuntimeInfo::EnableIfSame<T>*>
bool RuntimeInfo::Equals(const T& other_struct) const { … }
template <typename T, RuntimeInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::webxr::mojom::DeviceInfo::DataView,
::webxr::mojom::DeviceInfoPtr> { … };
template <>
struct StructTraits<::webxr::mojom::SessionRequestedRecord::DataView,
::webxr::mojom::SessionRequestedRecordPtr> { … };
template <>
struct StructTraits<::webxr::mojom::SessionRejectedRecord::DataView,
::webxr::mojom::SessionRejectedRecordPtr> { … };
template <>
struct StructTraits<::webxr::mojom::SessionStartedRecord::DataView,
::webxr::mojom::SessionStartedRecordPtr> { … };
template <>
struct StructTraits<::webxr::mojom::SessionStoppedRecord::DataView,
::webxr::mojom::SessionStoppedRecordPtr> { … };
template <>
struct StructTraits<::webxr::mojom::RuntimeInfo::DataView,
::webxr::mojom::RuntimeInfoPtr> { … };
}
#endif