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_POLICY_H_ |
6 #define CONTENT_COMMON_SANDBOX_POLICY_H_ | 6 #define CONTENT_COMMON_SANDBOX_POLICY_H_ |
7 | 7 |
8 #include "base/process.h" | |
9 #include "content/common/content_export.h" | |
10 | |
11 class CommandLine; | |
12 class FilePath; | |
13 | |
14 namespace sandbox { | 8 namespace sandbox { |
15 | |
16 class BrokerServices; | 9 class BrokerServices; |
17 class TargetServices; | 10 class TargetServices; |
| 11 } |
| 12 |
| 13 namespace content { |
18 | 14 |
19 bool InitBrokerServices(sandbox::BrokerServices* broker_services); | 15 bool InitBrokerServices(sandbox::BrokerServices* broker_services); |
20 | 16 |
21 bool InitTargetServices(sandbox::TargetServices* target_services); | 17 bool InitTargetServices(sandbox::TargetServices* target_services); |
22 | 18 |
23 // Starts a sandboxed process with the given directory unsandboxed | 19 } // namespace content |
24 // and returns a handle to it. | |
25 base::ProcessHandle StartProcessWithAccess(CommandLine* cmd_line, | |
26 const FilePath& exposed_dir); | |
27 | |
28 } // namespace sandbox | |
29 | 20 |
30 #endif // CONTENT_COMMON_SANDBOX_POLICY_H_ | 21 #endif // CONTENT_COMMON_SANDBOX_POLICY_H_ |
OLD | NEW |