| 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 "sandbox/linux/seccomp-bpf/port.h" |
| 9 |
| 10 |
| 8 namespace playground2 { | 11 namespace playground2 { |
| 9 | 12 |
| 10 class Die { | 13 class Die { |
| 11 public: | 14 public: |
| 12 // This is the main API for using this file. Prints a error message and | 15 // This is the main API for using this file. Prints a error message and |
| 13 // exits with a fatal error. | 16 // exits with a fatal error. |
| 14 #define SANDBOX_DIE(m) playground2::Die::SandboxDie(m, __FILE__, __LINE__) | 17 #define SANDBOX_DIE(m) playground2::Die::SandboxDie(m, __FILE__, __LINE__) |
| 15 | 18 |
| 16 // Adds an informational message to the log file or stderr as appropriate. | 19 // Adds an informational message to the log file or stderr as appropriate. |
| 17 #define SANDBOX_INFO(m) playground2::Die::SandboxInfo(m, __FILE__, __LINE__) | 20 #define SANDBOX_INFO(m) playground2::Die::SandboxInfo(m, __FILE__, __LINE__) |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 private: | 53 private: |
| 51 static bool simple_exit_; | 54 static bool simple_exit_; |
| 52 static bool suppress_info_; | 55 static bool suppress_info_; |
| 53 | 56 |
| 54 DISALLOW_IMPLICIT_CONSTRUCTORS(Die); | 57 DISALLOW_IMPLICIT_CONSTRUCTORS(Die); |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 } // namespace | 60 } // namespace |
| 58 | 61 |
| 59 #endif // SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ | 62 #endif // SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ |
| OLD | NEW |