#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/webui/privacy_sandbox/privacy_sandbox_dialog_ui.h"
#include <memory>
#include <utility>
#include "base/values.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/privacy_sandbox/privacy_sandbox_dialog_handler.h"
#include "chrome/browser/ui/webui/webui_util.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/grit/branded_strings.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/privacy_sandbox_resources.h"
#include "chrome/grit/privacy_sandbox_resources_map.h"
#include "components/privacy_sandbox/privacy_sandbox_features.h"
#include "components/strings/grit/components_strings.h"
#include "components/strings/grit/privacy_sandbox_strings.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 "ui/base/l10n/l10n_util.h"
#include "ui/base/webui/web_ui_util.h"
inline constexpr char16_t kPrivacyPolicyFunc[] = …;
inline constexpr char16_t kPrivacyPolicyId[] = …;
PrivacySandboxDialogUI::PrivacySandboxDialogUI(content::WebUI* web_ui)
: … { … }
PrivacySandboxDialogUI::~PrivacySandboxDialogUI() = default;
void PrivacySandboxDialogUI::Initialize(
Profile* profile,
base::OnceClosure close_callback,
base::OnceCallback<void(int)> resize_callback,
base::OnceClosure show_dialog_callback,
base::OnceClosure open_settings_callback,
base::OnceClosure open_measurement_settings_callback,
PrivacySandboxService::PromptType prompt_type) { … }
void PrivacySandboxDialogUI::InitializeForDebug(
content::WebUIDataSource* source) { … }
WEB_UI_CONTROLLER_TYPE_IMPL(PrivacySandboxDialogUI)