#include "components/autofill/core/browser/payments/autofill_offer_manager.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/ranges/ranges.h"
#include "components/autofill/core/browser/autofill_client.h"
#include "components/autofill/core/browser/data_model/autofill_offer_data.h"
#include "components/autofill/core/browser/data_model/credit_card.h"
#include "components/autofill/core/browser/payments_data_manager.h"
#include "components/autofill/core/browser/personal_data_manager.h"
#include "components/autofill/core/browser/ui/suggestion_type.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/feature_engagement/public/feature_constants.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
namespace autofill {
AutofillOfferManager::AutofillOfferManager(PersonalDataManager* personal_data)
: … { … }
AutofillOfferManager::~AutofillOfferManager() = default;
void AutofillOfferManager::OnPaymentsDataChanged() { … }
void AutofillOfferManager::OnDidNavigateFrame(AutofillClient& client) { … }
AutofillOfferManager::CardLinkedOffersMap
AutofillOfferManager::GetCardLinkedOffersMap(
const GURL& last_committed_primary_main_frame_url) const { … }
bool AutofillOfferManager::IsUrlEligible(
const GURL& last_committed_primary_main_frame_url) { … }
AutofillOfferData* AutofillOfferManager::GetOfferForUrl(
const GURL& last_committed_primary_main_frame_url) { … }
void AutofillOfferManager::UpdateEligibleMerchantDomains() { … }
}