#include "components/autofill/core/browser/ui/autofill_image_fetcher.h"
#include "components/autofill/core/browser/data_model/credit_card_art_image.h"
#include "components/autofill/core/browser/metrics/autofill_metrics.h"
#include "components/autofill/core/browser/payments/constants.h"
#include "components/image_fetcher/core/image_fetcher.h"
#include "components/image_fetcher/core/request_metadata.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
namespace autofill {
namespace {
constexpr char kUmaClientName[] = …;
constexpr net::NetworkTrafficAnnotationTag kCardArtImageTrafficAnnotation = …;
}
void AutofillImageFetcher::FetchImagesForURLs(
base::span<const GURL> card_art_urls,
base::OnceCallback<void(
const std::vector<std::unique_ptr<CreditCardArtImage>>&)> callback) { … }
GURL AutofillImageFetcher::ResolveCardArtURL(const GURL& card_art_url) { … }
gfx::Image AutofillImageFetcher::ResolveCardArtImage(
const GURL& card_art_url,
const gfx::Image& card_art_image) { … }
void AutofillImageFetcher::OnCardArtImageFetched(
base::OnceCallback<void(std::unique_ptr<CreditCardArtImage>)>
barrier_callback,
const GURL& card_art_url,
const std::optional<base::TimeTicks>& fetch_image_request_timestamp,
const gfx::Image& card_art_image,
const image_fetcher::RequestMetadata& metadata) { … }
void AutofillImageFetcher::FetchImageForURL(
base::OnceCallback<void(std::unique_ptr<CreditCardArtImage>)>
barrier_callback,
const GURL& card_art_url) { … }
}