[go: nahoru, domu]

blob: b2e68a3cafc568d46d92da79587d4699dc7fa9ca [file] [log] [blame]
// Copyright 2018 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.
#ifndef SERVICES_NETWORK_NETWORK_SANDBOX_WIN_H_
#define SERVICES_NETWORK_NETWORK_SANDBOX_WIN_H_
#include "base/component_export.h"
#include "sandbox/win/src/sandbox_policy_base.h"
#include "services/service_manager/sandbox/win/sandbox_win.h"
// These sandbox-config extension functions should be called from
// UtilitySandboxedProcessLauncherDelegate on Windows (or the appropriate
// Delegate if SandboxType::kNetwork is removed from SandboxType::kUtility).
//
// NOTE: changes to this code need to be reviewed by the security team.
namespace network {
// PreSpawnTarget extension.
COMPONENT_EXPORT(NETWORK_SERVICE)
bool NetworkPreSpawnTarget(sandbox::TargetPolicy* policy,
const base::CommandLine& cmd_line);
} // namespace network
#endif // SERVICES_NETWORK_NETWORK_SANDBOX_WIN_H_