#include "chrome/browser/ui/views/page_info/page_info_history_controller.h"
#include "base/time/time.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/browser/ui/views/controls/rich_hover_button.h"
#include "chrome/browser/ui/views/page_info/page_info_main_view.h"
#include "chrome/browser/ui/views/page_info/page_info_view_factory.h"
#include "components/page_info/core/page_info_history_data_source.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/view.h"
PageInfoHistoryController::PageInfoHistoryController(
content::WebContents* web_contents,
const GURL& site_url)
: … { … }
PageInfoHistoryController::~PageInfoHistoryController() = default;
void PageInfoHistoryController::InitRow(views::View* container) { … }
void PageInfoHistoryController::UpdateRow(
std::optional<base::Time> last_visit) { … }
std::unique_ptr<views::View> PageInfoHistoryController::CreateHistoryButton(
std::u16string last_visit) { … }
void PageInfoHistoryController::OpenHistoryPage() { … }