#include "components/feed/core/v2/tasks/prefetch_images_task.h"
#include <utility>
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "components/feed/core/proto/v2/wire/stream_structure.pb.h"
#include "components/feed/core/v2/config.h"
#include "components/feed/core/v2/feed_store.h"
#include "components/feed/core/v2/feed_stream.h"
#include "components/feed/core/v2/public/feed_api.h"
#include "components/feed/core/v2/stream_model.h"
#include "components/feed/core/v2/tasks/load_stream_from_store_task.h"
namespace feed {
namespace {
GURL SpecToGURL(const std::string& url_string) { … }
}
PrefetchImagesTask::PrefetchImagesTask(FeedStream* stream) : … { … }
PrefetchImagesTask::~PrefetchImagesTask() = default;
void PrefetchImagesTask::Run() { … }
void PrefetchImagesTask::LoadStreamComplete(
LoadStreamFromStoreTask::Result result) { … }
void PrefetchImagesTask::PrefetchImagesFromModel(const StreamModel& model) { … }
void PrefetchImagesTask::MaybePrefetchImage(const GURL& gurl) { … }
}