#include "components/offline_pages/core/model/add_page_task.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "components/offline_pages/core/offline_page_item.h"
#include "components/offline_pages/core/offline_page_metadata_store.h"
#include "components/offline_pages/core/offline_page_types.h"
#include "components/offline_pages/core/offline_store_types.h"
#include "components/offline_pages/core/offline_store_utils.h"
#include "components/offline_pages/task/task.h"
#include "sql/database.h"
#include "sql/statement.h"
namespace offline_pages {
namespace {
AddPageResult ItemActionStatusToAddPageResult(ItemActionStatus status) { … }
ItemActionStatus AddOfflinePageSync(const OfflinePageItem& item,
sql::Database* db) { … }
}
AddPageTask::AddPageTask(OfflinePageMetadataStore* store,
const OfflinePageItem& offline_page,
AddPageTaskCallback callback)
: … { … }
AddPageTask::~AddPageTask() { … }
void AddPageTask::Run() { … }
void AddPageTask::OnAddPageDone(ItemActionStatus status) { … }
void AddPageTask::InformAddPageDone(AddPageResult result) { … }
}