chromium/out/Default/gen/components/autofill/content/common/mojom/autofill_agent.mojom.cc

// components/autofill/content/common/mojom/autofill_agent.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "components/autofill/content/common/mojom/autofill_agent.mojom.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "components/autofill/content/common/mojom/autofill_agent.mojom-params-data.h"
#include "components/autofill/content/common/mojom/autofill_agent.mojom-shared-message-ids.h"

#include "components/autofill/content/common/mojom/autofill_agent.mojom-import-headers.h"
#include "components/autofill/content/common/mojom/autofill_agent.mojom-test-utils.h"


namespace autofill::mojom {
const char AutofillAgent::Name_[] =;

AutofillAgent::IPCStableHashFunction AutofillAgent::MessageToMethodInfo_(mojo::Message& message) {}


const char* AutofillAgent::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t AutofillAgent::TriggerFormExtraction_Sym::IPCStableHash() {}
uint32_t AutofillAgent::TriggerFormExtractionWithResponse_Sym::IPCStableHash() {}
uint32_t AutofillAgent::ApplyFieldsAction_Sym::IPCStableHash() {}
uint32_t AutofillAgent::ApplyFieldAction_Sym::IPCStableHash() {}
uint32_t AutofillAgent::ExtractForm_Sym::IPCStableHash() {}
uint32_t AutofillAgent::FieldTypePredictionsAvailable_Sym::IPCStableHash() {}
uint32_t AutofillAgent::ClearPreviewedForm_Sym::IPCStableHash() {}
uint32_t AutofillAgent::TriggerSuggestions_Sym::IPCStableHash() {}
uint32_t AutofillAgent::SetSuggestionAvailability_Sym::IPCStableHash() {}
uint32_t AutofillAgent::AcceptDataListSuggestion_Sym::IPCStableHash() {}
uint32_t AutofillAgent::PreviewPasswordSuggestion_Sym::IPCStableHash() {}
uint32_t AutofillAgent::PreviewPasswordGenerationSuggestion_Sym::IPCStableHash() {}
uint32_t AutofillAgent::GetPotentialLastFourCombinationsForStandaloneCvc_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class AutofillAgent_TriggerFormExtractionWithResponse_ForwardToCallback
    : public mojo::MessageReceiver {};

class AutofillAgent_ExtractForm_ForwardToCallback
    : public mojo::MessageReceiver {};

class AutofillAgent_GetPotentialLastFourCombinationsForStandaloneCvc_ForwardToCallback
    : public mojo::MessageReceiver {};

AutofillAgentProxy::AutofillAgentProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void AutofillAgentProxy::TriggerFormExtraction(
    ) {}

void AutofillAgentProxy::TriggerFormExtractionWithResponse(
    TriggerFormExtractionWithResponseCallback callback) {}

void AutofillAgentProxy::ApplyFieldsAction(
    ::autofill::mojom::FormActionType in_action_type, ::autofill::mojom::ActionPersistence in_action_persistence, const std::vector<::autofill::FormFieldData::FillData>& in_fields) {}

void AutofillAgentProxy::ApplyFieldAction(
    ::autofill::mojom::FieldActionType in_action_type, ::autofill::mojom::ActionPersistence in_action_persistence, ::autofill::FieldRendererId in_field, const ::std::u16string& in_value) {}

void AutofillAgentProxy::ExtractForm(
    ::autofill::FormRendererId in_form, ExtractFormCallback callback) {}

void AutofillAgentProxy::FieldTypePredictionsAvailable(
    const std::vector<::autofill::FormDataPredictions>& in_forms) {}

void AutofillAgentProxy::ClearPreviewedForm(
    ) {}

void AutofillAgentProxy::TriggerSuggestions(
    ::autofill::FieldRendererId in_field, ::autofill::mojom::AutofillSuggestionTriggerSource in_trigger_source) {}

void AutofillAgentProxy::SetSuggestionAvailability(
    ::autofill::FieldRendererId in_field, ::autofill::mojom::AutofillSuggestionAvailability in_suggestion_availability) {}

void AutofillAgentProxy::AcceptDataListSuggestion(
    ::autofill::FieldRendererId in_field, const ::std::u16string& in_value) {}

void AutofillAgentProxy::PreviewPasswordSuggestion(
    const ::std::u16string& in_username, const ::std::u16string& in_password) {}

void AutofillAgentProxy::PreviewPasswordGenerationSuggestion(
    const ::std::u16string& in_password) {}

void AutofillAgentProxy::GetPotentialLastFourCombinationsForStandaloneCvc(
    GetPotentialLastFourCombinationsForStandaloneCvcCallback callback) {}
class AutofillAgent_TriggerFormExtractionWithResponse_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool AutofillAgent_TriggerFormExtractionWithResponse_ForwardToCallback::Accept(
    mojo::Message* message) {}

void AutofillAgent_TriggerFormExtractionWithResponse_ProxyToResponder::Run(
    bool in_success) {}
class AutofillAgent_ExtractForm_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool AutofillAgent_ExtractForm_ForwardToCallback::Accept(
    mojo::Message* message) {}

void AutofillAgent_ExtractForm_ProxyToResponder::Run(
    const std::optional<::autofill::FormData>& in_form) {}
class AutofillAgent_GetPotentialLastFourCombinationsForStandaloneCvc_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool AutofillAgent_GetPotentialLastFourCombinationsForStandaloneCvc_ForwardToCallback::Accept(
    mojo::Message* message) {}

void AutofillAgent_GetPotentialLastFourCombinationsForStandaloneCvc_ProxyToResponder::Run(
    const std::vector<std::string>& in_potential_matches) {}

// static
bool AutofillAgentStubDispatch::Accept(
    AutofillAgent* impl,
    mojo::Message* message) {}

// static
bool AutofillAgentStubDispatch::AcceptWithResponder(
    AutofillAgent* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kAutofillAgentValidationInfo[] =;

bool AutofillAgentRequestValidator::Accept(mojo::Message* message) {}

bool AutofillAgentResponseValidator::Accept(mojo::Message* message) {}
const char PasswordAutofillAgent::Name_[] =;

PasswordAutofillAgent::IPCStableHashFunction PasswordAutofillAgent::MessageToMethodInfo_(mojo::Message& message) {}


const char* PasswordAutofillAgent::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PasswordAutofillAgent::SetPasswordFillData_Sym::IPCStableHash() {}
uint32_t PasswordAutofillAgent::FillPasswordSuggestion_Sym::IPCStableHash() {}
uint32_t PasswordAutofillAgent::InformNoSavedCredentials_Sym::IPCStableHash() {}
uint32_t PasswordAutofillAgent::FillIntoFocusedField_Sym::IPCStableHash() {}
uint32_t PasswordAutofillAgent::PreviewField_Sym::IPCStableHash() {}
uint32_t PasswordAutofillAgent::FillField_Sym::IPCStableHash() {}
uint32_t PasswordAutofillAgent::SetLoggingState_Sym::IPCStableHash() {}
uint32_t PasswordAutofillAgent::AnnotateFieldsWithParsingResult_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

PasswordAutofillAgentProxy::PasswordAutofillAgentProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void PasswordAutofillAgentProxy::SetPasswordFillData(
    const ::autofill::PasswordFormFillData& in_form_data) {}

void PasswordAutofillAgentProxy::FillPasswordSuggestion(
    const ::std::u16string& in_username, const ::std::u16string& in_password) {}

void PasswordAutofillAgentProxy::InformNoSavedCredentials(
    bool in_should_show_popup_without_passwords) {}

void PasswordAutofillAgentProxy::FillIntoFocusedField(
    bool in_is_password, const ::std::u16string& in_credential) {}

void PasswordAutofillAgentProxy::PreviewField(
    ::autofill::FieldRendererId in_field_id, const ::std::u16string& in_value) {}

void PasswordAutofillAgentProxy::FillField(
    ::autofill::FieldRendererId in_field_id, const ::std::u16string& in_value) {}

void PasswordAutofillAgentProxy::SetLoggingState(
    bool in_active) {}

void PasswordAutofillAgentProxy::AnnotateFieldsWithParsingResult(
    const ::autofill::ParsingResult& in_parsing_result) {}

// static
bool PasswordAutofillAgentStubDispatch::Accept(
    PasswordAutofillAgent* impl,
    mojo::Message* message) {}

// static
bool PasswordAutofillAgentStubDispatch::AcceptWithResponder(
    PasswordAutofillAgent* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kPasswordAutofillAgentValidationInfo[] =;

bool PasswordAutofillAgentRequestValidator::Accept(mojo::Message* message) {}

const char PasswordGenerationAgent::Name_[] =;

PasswordGenerationAgent::IPCStableHashFunction PasswordGenerationAgent::MessageToMethodInfo_(mojo::Message& message) {}


const char* PasswordGenerationAgent::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PasswordGenerationAgent::GeneratedPasswordAccepted_Sym::IPCStableHash() {}
uint32_t PasswordGenerationAgent::TriggeredGeneratePassword_Sym::IPCStableHash() {}
uint32_t PasswordGenerationAgent::FoundFormEligibleForGeneration_Sym::IPCStableHash() {}
uint32_t PasswordGenerationAgent::FocusNextFieldAfterPasswords_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class PasswordGenerationAgent_TriggeredGeneratePassword_ForwardToCallback
    : public mojo::MessageReceiver {};

PasswordGenerationAgentProxy::PasswordGenerationAgentProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void PasswordGenerationAgentProxy::GeneratedPasswordAccepted(
    const ::std::u16string& in_generated_password) {}

void PasswordGenerationAgentProxy::TriggeredGeneratePassword(
    TriggeredGeneratePasswordCallback callback) {}

void PasswordGenerationAgentProxy::FoundFormEligibleForGeneration(
    const ::autofill::PasswordFormGenerationData& in_form) {}

void PasswordGenerationAgentProxy::FocusNextFieldAfterPasswords(
    ) {}
class PasswordGenerationAgent_TriggeredGeneratePassword_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PasswordGenerationAgent_TriggeredGeneratePassword_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PasswordGenerationAgent_TriggeredGeneratePassword_ProxyToResponder::Run(
    const std::optional<::autofill::password_generation::PasswordGenerationUIData>& in_data) {}

// static
bool PasswordGenerationAgentStubDispatch::Accept(
    PasswordGenerationAgent* impl,
    mojo::Message* message) {}

// static
bool PasswordGenerationAgentStubDispatch::AcceptWithResponder(
    PasswordGenerationAgent* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kPasswordGenerationAgentValidationInfo[] =;

bool PasswordGenerationAgentRequestValidator::Accept(mojo::Message* message) {}

bool PasswordGenerationAgentResponseValidator::Accept(mojo::Message* message) {}


}  // autofill::mojom


namespace mojo {

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace autofill::mojom {


void AutofillAgentInterceptorForTesting::TriggerFormExtraction() {}
void AutofillAgentInterceptorForTesting::TriggerFormExtractionWithResponse(TriggerFormExtractionWithResponseCallback callback) {}
void AutofillAgentInterceptorForTesting::ApplyFieldsAction(::autofill::mojom::FormActionType action_type, ::autofill::mojom::ActionPersistence action_persistence, const std::vector<::autofill::FormFieldData::FillData>& fields) {}
void AutofillAgentInterceptorForTesting::ApplyFieldAction(::autofill::mojom::FieldActionType action_type, ::autofill::mojom::ActionPersistence action_persistence, ::autofill::FieldRendererId field, const ::std::u16string& value) {}
void AutofillAgentInterceptorForTesting::ExtractForm(::autofill::FormRendererId form, ExtractFormCallback callback) {}
void AutofillAgentInterceptorForTesting::FieldTypePredictionsAvailable(const std::vector<::autofill::FormDataPredictions>& forms) {}
void AutofillAgentInterceptorForTesting::ClearPreviewedForm() {}
void AutofillAgentInterceptorForTesting::TriggerSuggestions(::autofill::FieldRendererId field, ::autofill::mojom::AutofillSuggestionTriggerSource trigger_source) {}
void AutofillAgentInterceptorForTesting::SetSuggestionAvailability(::autofill::FieldRendererId field, ::autofill::mojom::AutofillSuggestionAvailability suggestion_availability) {}
void AutofillAgentInterceptorForTesting::AcceptDataListSuggestion(::autofill::FieldRendererId field, const ::std::u16string& value) {}
void AutofillAgentInterceptorForTesting::PreviewPasswordSuggestion(const ::std::u16string& username, const ::std::u16string& password) {}
void AutofillAgentInterceptorForTesting::PreviewPasswordGenerationSuggestion(const ::std::u16string& password) {}
void AutofillAgentInterceptorForTesting::GetPotentialLastFourCombinationsForStandaloneCvc(GetPotentialLastFourCombinationsForStandaloneCvcCallback callback) {}
AutofillAgentAsyncWaiter::AutofillAgentAsyncWaiter(
    AutofillAgent* proxy) :{}

AutofillAgentAsyncWaiter::~AutofillAgentAsyncWaiter() = default;

void AutofillAgentAsyncWaiter::TriggerFormExtractionWithResponse(
    bool* out_success) {}

bool AutofillAgentAsyncWaiter::TriggerFormExtractionWithResponse(
    ) {}

void AutofillAgentAsyncWaiter::ExtractForm(
    ::autofill::FormRendererId form, std::optional<::autofill::FormData>* out_form) {}

std::optional<::autofill::FormData> AutofillAgentAsyncWaiter::ExtractForm(
    ::autofill::FormRendererId form) {}

void AutofillAgentAsyncWaiter::GetPotentialLastFourCombinationsForStandaloneCvc(
    std::vector<std::string>* out_potential_matches) {}

std::vector<std::string> AutofillAgentAsyncWaiter::GetPotentialLastFourCombinationsForStandaloneCvc(
    ) {}




void PasswordAutofillAgentInterceptorForTesting::SetPasswordFillData(const ::autofill::PasswordFormFillData& form_data) {}
void PasswordAutofillAgentInterceptorForTesting::FillPasswordSuggestion(const ::std::u16string& username, const ::std::u16string& password) {}
void PasswordAutofillAgentInterceptorForTesting::InformNoSavedCredentials(bool should_show_popup_without_passwords) {}
void PasswordAutofillAgentInterceptorForTesting::FillIntoFocusedField(bool is_password, const ::std::u16string& credential) {}
void PasswordAutofillAgentInterceptorForTesting::PreviewField(::autofill::FieldRendererId field_id, const ::std::u16string& value) {}
void PasswordAutofillAgentInterceptorForTesting::FillField(::autofill::FieldRendererId field_id, const ::std::u16string& value) {}
void PasswordAutofillAgentInterceptorForTesting::SetLoggingState(bool active) {}
void PasswordAutofillAgentInterceptorForTesting::AnnotateFieldsWithParsingResult(const ::autofill::ParsingResult& parsing_result) {}
PasswordAutofillAgentAsyncWaiter::PasswordAutofillAgentAsyncWaiter(
    PasswordAutofillAgent* proxy) :{}

PasswordAutofillAgentAsyncWaiter::~PasswordAutofillAgentAsyncWaiter() = default;




void PasswordGenerationAgentInterceptorForTesting::GeneratedPasswordAccepted(const ::std::u16string& generated_password) {}
void PasswordGenerationAgentInterceptorForTesting::TriggeredGeneratePassword(TriggeredGeneratePasswordCallback callback) {}
void PasswordGenerationAgentInterceptorForTesting::FoundFormEligibleForGeneration(const ::autofill::PasswordFormGenerationData& form) {}
void PasswordGenerationAgentInterceptorForTesting::FocusNextFieldAfterPasswords() {}
PasswordGenerationAgentAsyncWaiter::PasswordGenerationAgentAsyncWaiter(
    PasswordGenerationAgent* proxy) :{}

PasswordGenerationAgentAsyncWaiter::~PasswordGenerationAgentAsyncWaiter() = default;

void PasswordGenerationAgentAsyncWaiter::TriggeredGeneratePassword(
    std::optional<::autofill::password_generation::PasswordGenerationUIData>* out_data) {}

std::optional<::autofill::password_generation::PasswordGenerationUIData> PasswordGenerationAgentAsyncWaiter::TriggeredGeneratePassword(
    ) {}






}  // autofill::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif