#include "chrome/browser/ui/views/side_panel/history_clusters/history_clusters_side_panel_coordinator.h"
#include "base/functional/callback.h"
#include "base/strings/escape.h"
#include "base/strings/stringprintf.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/history_clusters/history_clusters_metrics_logger.h"
#include "chrome/browser/history_clusters/history_clusters_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/side_panel/history_clusters/history_clusters_side_panel_utils.h"
#include "chrome/browser/ui/views/side_panel/side_panel_coordinator.h"
#include "chrome/browser/ui/views/side_panel/side_panel_entry.h"
#include "chrome/browser/ui/views/side_panel/side_panel_registry.h"
#include "chrome/browser/ui/views/side_panel/side_panel_web_ui_view.h"
#include "chrome/browser/ui/webui/side_panel/history_clusters/history_clusters_side_panel_ui.h"
#include "chrome/common/webui_url_constants.h"
#include "components/history_clusters/core/features.h"
#include "components/history_clusters/core/history_clusters_prefs.h"
#include "components/history_clusters/core/history_clusters_service.h"
#include "components/history_clusters/core/url_constants.h"
#include "components/omnibox/browser/actions/history_clusters_action.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/models/image_model.h"
#include "ui/base/ui_base_features.h"
SidePanelWebUIViewT_HistoryClustersSidePanelUI;
BEGIN_TEMPLATE_METADATA(…)
HistoryClustersSidePanelCoordinator::HistoryClustersSidePanelCoordinator(
Browser* browser)
: … { … }
HistoryClustersSidePanelCoordinator::~HistoryClustersSidePanelCoordinator() =
default;
bool HistoryClustersSidePanelCoordinator::IsSupported(Profile* profile) { … }
void HistoryClustersSidePanelCoordinator::CreateAndRegisterEntry(
SidePanelRegistry* global_registry) { … }
std::unique_ptr<views::View>
HistoryClustersSidePanelCoordinator::CreateHistoryClustersWebView() { … }
void HistoryClustersSidePanelCoordinator::OnHistoryClustersPreferenceChanged() { … }
bool HistoryClustersSidePanelCoordinator::Show(const std::string& query) { … }
GURL HistoryClustersSidePanelCoordinator::GetOpenInNewTabURL() const { … }
BROWSER_USER_DATA_KEY_IMPL(HistoryClustersSidePanelCoordinator);