#include "components/autofill/core/browser/address_normalization_manager.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/address_normalizer.h"
#include "components/autofill/core/browser/autofill_data_util.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/browser/field_types.h"
namespace autofill {
namespace {
constexpr int kAddressNormalizationTimeoutSeconds = …;
}
class AddressNormalizationManager::NormalizerDelegate { … };
AddressNormalizationManager::AddressNormalizationManager(
AddressNormalizer* address_normalizer,
const std::string& app_locale)
: … { … }
AddressNormalizationManager::~AddressNormalizationManager() = default;
void AddressNormalizationManager::NormalizeAddressUntilFinalized(
AutofillProfile* profile) { … }
void AddressNormalizationManager::FinalizeWithCompletionCallback(
base::OnceClosure completion_callback) { … }
void AddressNormalizationManager::MaybeRunCompletionCallback() { … }
AddressNormalizationManager::NormalizerDelegate::NormalizerDelegate(
AddressNormalizationManager* owner,
AddressNormalizer* address_normalizer,
AutofillProfile* profile)
: … { … }
void AddressNormalizationManager::NormalizerDelegate::OnAddressNormalized(
bool success,
const AutofillProfile& normalized_profile) { … }
void AddressNormalizationManager::NormalizerDelegate::OnCompletion(
const AutofillProfile& profile) { … }
}