OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_SANDBOX_POLICY_H_ | 5 #ifndef CONTENT_COMMON_SANDBOX_WIN_H_ |
6 #define CONTENT_COMMON_SANDBOX_POLICY_H_ | 6 #define CONTENT_COMMON_SANDBOX_WIN_H_ |
| 7 |
| 8 #include "sandbox/win/src/security_level.h" |
| 9 |
| 10 class CommandLine; |
7 | 11 |
8 namespace sandbox { | 12 namespace sandbox { |
9 class BrokerServices; | 13 class BrokerServices; |
| 14 class TargetPolicy; |
10 class TargetServices; | 15 class TargetServices; |
11 } | 16 } |
12 | 17 |
13 namespace content { | 18 namespace content { |
14 | 19 |
| 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, |
| 24 uint32 ui_exceptions, |
| 25 sandbox::TargetPolicy* policy); |
| 26 |
| 27 // Closes handles that are opened at process creation and initialization. |
| 28 void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy); |
| 29 |
15 bool InitBrokerServices(sandbox::BrokerServices* broker_services); | 30 bool InitBrokerServices(sandbox::BrokerServices* broker_services); |
16 | 31 |
17 bool InitTargetServices(sandbox::TargetServices* target_services); | 32 bool InitTargetServices(sandbox::TargetServices* target_services); |
18 | 33 |
19 } // namespace content | 34 } // namespace content |
20 | 35 |
21 #endif // CONTENT_COMMON_SANDBOX_POLICY_H_ | 36 #endif // CONTENT_COMMON_SANDBOX_WIN_H_ |
OLD | NEW |