• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 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.
4 
5 #ifndef CONTENT_COMMON_SANDBOX_LINUX_BPF_RENDERER_POLICY_LINUX_H_
6 #define CONTENT_COMMON_SANDBOX_LINUX_BPF_RENDERER_POLICY_LINUX_H_
7 
8 #include "content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h"
9 
10 namespace content {
11 
12 // This policy can be used by both renderer and worker processes.
13 class RendererProcessPolicy : public SandboxBPFBasePolicy {
14  public:
15   RendererProcessPolicy();
16   virtual ~RendererProcessPolicy();
17 
18   virtual ErrorCode EvaluateSyscall(SandboxBPF* sandbox_compiler,
19                                     int system_call_number) const OVERRIDE;
20 
21  private:
22   DISALLOW_COPY_AND_ASSIGN(RendererProcessPolicy);
23 };
24 
25 }  // namespace content
26 
27 #endif  // CONTENT_COMMON_SANDBOX_LINUX_BPF_RENDERER_POLICY_LINUX_H_
28