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_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 | 7 |
8 #include "base/files/scoped_file.h" | 8 #include "base/files/scoped_file.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
11 #include "base/process/process.h" | 11 #include "base/process/process.h" |
12 #include "base/process/process_handle.h" | 12 #include "base/process/process_handle.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 | 15 |
16 #if defined(OS_ANDROID) | |
17 #include "base/feature_list.h" | |
18 #endif | |
19 | |
16 namespace base { | 20 namespace base { |
17 class CommandLine; | 21 class CommandLine; |
18 class FilePath; | 22 class FilePath; |
19 } | 23 } |
20 | 24 |
21 namespace sandbox { | 25 namespace sandbox { |
22 namespace bpf_dsl { | 26 namespace bpf_dsl { |
23 class Policy; | 27 class Policy; |
24 } | 28 } |
25 struct SandboxInterfaceInfo; | 29 struct SandboxInterfaceInfo; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 CONTENT_EXPORT bool InitializeSandbox( | 110 CONTENT_EXPORT bool InitializeSandbox( |
107 scoped_ptr<sandbox::bpf_dsl::Policy> policy, | 111 scoped_ptr<sandbox::bpf_dsl::Policy> policy, |
108 base::ScopedFD proc_fd); | 112 base::ScopedFD proc_fd); |
109 | 113 |
110 // Return a "baseline" policy. This is used by a SandboxInitializerDelegate to | 114 // Return a "baseline" policy. This is used by a SandboxInitializerDelegate to |
111 // implement a policy that is derived from the baseline. | 115 // implement a policy that is derived from the baseline. |
112 CONTENT_EXPORT scoped_ptr<sandbox::bpf_dsl::Policy> | 116 CONTENT_EXPORT scoped_ptr<sandbox::bpf_dsl::Policy> |
113 GetBPFSandboxBaselinePolicy(); | 117 GetBPFSandboxBaselinePolicy(); |
114 #endif // defined(OS_LINUX) || defined(OS_NACL_NONSFI) | 118 #endif // defined(OS_LINUX) || defined(OS_NACL_NONSFI) |
115 | 119 |
120 #if defined(OS_ANDROID) | |
121 // FeatureList definition for the Seccomp field trial. | |
122 CONTENT_EXPORT extern const base::Feature kSeccompSandboxAndroidFeature; | |
jam
2015/11/13 17:20:17
hmm, as we convert switches to base::Feature, seem
Alexei Svitkine (slow)
2015/11/13 17:33:02
I am okay with a centralized place for features at
Robert Sesek
2015/11/14 01:18:03
I agree that it'd be good to centralize these. I a
| |
123 #endif // defined(OS_ANDROID) | |
124 | |
116 } // namespace content | 125 } // namespace content |
117 | 126 |
118 #endif // CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_ | 127 #endif // CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_ |
OLD | NEW |