blob: 84813c5e915e67316a43a3c050a0930fc6ec35a7 [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"
namespace content {
#if defined(OS_WIN)
bool SandboxedProcessLauncherDelegate::ShouldLaunchElevated() {
return false;
}
bool SandboxedProcessLauncherDelegate::ShouldSandbox() {
return true;
}
bool SandboxedProcessLauncherDelegate::DisableDefaultPolicy() {
return false;
}
bool SandboxedProcessLauncherDelegate::PreSpawnTarget(
sandbox::TargetPolicy* policy) {
return true;
}
#elif(OS_POSIX)
#if !defined(OS_MACOSX) && !defined(OS_ANDROID)
ZygoteHandle SandboxedProcessLauncherDelegate::GetZygote() {
return nullptr;
}
#endif // !defined(OS_MACOSX) && !defined(OS_ANDROID)
base::EnvironmentMap SandboxedProcessLauncherDelegate::GetEnvironment() {
return base::EnvironmentMap();
}
#endif
SandboxType SandboxedProcessLauncherDelegate::GetSandboxType() {
return SANDBOX_TYPE_INVALID;
}
} // namespace content