OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 11 |
11 class CommandLine; | 12 class CommandLine; |
12 class FilePath; | 13 class FilePath; |
13 | 14 |
14 namespace sandbox { | 15 namespace sandbox { |
15 | 16 |
16 class BrokerServices; | 17 class BrokerServices; |
17 | 18 |
18 void InitBrokerServices(sandbox::BrokerServices* broker_services); | 19 CONTENT_EXPORT void InitBrokerServices( |
| 20 sandbox::BrokerServices* broker_services); |
19 | 21 |
20 // Starts a sandboxed process with the given directory unsandboxed | 22 // Starts a sandboxed process with the given directory unsandboxed |
21 // and returns a handle to it. | 23 // and returns a handle to it. |
22 base::ProcessHandle StartProcessWithAccess(CommandLine* cmd_line, | 24 CONTENT_EXPORT base::ProcessHandle StartProcessWithAccess( |
23 const FilePath& exposed_dir); | 25 CommandLine* cmd_line, |
| 26 const FilePath& exposed_dir); |
24 | 27 |
25 } // namespace sandbox | 28 } // namespace sandbox |
26 | 29 |
27 #endif // CONTENT_COMMON_SANDBOX_POLICY_H_ | 30 #endif // CONTENT_COMMON_SANDBOX_POLICY_H_ |
OLD | NEW |