#ifndef UI_WEBUI_RESOURCES_JS_BROWSER_COMMAND_BROWSER_COMMAND_MOJOM_H_
#define UI_WEBUI_RESOURCES_JS_BROWSER_COMMAND_BROWSER_COMMAND_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 "ui/webui/resources/js/browser_command/browser_command.mojom-features.h"
#include "ui/webui/resources/js/browser_command/browser_command.mojom-shared.h"
#include "ui/webui/resources/js/browser_command/browser_command.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 browser_command::mojom {
class CommandHandlerFactoryProxy;
template <typename ImplRefTraits>
class CommandHandlerFactoryStub;
class CommandHandlerFactoryRequestValidator;
class CommandHandlerFactory
: public CommandHandlerFactoryInterfaceBase { … };
class CommandHandlerProxy;
template <typename ImplRefTraits>
class CommandHandlerStub;
class CommandHandlerRequestValidator;
class CommandHandlerResponseValidator;
class CommandHandler
: public CommandHandlerInterfaceBase { … };
class CommandHandlerFactoryProxy
: public CommandHandlerFactory { … };
class CommandHandlerProxy
: public CommandHandler { … };
class CommandHandlerFactoryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<CommandHandlerFactory>>
class CommandHandlerFactoryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
CommandHandlerFactoryStub() = default;
~CommandHandlerFactoryStub() 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 CommandHandlerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<CommandHandler>>
class CommandHandlerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
CommandHandlerStub() = default;
~CommandHandlerStub() 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 CommandHandlerFactoryRequestValidator : public mojo::MessageReceiver { … };
class CommandHandlerRequestValidator : public mojo::MessageReceiver { … };
class CommandHandlerResponseValidator : public mojo::MessageReceiver { … };
class ClickInfo { … };
template <typename T, ClickInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ClickInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ClickInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ClickInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ClickInfoPtr ClickInfo::Clone() const { … }
template <typename T, ClickInfo::EnableIfSame<T>*>
bool ClickInfo::Equals(const T& other_struct) const { … }
template <typename T, ClickInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::browser_command::mojom::ClickInfo::DataView,
::browser_command::mojom::ClickInfoPtr> { … };
}
#endif