#include "components/offline_pages/core/model/mark_page_accessed_task.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.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 "sql/database.h"
#include "sql/statement.h"
#include "sql/transaction.h"
namespace offline_pages {
namespace {
#define OFFLINE_PAGES_TABLE_NAME …
void ReportAccessHistogram(int64_t offline_id,
base::Time access_time,
sql::Database* db) { … }
bool MarkPageAccessedSync(const base::Time& access_time,
int64_t offline_id,
sql::Database* db) { … }
}
MarkPageAccessedTask::MarkPageAccessedTask(OfflinePageMetadataStore* store,
int64_t offline_id,
const base::Time& access_time)
: … { … }
MarkPageAccessedTask::~MarkPageAccessedTask() { … }
void MarkPageAccessedTask::Run() { … }
void MarkPageAccessedTask::OnMarkPageAccessedDone(bool result) { … }
}