| 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_DIE_H__ | 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ |
| 6 #define SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ | 6 #define SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "sandbox/sandbox_export.h" | 9 #include "sandbox/sandbox_export.h" |
| 10 | 10 |
| 11 namespace sandbox { | 11 namespace sandbox { |
| 12 | 12 |
| 13 // This is the main API for using this file. Prints a error message and | 13 // This is the main API for using this file. Prints a error message and |
| 14 // exits with a fatal error. This is not async-signal safe. | 14 // exits with a fatal error. This is not async-signal safe. |
| 15 #define SANDBOX_DIE(m) sandbox::Die::SandboxDie(m, __FILE__, __LINE__) | 15 #define SANDBOX_DIE(m) sandbox::Die::SandboxDie(m, __FILE__, __LINE__) |
| 16 | 16 |
| 17 // An async signal safe version of the same API. Won't print the filename | 17 // An async signal safe version of the same API. Won't print the filename |
| 18 // and line numbers. | 18 // and line numbers. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 private: | 59 private: |
| 60 static bool simple_exit_; | 60 static bool simple_exit_; |
| 61 static bool suppress_info_; | 61 static bool suppress_info_; |
| 62 | 62 |
| 63 DISALLOW_IMPLICIT_CONSTRUCTORS(Die); | 63 DISALLOW_IMPLICIT_CONSTRUCTORS(Die); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace sandbox | 66 } // namespace sandbox |
| 67 | 67 |
| 68 #endif // SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ | 68 #endif // SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ |
| OLD | NEW |