#include "content/public/common/sandboxed_process_launcher_delegate.h"
#include "build/build_config.h"
#include "content/public/common/zygote/zygote_buildflags.h"
namespace content {
#if BUILDFLAG(IS_WIN)
std::string SandboxedProcessLauncherDelegate::GetSandboxTag() {
return "";
}
bool SandboxedProcessLauncherDelegate::DisableDefaultPolicy() {
return false;
}
bool SandboxedProcessLauncherDelegate::GetAppContainerId(
std::string* appcontainer_id) {
return false;
}
bool SandboxedProcessLauncherDelegate::InitializeConfig(
sandbox::TargetConfig* config) {
return true;
}
bool SandboxedProcessLauncherDelegate::PreSpawnTarget(
sandbox::TargetPolicy* policy) {
return true;
}
void SandboxedProcessLauncherDelegate::PostSpawnTarget(
base::ProcessHandle process) {}
bool SandboxedProcessLauncherDelegate::ShouldUnsandboxedRunInJob() {
return false;
}
bool SandboxedProcessLauncherDelegate::CetCompatible() {
return true;
}
bool SandboxedProcessLauncherDelegate::AllowWindowsFontsDir() {
return false;
}
#endif
#if BUILDFLAG(IS_WIN)
bool SandboxedProcessLauncherDelegate::ShouldLaunchElevated() {
return false;
}
bool SandboxedProcessLauncherDelegate::ShouldUseUntrustedMojoInvitation() {
return false;
}
#endif
#if BUILDFLAG(USE_ZYGOTE)
ZygoteCommunication* SandboxedProcessLauncherDelegate::GetZygote() { … }
#endif
#if BUILDFLAG(IS_POSIX)
base::EnvironmentMap SandboxedProcessLauncherDelegate::GetEnvironment() { … }
#endif
#if BUILDFLAG(IS_MAC)
bool SandboxedProcessLauncherDelegate::DisclaimResponsibility() {
return false;
}
bool SandboxedProcessLauncherDelegate::EnableCpuSecurityMitigations() {
return false;
}
#endif
}