#include "chrome/browser/ui/webui/privacy_sandbox/privacy_sandbox_dialog_handler.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"
namespace {
bool IsConsent(PrivacySandboxService::PromptType prompt_type) { … }
bool IsRestrictedNotice(PrivacySandboxService::PromptType prompt_type) { … }
}
PrivacySandboxDialogHandler::PrivacySandboxDialogHandler(
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)
: … { … }
PrivacySandboxDialogHandler::~PrivacySandboxDialogHandler() { … }
void PrivacySandboxDialogHandler::RegisterMessages() { … }
void PrivacySandboxDialogHandler::OnJavascriptAllowed() { … }
void PrivacySandboxDialogHandler::OnJavascriptDisallowed() { … }
void PrivacySandboxDialogHandler::HandlePromptActionOccurred(
const base::Value::List& args) { … }
void PrivacySandboxDialogHandler::HandleResizeDialog(
const base::Value::List& args) { … }
void PrivacySandboxDialogHandler::HandleShowDialog(
const base::Value::List& args) { … }
void PrivacySandboxDialogHandler::NotifyServiceAboutPromptAction(
PrivacySandboxService::PromptAction action) { … }
void PrivacySandboxDialogHandler::CloseDialog() { … }