#ifndef IPC_IPC_MOJOM_H_
#define IPC_IPC_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 "ipc/ipc.mojom-features.h"
#include "ipc/ipc.mojom-shared.h"
#include "ipc/ipc.mojom-forward.h"
#include "mojo/public/interfaces/bindings/native_struct.mojom.h"
#include "mojo/public/mojom/base/generic_pending_associated_receiver.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"
#include "ipc/message_mojom_traits.h"
#include "base/component_export.h"
namespace IPC::mojom {
class ChannelProxy;
template <typename ImplRefTraits>
class ChannelStub;
class ChannelRequestValidator;
class COMPONENT_EXPORT(IPC_MOJOM) Channel
: public ChannelInterfaceBase { … };
class ChannelBootstrapProxy;
template <typename ImplRefTraits>
class ChannelBootstrapStub;
class ChannelBootstrapRequestValidator;
class COMPONENT_EXPORT(IPC_MOJOM) ChannelBootstrap
: public ChannelBootstrapInterfaceBase { … };
class COMPONENT_EXPORT(IPC_MOJOM) ChannelProxy
: public Channel { … };
class COMPONENT_EXPORT(IPC_MOJOM) ChannelBootstrapProxy
: public ChannelBootstrap { … };
class COMPONENT_EXPORT(IPC_MOJOM) ChannelStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<Channel>>
class ChannelStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ChannelStub() = default;
~ChannelStub() 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 COMPONENT_EXPORT(IPC_MOJOM) ChannelBootstrapStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ChannelBootstrap>>
class ChannelBootstrapStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ChannelBootstrapStub() = default;
~ChannelBootstrapStub() 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 COMPONENT_EXPORT(IPC_MOJOM) ChannelRequestValidator : public mojo::MessageReceiver { … };
class COMPONENT_EXPORT(IPC_MOJOM) ChannelBootstrapRequestValidator : public mojo::MessageReceiver { … };
class COMPONENT_EXPORT(IPC_MOJOM) Message { … };
template <typename T, Message::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, Message::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, Message::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, Message::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
MessagePtr Message::Clone() const { … }
template <typename T, Message::EnableIfSame<T>*>
bool Message::Equals(const T& other_struct) const { … }
template <typename T, Message::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct COMPONENT_EXPORT(IPC_MOJOM) StructTraits<::IPC::mojom::Message::DataView,
::IPC::mojom::MessagePtr> { … };
}
#endif