OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PUBLIC_COMMON_SANDBOX_INIT_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_ |
6 #define CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_ | 6 #define CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 // If the |sandbox_type| isn't one of the ones defined by content then the | 39 // If the |sandbox_type| isn't one of the ones defined by content then the |
40 // embedder is queried using ContentClient::GetSandboxPolicyForSandboxType(). | 40 // embedder is queried using ContentClient::GetSandboxPolicyForSandboxType(). |
41 // The embedder can use values for |sandbox_type| starting from | 41 // The embedder can use values for |sandbox_type| starting from |
42 // content::sandbox::SANDBOX_PROCESS_TYPE_AFTER_LAST_TYPE. | 42 // content::sandbox::SANDBOX_PROCESS_TYPE_AFTER_LAST_TYPE. |
43 // | 43 // |
44 // Returns true if the sandbox was initialized succesfully, false if an error | 44 // Returns true if the sandbox was initialized succesfully, false if an error |
45 // occurred. If process_type isn't one that needs sandboxing, no action is | 45 // occurred. If process_type isn't one that needs sandboxing, no action is |
46 // taken and true is always returned. | 46 // taken and true is always returned. |
47 CONTENT_EXPORT bool InitializeSandbox(int sandbox_type, | 47 CONTENT_EXPORT bool InitializeSandbox(int sandbox_type, |
48 const FilePath& allowed_path); | 48 const FilePath& allowed_path); |
| 49 #elif defined(OS_LINUX) |
| 50 CONTENT_EXPORT void InitializeSandbox(); |
49 #endif | 51 #endif |
50 | 52 |
51 } // namespace content | 53 } // namespace content |
52 | 54 |
53 #endif // CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_ | 55 #endif // CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_ |
OLD | NEW |