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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/process.h" | 9 #include "base/process.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 CONTENT_EXPORT bool InitTargetServices( | 23 CONTENT_EXPORT bool InitTargetServices( |
24 sandbox::TargetServices* target_services); | 24 sandbox::TargetServices* target_services); |
25 | 25 |
26 CONTENT_EXPORT bool BrokerDuplicateHandle(HANDLE source_handle, | 26 CONTENT_EXPORT bool BrokerDuplicateHandle(HANDLE source_handle, |
27 DWORD target_process_id, | 27 DWORD target_process_id, |
28 HANDLE* target_handle, | 28 HANDLE* target_handle, |
29 DWORD desired_access, | 29 DWORD desired_access, |
30 DWORD options); | 30 DWORD options); |
31 | 31 |
| 32 CONTENT_EXPORT bool BrokerAddTargetPeer(HANDLE peer_process); |
| 33 |
32 // Starts a sandboxed process with the given directory unsandboxed | 34 // Starts a sandboxed process with the given directory unsandboxed |
33 // and returns a handle to it. | 35 // and returns a handle to it. |
34 CONTENT_EXPORT base::ProcessHandle StartProcessWithAccess( | 36 CONTENT_EXPORT base::ProcessHandle StartProcessWithAccess( |
35 CommandLine* cmd_line, | 37 CommandLine* cmd_line, |
36 const FilePath& exposed_dir); | 38 const FilePath& exposed_dir); |
37 | 39 |
38 } // namespace sandbox | 40 } // namespace sandbox |
39 | 41 |
40 #endif // CONTENT_COMMON_SANDBOX_POLICY_H_ | 42 #endif // CONTENT_COMMON_SANDBOX_POLICY_H_ |
OLD | NEW |