#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/webui/browsing_topics/browsing_topics_internals_ui.h"
#include "base/i18n/time_formatting.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_service.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/browsing_topics/browsing_topics_internals_page_handler.h"
#include "chrome/browser/ui/webui/webui_util.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/grit/browsing_topics_internals_resources.h"
#include "chrome/grit/browsing_topics_internals_resources_map.h"
#include "components/browsing_topics/mojom/browsing_topics_internals.mojom.h"
#include "components/privacy_sandbox/privacy_sandbox_prefs.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui_data_source.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
namespace {
void AddTopicsConsentStrings(content::WebUIDataSource* html_source,
Profile* profile) { … }
}
BrowsingTopicsInternalsUI::BrowsingTopicsInternalsUI(content::WebUI* web_ui)
: … { … }
BrowsingTopicsInternalsUI::~BrowsingTopicsInternalsUI() = default;
WEB_UI_CONTROLLER_TYPE_IMPL(BrowsingTopicsInternalsUI)
void BrowsingTopicsInternalsUI::BindInterface(
mojo::PendingReceiver<browsing_topics::mojom::PageHandler> receiver) { … }