#include "chrome/browser/autofill/ui/autofill_image_fetcher_impl.h"
#include "chrome/browser/image_fetcher/image_fetcher_service_factory.h"
#include "chrome/browser/profiles/profile_key.h"
#include "components/autofill/core/browser/payments/constants.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/image_fetcher/core/image_fetcher_service.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/image/image_skia_operations.h"
#include "url/gurl.h"
namespace autofill {
namespace {
constexpr int kCardArtImageRadius = …;
constexpr double kImageOverlayAlpha = …;
constexpr SkColor kCardArtBorderColor = …;
constexpr int kCardArtBorderStrokeWidth = …;
constexpr int kCardArtImageWidth = …;
constexpr int kCardArtImageHeight = …;
}
AutofillImageFetcherImpl::AutofillImageFetcherImpl(ProfileKey* key)
: … { … }
AutofillImageFetcherImpl::~AutofillImageFetcherImpl() = default;
image_fetcher::ImageFetcher* AutofillImageFetcherImpl::GetImageFetcher() { … }
base::WeakPtr<AutofillImageFetcher> AutofillImageFetcherImpl::GetWeakPtr() { … }
GURL AutofillImageFetcherImpl::ResolveCardArtURL(const GURL& card_art_url) { … }
gfx::Image AutofillImageFetcherImpl::ResolveCardArtImage(
const GURL& card_art_url,
const gfx::Image& card_art_image) { … }
gfx::Image AutofillImageFetcherImpl::ApplyGreyOverlay(const gfx::Image& image) { … }
void AutofillImageFetcherImpl::InitializeImageFetcher() { … }
}