Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: sandbox/linux/seccomp-bpf/die.h

Issue 10833044: Refactored ErrorCode into it's own class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased after we moved the unittest framework into its own CL Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698