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

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

Issue 12223109: SECCOMP-BPF: Refactor the BPF sandbox API to use fewer "static" fields and methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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
« no previous file with comments | « sandbox/linux/seccomp-bpf/demo.cc ('k') | sandbox/linux/seccomp-bpf/die.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
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
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__
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/demo.cc ('k') | sandbox/linux/seccomp-bpf/die.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698