#ifndef SERVICES_METRICS_PUBLIC_MOJOM_UKM_INTERFACE_MOJOM_H_
#define SERVICES_METRICS_PUBLIC_MOJOM_UKM_INTERFACE_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/metrics/public/mojom/ukm_interface.mojom-features.h"
#include "services/metrics/public/mojom/ukm_interface.mojom-shared.h"
#include "services/metrics/public/mojom/ukm_interface.mojom-forward.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 ukm::mojom {
class SingularUkmInterfaceProxy;
template <typename ImplRefTraits>
class SingularUkmInterfaceStub;
class SingularUkmInterfaceRequestValidator;
class SingularUkmInterface
: public SingularUkmInterfaceInterfaceBase { … };
class UkmRecorderClientInterfaceProxy;
template <typename ImplRefTraits>
class UkmRecorderClientInterfaceStub;
class UkmRecorderClientInterfaceRequestValidator;
class UkmRecorderClientInterface
: public UkmRecorderClientInterfaceInterfaceBase { … };
class UkmRecorderInterfaceProxy;
template <typename ImplRefTraits>
class UkmRecorderInterfaceStub;
class UkmRecorderInterfaceRequestValidator;
class UkmRecorderInterface
: public UkmRecorderInterfaceInterfaceBase { … };
class UkmRecorderFactoryProxy;
template <typename ImplRefTraits>
class UkmRecorderFactoryStub;
class UkmRecorderFactoryRequestValidator;
class UkmRecorderFactory
: public UkmRecorderFactoryInterfaceBase { … };
class SingularUkmInterfaceProxy
: public SingularUkmInterface { … };
class UkmRecorderClientInterfaceProxy
: public UkmRecorderClientInterface { … };
class UkmRecorderInterfaceProxy
: public UkmRecorderInterface { … };
class UkmRecorderFactoryProxy
: public UkmRecorderFactory { … };
class SingularUkmInterfaceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SingularUkmInterface>>
class SingularUkmInterfaceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SingularUkmInterfaceStub() = default;
~SingularUkmInterfaceStub() 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 UkmRecorderClientInterfaceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<UkmRecorderClientInterface>>
class UkmRecorderClientInterfaceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
UkmRecorderClientInterfaceStub() = default;
~UkmRecorderClientInterfaceStub() 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 UkmRecorderInterfaceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<UkmRecorderInterface>>
class UkmRecorderInterfaceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
UkmRecorderInterfaceStub() = default;
~UkmRecorderInterfaceStub() 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 UkmRecorderFactoryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<UkmRecorderFactory>>
class UkmRecorderFactoryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
UkmRecorderFactoryStub() = default;
~UkmRecorderFactoryStub() 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 SingularUkmInterfaceRequestValidator : public mojo::MessageReceiver { … };
class UkmRecorderClientInterfaceRequestValidator : public mojo::MessageReceiver { … };
class UkmRecorderInterfaceRequestValidator : public mojo::MessageReceiver { … };
class UkmRecorderFactoryRequestValidator : public mojo::MessageReceiver { … };
class UkmEntry { … };
template <typename T, UkmEntry::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, UkmEntry::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, UkmEntry::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, UkmEntry::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class UkmRecorderParameters { … };
template <typename T, UkmRecorderParameters::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, UkmRecorderParameters::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, UkmRecorderParameters::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, UkmRecorderParameters::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
UkmEntryPtr UkmEntry::Clone() const { … }
template <typename T, UkmEntry::EnableIfSame<T>*>
bool UkmEntry::Equals(const T& other_struct) const { … }
template <typename T, UkmEntry::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
UkmRecorderParametersPtr UkmRecorderParameters::Clone() const { … }
template <typename T, UkmRecorderParameters::EnableIfSame<T>*>
bool UkmRecorderParameters::Equals(const T& other_struct) const { … }
template <typename T, UkmRecorderParameters::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::ukm::mojom::UkmEntry::DataView,
::ukm::mojom::UkmEntryPtr> { … };
template <>
struct StructTraits<::ukm::mojom::UkmRecorderParameters::DataView,
::ukm::mojom::UkmRecorderParametersPtr> { … };
}
#endif