chromium/components/page_info/core/page_info_history_data_source.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;

// static
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) {}

}  // namespace page_info