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