#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/webui/commerce/shopping_insights_side_panel_ui.h"
#include <memory>
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/commerce/shopping_service_factory.h"
#include "chrome/browser/feature_engagement/tracker_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/commerce/shopping_ui_handler_delegate.h"
#include "chrome/browser/ui/webui/top_chrome/top_chrome_web_ui_controller.h"
#include "chrome/browser/ui/webui/webui_load_timer.h"
#include "chrome/browser/ui/webui/webui_util.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/side_panel_commerce_resources.h"
#include "chrome/grit/side_panel_commerce_resources_map.h"
#include "chrome/grit/side_panel_shared_resources.h"
#include "chrome/grit/side_panel_shared_resources_map.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_data_source.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "ui/webui/color_change_listener/color_change_handler.h"
#include "ui/webui/resources/cr_components/commerce/shopping_service.mojom.h"
ShoppingInsightsSidePanelUI::ShoppingInsightsSidePanelUI(content::WebUI* web_ui)
: … { … }
ShoppingInsightsSidePanelUI::~ShoppingInsightsSidePanelUI() = default;
void ShoppingInsightsSidePanelUI::BindInterface(
mojo::PendingReceiver<color_change_listener::mojom::PageHandler>
pending_receiver) { … }
void ShoppingInsightsSidePanelUI::BindInterface(
mojo::PendingReceiver<
shopping_service::mojom::ShoppingServiceHandlerFactory> receiver) { … }
void ShoppingInsightsSidePanelUI::CreateShoppingServiceHandler(
mojo::PendingRemote<shopping_service::mojom::Page> page,
mojo::PendingReceiver<shopping_service::mojom::ShoppingServiceHandler>
receiver) { … }
WEB_UI_CONTROLLER_TYPE_IMPL(ShoppingInsightsSidePanelUI)