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 SANDBOX_LINUX_SECCOMP_BPF_TRAP_H__ | 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_TRAP_H__ |
6 #define SANDBOX_LINUX_SECCOMP_BPF_TRAP_H__ | 6 #define SANDBOX_LINUX_SECCOMP_BPF_TRAP_H__ |
7 | 7 |
8 #include <stddef.h> | |
9 #include <stdint.h> | 8 #include <stdint.h> |
10 | 9 |
11 #include <map> | 10 #include <map> |
12 | 11 |
13 #include "base/macros.h" | 12 #include "base/macros.h" |
14 #include "sandbox/linux/bpf_dsl/trap_registry.h" | 13 #include "sandbox/linux/bpf_dsl/trap_registry.h" |
15 #include "sandbox/linux/system_headers/linux_signal.h" | 14 #include "sandbox/linux/system_headers/linux_signal.h" |
16 #include "sandbox/sandbox_export.h" | 15 #include "sandbox/sandbox_export.h" |
17 | 16 |
18 namespace sandbox { | 17 namespace sandbox { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 bool has_unsafe_traps_; // Whether unsafe traps have been enabled | 76 bool has_unsafe_traps_; // Whether unsafe traps have been enabled |
78 | 77 |
79 // Copying and assigning is unimplemented. It doesn't make sense for a | 78 // Copying and assigning is unimplemented. It doesn't make sense for a |
80 // singleton. | 79 // singleton. |
81 DISALLOW_COPY_AND_ASSIGN(Trap); | 80 DISALLOW_COPY_AND_ASSIGN(Trap); |
82 }; | 81 }; |
83 | 82 |
84 } // namespace sandbox | 83 } // namespace sandbox |
85 | 84 |
86 #endif // SANDBOX_LINUX_SECCOMP_BPF_TRAP_H__ | 85 #endif // SANDBOX_LINUX_SECCOMP_BPF_TRAP_H__ |
OLD | NEW |