#include "components/offline_pages/core/model/get_pages_task.h"
#include <algorithm>
#include <string>
#include <utility>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "components/offline_pages/core/offline_page_client_policy.h"
#include "components/offline_pages/core/offline_page_item_utils.h"
#include "components/offline_pages/core/offline_store_utils.h"
#include "sql/database.h"
#include "sql/statement.h"
#include "sql/transaction.h"
#include "url/gurl.h"
namespace offline_pages {
namespace {
ReadResult;
#define OFFLINE_PAGE_PROJECTION …
ClientId OfflinePageClientId(sql::Statement& statement) { … }
OfflinePageItem MakeOfflinePageItem(sql::Statement& statement) { … }
std::string RelaxedLikePattern(const GURL& url) { … }
}
GetPagesTask::ReadResult::ReadResult() = default;
GetPagesTask::ReadResult::ReadResult(const ReadResult& other) = default;
GetPagesTask::ReadResult::~ReadResult() = default;
GetPagesTask::GetPagesTask(OfflinePageMetadataStore* store,
const PageCriteria& criteria,
MultipleOfflinePageItemCallback callback)
: … { … }
GetPagesTask::~GetPagesTask() = default;
void GetPagesTask::Run() { … }
void GetPagesTask::CompleteWithResult(ReadResult result) { … }
ReadResult GetPagesTask::ReadPagesWithCriteriaSync(
const PageCriteria& criteria,
sql::Database* db) { … }
}