#include "components/offline_pages/core/model/get_visuals_task.h"
#include "base/functional/bind.h"
#include "components/offline_pages/core/offline_page_metadata_store.h"
#include "components/offline_pages/core/offline_store_utils.h"
#include "sql/database.h"
#include "sql/statement.h"
#include "sql/transaction.h"
namespace offline_pages {
namespace {
std::unique_ptr<OfflinePageVisuals> GetVisualsSync(int64_t offline_id,
sql::Database* db) { … }
}
GetVisualsTask::GetVisualsTask(OfflinePageMetadataStore* store,
int64_t offline_id,
CompleteCallback complete_callback)
: … { … }
GetVisualsTask::~GetVisualsTask() = default;
void GetVisualsTask::Run() { … }
void GetVisualsTask::Complete(std::unique_ptr<OfflinePageVisuals> result) { … }
}