blob: 1b3d27134ee0e358bb4af819ba5cb49a5eb96c04 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/public/common/sandboxed_process_launcher_delegate.h"
#include "build/build_config.h"
#include "services/service_manager/zygote/common/zygote_buildflags.h"
namespace content {
#if defined(OS_WIN)
bool SandboxedProcessLauncherDelegate::DisableDefaultPolicy() {
return false;
}
bool SandboxedProcessLauncherDelegate::GetAppContainerId(
std::string* appcontainer_id) {
return false;
}
bool SandboxedProcessLauncherDelegate::PreSpawnTarget(
sandbox::TargetPolicy* policy) {
return true;
}
void SandboxedProcessLauncherDelegate::PostSpawnTarget(
base::ProcessHandle process) {}
bool SandboxedProcessLauncherDelegate::ShouldLaunchElevated() {
return false;
}
#endif // defined(OS_WIN)
#if BUILDFLAG(USE_ZYGOTE_HANDLE)
service_manager::ZygoteHandle SandboxedProcessLauncherDelegate::GetZygote() {
return nullptr;
}
#endif // BUILDFLAG(USE_ZYGOTE_HANDLE)
#if defined(OS_POSIX)
base::EnvironmentMap SandboxedProcessLauncherDelegate::GetEnvironment() {
return base::EnvironmentMap();
}
#endif // defined(OS_POSIX)
} // namespace content