#include "components/autofill/core/browser/autofill_client.h"
#include "base/memory/raw_ptr.h"
#include "base/no_destructor.h"
#include "build/build_config.h"
#include "components/autofill/core/browser/autofill_ablation_study.h"
#include "components/autofill/core/browser/autofill_compose_delegate.h"
#include "components/autofill/core/browser/autofill_plus_address_delegate.h"
#include "components/autofill/core/browser/autofill_prediction_improvements_delegate.h"
#include "components/autofill/core/browser/filling_product.h"
#include "components/autofill/core/browser/payments/credit_card_access_manager.h"
#include "components/autofill/core/browser/ui/popup_open_enums.h"
#include "components/autofill/core/browser/ui/suggestion.h"
#include "components/version_info/channel.h"
namespace autofill {
AutofillClient::PopupOpenArgs::PopupOpenArgs() = default;
AutofillClient::PopupOpenArgs::PopupOpenArgs(
const gfx::RectF& element_bounds,
base::i18n::TextDirection text_direction,
std::vector<Suggestion> suggestions,
AutofillSuggestionTriggerSource trigger_source,
int32_t form_control_ax_id,
PopupAnchorType anchor_type)
: … { … }
AutofillClient::PopupOpenArgs::PopupOpenArgs(
const AutofillClient::PopupOpenArgs&) = default;
AutofillClient::PopupOpenArgs::PopupOpenArgs(AutofillClient::PopupOpenArgs&&) =
default;
AutofillClient::PopupOpenArgs::~PopupOpenArgs() = default;
AutofillClient::PopupOpenArgs& AutofillClient::PopupOpenArgs::operator=(
const AutofillClient::PopupOpenArgs&) = default;
AutofillClient::PopupOpenArgs& AutofillClient::PopupOpenArgs::operator=(
AutofillClient::PopupOpenArgs&&) = default;
version_info::Channel AutofillClient::GetChannel() const { … }
bool AutofillClient::IsOffTheRecord() const { … }
AutofillCrowdsourcingManager* AutofillClient::GetCrowdsourcingManager() { … }
const PersonalDataManager* AutofillClient::GetPersonalDataManager() const { … }
AutofillOptimizationGuide* AutofillClient::GetAutofillOptimizationGuide()
const { … }
AutofillMlPredictionModelHandler*
AutofillClient::GetAutofillMlPredictionModelHandler() { … }
AutofillComposeDelegate* AutofillClient::GetComposeDelegate() { … }
AutofillPlusAddressDelegate* AutofillClient::GetPlusAddressDelegate() { … }
AutofillPredictionImprovementsDelegate*
AutofillClient::GetAutofillPredictionImprovementsDelegate() { … }
void AutofillClient::OfferPlusAddressCreation(
const url::Origin& main_frame_origin,
PlusAddressCallback callback) { … }
payments::PaymentsAutofillClient* AutofillClient::GetPaymentsAutofillClient() { … }
const payments::PaymentsAutofillClient*
AutofillClient::GetPaymentsAutofillClient() const { … }
GeoIpCountryCode AutofillClient::GetVariationConfigCountryCode() const { … }
profile_metrics::BrowserProfileType AutofillClient::GetProfileType() const { … }
FastCheckoutClient* AutofillClient::GetFastCheckoutClient() { … }
LogManager* AutofillClient::GetLogManager() const { … }
bool AutofillClient::ShouldFormatForLargeKeyboardAccessory() const { … }
const AutofillAblationStudy& AutofillClient::GetAblationStudy() const { … }
void AutofillClient::TriggerUserPerceptionOfAutofillSurvey(
FillingProduct filling_product,
const std::map<std::string, std::string>& field_filling_stats_data) { … }
std::unique_ptr<device_reauth::DeviceAuthenticator>
AutofillClient::GetDeviceAuthenticator() { … }
void AutofillClient::ShowAutofillFieldIphForManualFallbackFeature(
const FormFieldData&) { … }
void AutofillClient::HideAutofillFieldIphForManualFallbackFeature() { … }
void AutofillClient::NotifyAutofillManualFallbackUsed() { … }
std::optional<AutofillClient::PopupScreenLocation>
AutofillClient::GetPopupScreenLocation() const { … }
base::span<const Suggestion> AutofillClient::GetAutofillSuggestions() const { … }
void AutofillClient::UpdateAutofillSuggestions(
const std::vector<Suggestion>& suggestions,
FillingProduct main_filling_product,
AutofillSuggestionTriggerSource trigger_source) { … }
void AutofillClient::set_test_addresses(
std::vector<AutofillProfile> test_addresses) { … }
base::span<const AutofillProfile> AutofillClient::GetTestAddresses() const { … }
AutofillClient::PasswordFormClassification
AutofillClient::ClassifyAsPasswordForm(AutofillManager& manager,
FormGlobalId form_id,
FieldGlobalId field_id) const { … }
}