#ifndef COMPONENTS_AUTOFILL_CONTENT_COMMON_MOJOM_AUTOFILL_DRIVER_MOJOM_H_
#define COMPONENTS_AUTOFILL_CONTENT_COMMON_MOJOM_AUTOFILL_DRIVER_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 "components/autofill/content/common/mojom/autofill_driver.mojom-features.h"
#include "components/autofill/content/common/mojom/autofill_driver.mojom-shared.h"
#include "components/autofill/content/common/mojom/autofill_driver.mojom-forward.h"
#include "components/autofill/core/common/mojom/autofill_types.mojom.h"
#include "mojo/public/mojom/base/string16.mojom.h"
#include "mojo/public/mojom/base/text_direction.mojom-forward.h"
#include "mojo/public/mojom/base/time.mojom.h"
#include "ui/gfx/geometry/mojom/geometry.mojom.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 autofill::mojom {
class AutofillDriverProxy;
template <typename ImplRefTraits>
class AutofillDriverStub;
class AutofillDriverRequestValidator;
class AutofillDriver
: public AutofillDriverInterfaceBase { … };
class PasswordManagerDriverProxy;
template <typename ImplRefTraits>
class PasswordManagerDriverStub;
class PasswordManagerDriverRequestValidator;
class PasswordManagerDriver
: public PasswordManagerDriverInterfaceBase { … };
class PasswordGenerationDriverProxy;
template <typename ImplRefTraits>
class PasswordGenerationDriverStub;
class PasswordGenerationDriverRequestValidator;
class PasswordGenerationDriver
: public PasswordGenerationDriverInterfaceBase { … };
class AutofillDriverProxy
: public AutofillDriver { … };
class PasswordManagerDriverProxy
: public PasswordManagerDriver { … };
class PasswordGenerationDriverProxy
: public PasswordGenerationDriver { … };
class AutofillDriverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<AutofillDriver>>
class AutofillDriverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
AutofillDriverStub() = default;
~AutofillDriverStub() 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 PasswordManagerDriverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PasswordManagerDriver>>
class PasswordManagerDriverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PasswordManagerDriverStub() = default;
~PasswordManagerDriverStub() 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 PasswordGenerationDriverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PasswordGenerationDriver>>
class PasswordGenerationDriverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PasswordGenerationDriverStub() = default;
~PasswordGenerationDriverStub() 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 AutofillDriverRequestValidator : public mojo::MessageReceiver { … };
class PasswordManagerDriverRequestValidator : public mojo::MessageReceiver { … };
class PasswordGenerationDriverRequestValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif