#include "chrome/browser/image_fetcher/image_decoder_impl.h"
#include <vector>
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/not_fatal_until.h"
#include "base/ranges/algorithm.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/image/image.h"
class ImageDecoderImpl::DecodeImageRequest
: public ::ImageDecoder::ImageRequest { … };
void ImageDecoderImpl::DecodeImageRequest::OnImageDecoded(
const SkBitmap& decoded_bitmap) { … }
void ImageDecoderImpl::DecodeImageRequest::OnDecodeImageFailed() { … }
void ImageDecoderImpl::DecodeImageRequest::RunCallbackAndRemoveRequest(
const gfx::Image& image) { … }
ImageDecoderImpl::ImageDecoderImpl() { … }
ImageDecoderImpl::~ImageDecoderImpl() { … }
void ImageDecoderImpl::DecodeImage(
const std::string& image_data,
const gfx::Size& desired_image_frame_size,
data_decoder::DataDecoder* data_decoder,
image_fetcher::ImageDecodedCallback callback) { … }
void ImageDecoderImpl::RemoveDecodeImageRequest(DecodeImageRequest* request) { … }