#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/webui/on_device_internals/on_device_internals_ui.h"
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service.h"
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/on_device_internals/on_device_internals_page_handler.h"
#include "chrome/browser/ui/webui/webui_util.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/grit/on_device_internals_resources.h"
#include "chrome/grit/on_device_internals_resources_map.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui_data_source.h"
OnDeviceInternalsUI::OnDeviceInternalsUI(content::WebUI* web_ui)
: … { … }
OnDeviceInternalsUI::~OnDeviceInternalsUI() = default;
WEB_UI_CONTROLLER_TYPE_IMPL(OnDeviceInternalsUI)
void OnDeviceInternalsUI::BindInterface(
mojo::PendingReceiver<mojom::OnDeviceInternalsPageHandlerFactory>
receiver) { … }
void OnDeviceInternalsUI::CreatePageHandler(
mojo::PendingRemote<mojom::OnDeviceInternalsPage> page,
mojo::PendingReceiver<mojom::OnDeviceInternalsPageHandler> receiver) { … }