Chromium Code Reviews| 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 |
|
jln (very slow on Chromium)
2012/08/31 01:16:00
I'm pretty sure that comes from a rebase :)
| |
| 8 | |
| 8 namespace playground2 { | 9 namespace playground2 { |
| 9 | 10 |
| 10 class Die { | 11 class Die { |
| 11 public: | 12 public: |
| 12 // 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 |
| 13 // exits with a fatal error. | 14 // exits with a fatal error. |
| 14 #define SANDBOX_DIE(m) Die::SandboxDie(m, __FILE__, __LINE__) | 15 #define SANDBOX_DIE(m) Die::SandboxDie(m, __FILE__, __LINE__) |
| 15 | 16 |
| 16 // Terminate the program, even if the current sandbox policy prevents some | 17 // Terminate the program, even if the current sandbox policy prevents some |
| 17 // of the more commonly used functions used for exiting. | 18 // of the more commonly used functions used for exiting. |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 static bool simple_exit_; | 41 static bool simple_exit_; |
| 41 | 42 |
| 42 DISALLOW_IMPLICIT_CONSTRUCTORS(Die); | 43 DISALLOW_IMPLICIT_CONSTRUCTORS(Die); |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 } // namespace | 46 } // namespace |
| 46 | 47 |
| 47 #endif // SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ | 48 #endif // SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ |
| OLD | NEW |