#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "content/browser/ukm_internals_ui.h"
#include <stddef.h>
#include <memory>
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "components/grit/ukm_resources.h"
#include "components/grit/ukm_resources_map.h"
#include "components/ukm/debug/ukm_debug_data_extractor.h"
#include "components/ukm/ukm_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.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 "content/public/browser/web_ui_message_handler.h"
#include "content/public/common/content_client.h"
#include "content/public/common/url_constants.h"
namespace content {
namespace {
void CreateAndAddUkmHTMLSource(BrowserContext* browser_context) { … }
class UkmMessageHandler : public WebUIMessageHandler { … };
UkmMessageHandler::UkmMessageHandler(const ukm::UkmService* ukm_service)
: … { … }
UkmMessageHandler::~UkmMessageHandler() { … }
void UkmMessageHandler::HandleRequestUkmData(
const base::Value::List& args_list) { … }
void UkmMessageHandler::RegisterMessages() { … }
}
UkmInternalsUI::UkmInternalsUI(WebUI* web_ui) : … { … }
}