#ifndef CHROME_BROWSER_UI_WEBUI_SIDE_PANEL_CUSTOMIZE_CHROME_CUSTOMIZE_TOOLBAR_CUSTOMIZE_TOOLBAR_MOJOM_H_
#define CHROME_BROWSER_UI_WEBUI_SIDE_PANEL_CUSTOMIZE_CHROME_CUSTOMIZE_TOOLBAR_CUSTOMIZE_TOOLBAR_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 "chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar.mojom-features.h"
#include "chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar.mojom-shared.h"
#include "chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar.mojom-forward.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 side_panel::customize_chrome::mojom {
class CustomizeToolbarHandlerFactoryProxy;
template <typename ImplRefTraits>
class CustomizeToolbarHandlerFactoryStub;
class CustomizeToolbarHandlerFactoryRequestValidator;
class CustomizeToolbarHandlerFactory
: public CustomizeToolbarHandlerFactoryInterfaceBase { … };
class CustomizeToolbarHandlerProxy;
template <typename ImplRefTraits>
class CustomizeToolbarHandlerStub;
class CustomizeToolbarHandlerRequestValidator;
class CustomizeToolbarHandlerResponseValidator;
class CustomizeToolbarHandler
: public CustomizeToolbarHandlerInterfaceBase { … };
class CustomizeToolbarClientProxy;
template <typename ImplRefTraits>
class CustomizeToolbarClientStub;
class CustomizeToolbarClientRequestValidator;
class CustomizeToolbarClient
: public CustomizeToolbarClientInterfaceBase { … };
class CustomizeToolbarHandlerFactoryProxy
: public CustomizeToolbarHandlerFactory { … };
class CustomizeToolbarHandlerProxy
: public CustomizeToolbarHandler { … };
class CustomizeToolbarClientProxy
: public CustomizeToolbarClient { … };
class CustomizeToolbarHandlerFactoryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<CustomizeToolbarHandlerFactory>>
class CustomizeToolbarHandlerFactoryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
CustomizeToolbarHandlerFactoryStub() = default;
~CustomizeToolbarHandlerFactoryStub() 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 CustomizeToolbarHandlerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<CustomizeToolbarHandler>>
class CustomizeToolbarHandlerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
CustomizeToolbarHandlerStub() = default;
~CustomizeToolbarHandlerStub() 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 CustomizeToolbarClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<CustomizeToolbarClient>>
class CustomizeToolbarClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
CustomizeToolbarClientStub() = default;
~CustomizeToolbarClientStub() 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 CustomizeToolbarHandlerFactoryRequestValidator : public mojo::MessageReceiver { … };
class CustomizeToolbarHandlerRequestValidator : public mojo::MessageReceiver { … };
class CustomizeToolbarClientRequestValidator : public mojo::MessageReceiver { … };
class CustomizeToolbarHandlerResponseValidator : public mojo::MessageReceiver { … };
class Category { … };
template <typename T, Category::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, Category::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, Category::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, Category::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class Action { … };
template <typename T, Action::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, Action::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, Action::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, Action::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ActionPtr Action::Clone() const { … }
template <typename T, Action::EnableIfSame<T>*>
bool Action::Equals(const T& other_struct) const { … }
template <typename T, Action::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CategoryPtr Category::Clone() const { … }
template <typename T, Category::EnableIfSame<T>*>
bool Category::Equals(const T& other_struct) const { … }
template <typename T, Category::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::side_panel::customize_chrome::mojom::Action::DataView,
::side_panel::customize_chrome::mojom::ActionPtr> { … };
template <>
struct StructTraits<::side_panel::customize_chrome::mojom::Category::DataView,
::side_panel::customize_chrome::mojom::CategoryPtr> { … };
}
#endif