#include "components/offline_pages/core/model/update_publish_id_task.h"
#include "base/functional/bind.h"
#include "components/offline_pages/core/client_namespace_constants.h"
#include "components/offline_pages/core/model/offline_page_model_utils.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 {
bool UpdatePublishIdSync(const PublishedArchiveId& publish_id,
int64_t offline_id,
sql::Database* db) { … }
}
UpdatePublishIdTask::UpdatePublishIdTask(
OfflinePageMetadataStore* store,
int64_t offline_id,
const PublishedArchiveId& publish_id,
base::OnceCallback<void(bool)> callback)
: … { … }
UpdatePublishIdTask::~UpdatePublishIdTask() { … }
void UpdatePublishIdTask::Run() { … }
void UpdatePublishIdTask::OnUpdatePublishIdDone(bool result) { … }
}