#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/webui/side_panel/companion/companion_side_panel_untrusted_ui.h"
#include "chrome/browser/companion/core/utils.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/views/side_panel/companion/companion_side_panel_controller_utils.h"
#include "chrome/browser/ui/views/side_panel/companion/companion_utils.h"
#include "chrome/browser/ui/webui/side_panel/companion/companion_page_handler.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/side_panel_companion_resources.h"
#include "chrome/grit/side_panel_companion_resources_map.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_data_source.h"
#include "url/gurl.h"
CompanionSidePanelUntrustedUI::CompanionSidePanelUntrustedUI(
content::WebUI* web_ui)
: … { … }
CompanionSidePanelUntrustedUI::~CompanionSidePanelUntrustedUI() = default;
void CompanionSidePanelUntrustedUI::BindInterface(
mojo::PendingReceiver<side_panel::mojom::CompanionPageHandlerFactory>
receiver) { … }
void CompanionSidePanelUntrustedUI::CreateCompanionPageHandler(
mojo::PendingReceiver<side_panel::mojom::CompanionPageHandler> receiver,
mojo::PendingRemote<side_panel::mojom::CompanionPage> page) { … }
void CompanionSidePanelUntrustedUI::DidFinishNavigation(
content::NavigationHandle* navigation_handle) { … }
base::WeakPtr<CompanionSidePanelUntrustedUI>
CompanionSidePanelUntrustedUI::GetWeakPtr() { … }
CompanionSidePanelUntrustedUIConfig::CompanionSidePanelUntrustedUIConfig()
: … { … }
bool CompanionSidePanelUntrustedUIConfig::IsWebUIEnabled(
content::BrowserContext* browser_context) { … }
WEB_UI_CONTROLLER_TYPE_IMPL(CompanionSidePanelUntrustedUI)