#include "components/page_info/core/page_info_history_data_source.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/i18n/number_formatting.h"
#include "base/i18n/time_formatting.h"
#include "base/strings/string_util.h"
#include "components/history/core/browser/history_service.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
namespace page_info {
PageInfoHistoryDataSource::PageInfoHistoryDataSource(
history::HistoryService* history_service,
const GURL& site_url)
: … { … }
PageInfoHistoryDataSource::~PageInfoHistoryDataSource() = default;
std::u16string PageInfoHistoryDataSource::FormatLastVisitedTimestamp(
base::Time last_visit,
base::Time now) { … }
void PageInfoHistoryDataSource::GetLastVisitedTimestamp(
base::OnceCallback<void(std::optional<base::Time>)> callback) { … }
void PageInfoHistoryDataSource::OnLastVisitBeforeRecentNavigationsComplete(
const std::string& host_name,
base::Time query_start_time,
base::OnceCallback<void(std::optional<base::Time>)> callback,
history::HistoryLastVisitResult result) { … }
void PageInfoHistoryDataSource::OnLastVisitBeforeRecentNavigationsComplete2(
base::OnceCallback<void(std::optional<base::Time>)> callback,
history::HistoryLastVisitResult result) { … }
}