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

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

Issue 273423007: Move sanbox_export.h to //sandbox from //sandbox/linux and split root OWNERS file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop OWNERS Created 6 years, 7 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
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "sandbox/linux/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.
19 #define RAW_SANDBOX_DIE(m) sandbox::Die::RawSandboxDie(m) 19 #define RAW_SANDBOX_DIE(m) sandbox::Die::RawSandboxDie(m)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698