1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_SANDBOX_WIN_H_
6 #define CONTENT_COMMON_SANDBOX_WIN_H_
8 #include "sandbox/win/src/security_level.h"
20 // Wrapper around sandbox::TargetPolicy::SetJobLevel that checks if the sandbox
21 // should be let to run without a job object assigned.
22 void SetJobLevel(const CommandLine
& cmd_line
,
23 sandbox::JobLevel job_level
,
25 sandbox::TargetPolicy
* policy
);
27 // Closes handles that are opened at process creation and initialization.
28 void AddBaseHandleClosePolicy(sandbox::TargetPolicy
* policy
);
30 bool InitBrokerServices(sandbox::BrokerServices
* broker_services
);
32 bool InitTargetServices(sandbox::TargetServices
* target_services
);
34 } // namespace content
36 #endif // CONTENT_COMMON_SANDBOX_WIN_H_