chromium/components/image_fetcher/core/reduced_mode_image_fetcher.h

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_IMAGE_FETCHER_CORE_REDUCED_MODE_IMAGE_FETCHER_H_
#define COMPONENTS_IMAGE_FETCHER_CORE_REDUCED_MODE_IMAGE_FETCHER_H_

#include "base/memory/raw_ptr.h"
#include "base/sequence_checker.h"
#include "components/image_fetcher/core/image_fetcher.h"
#include "url/gurl.h"

namespace image_fetcher {

class ImageFetcher;

// ReducedModeImageFetcher is used when Chrome is running in reduced mode. This
// image fetcher defers image decoding during fetching, since decoding in the
// utility process isn't available in the reduced mode. It ignores the
// ImageFetcherCallback, but will return the fetched but not-transcoding image
// to users by calling ImageDataFetcherCallback.
class ReducedModeImageFetcher : public ImageFetcher {};

}  // namespace image_fetcher

#endif  // COMPONENTS_IMAGE_FETCHER_CORE_REDUCED_MODE_IMAGE_FETCHER_H_