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

Unified Diff: components/nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.cc

Issue 250773003: NaCl Linux: create NaClSandbox class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.cc
diff --git a/components/nacl/loader/nacl_sandbox_linux.cc b/components/nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.cc
similarity index 97%
rename from components/nacl/loader/nacl_sandbox_linux.cc
rename to components/nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.cc
index f1e4a49a4f71b1ab1efaaade862ea8a9d9f399b2..e123523de2b0b0444abeceaa83bfb326e1b7aa5d 100644
--- a/components/nacl/loader/nacl_sandbox_linux.cc
+++ b/components/nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/nacl/loader/nacl_sandbox_linux.h"
+#include "components/nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.h"
#include <errno.h>
#include <signal.h>
@@ -24,6 +24,8 @@ using sandbox::ErrorCode;
using sandbox::SandboxBPF;
using sandbox::SandboxBPFPolicy;
+namespace nacl {
+
namespace {
// On ARM and x86_64, System V shared memory calls have each their own system
@@ -172,3 +174,5 @@ bool InitializeBPFSandbox() {
#endif // defined(USE_SECCOMP_BPF)
return false;
}
+
+} // namespace nacl

Powered by Google App Engine
This is Rietveld 408576698