Remove obsolete Channel ID expiration time from site data viewer.
[chromium-blink-merge.git] / content / common / sandbox_seccomp_bpf_linux.h
bloba04864283b59d6fce87de2bf1a9cb10b2d29187b
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_SANDBOX_SECCOMP_BPF_LINUX_H_
6 #define CONTENT_COMMON_SANDBOX_SECCOMP_BPF_LINUX_H_
8 #include "base/basictypes.h"
10 namespace content {
12 class SandboxSeccompBpf {
13 public:
14 // Is the sandbox globally enabled, can anything use it at all ?
15 // This looks at global command line flags to see if the sandbox
16 // should be enabled at all.
17 static bool IsSeccompBpfDesired();
18 // Should the sandbox be enabled for process_type ?
19 static bool ShouldEnableSeccompBpf(const std::string& process_type);
20 // Check if the kernel supports this sandbox. It's useful to "prewarm"
21 // this, part of the result will be cached.
22 static bool SupportsSandbox();
23 // Start the sandbox and apply the policy for process_type, depending on
24 // command line switches.
25 static bool StartSandbox(const std::string& process_type);
27 private:
28 DISALLOW_IMPLICIT_CONSTRUCTORS(SandboxSeccompBpf);
31 } // namespace content
33 #endif // CONTENT_COMMON_SANDBOX_SECCOMP_BPF_LINUX_H_