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

Unified Diff: mojo/runner/linux_sandbox.h

Issue 1264463005: mandoline sandbox: prewarm libraries before we raise the sandbox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And Android, too! Created 5 years, 5 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: mojo/runner/linux_sandbox.h
diff --git a/mandoline/app/desktop/linux_sandbox.h b/mojo/runner/linux_sandbox.h
similarity index 80%
rename from mandoline/app/desktop/linux_sandbox.h
rename to mojo/runner/linux_sandbox.h
index 82cc084a178d206a17c5351722acafcffb291411..4111cf5860065e1b7ccd698d84a33fd1cead6bcb 100644
--- a/mandoline/app/desktop/linux_sandbox.h
+++ b/mojo/runner/linux_sandbox.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MANDOLINE_APP_DESKTOP_LINUX_SANDBOX_H_
-#define MANDOLINE_APP_DESKTOP_LINUX_SANDBOX_H_
+#ifndef MOJO_RUNNER_LINUX_SANDBOX_H_
+#define MOJO_RUNNER_LINUX_SANDBOX_H_
#include "base/files/scoped_file.h"
#include "sandbox/linux/bpf_dsl/bpf_dsl.h"
@@ -20,10 +20,6 @@ class LinuxSandbox {
permissions);
~LinuxSandbox();
- // Returns a vector of file permissions needed to load libraries.
- static std::vector<sandbox::syscall_broker::BrokerFilePermission>
- GetPermissions();
-
// Grabs a file descriptor to /proc.
void Warmup();
@@ -49,4 +45,4 @@ class LinuxSandbox {
} // namespace mandoline
-#endif // MANDOLINE_APP_DESKTOP_LINUX_SANDBOX_H_
+#endif // MOJO_RUNNER_LINUX_SANDBOX_H_

Powered by Google App Engine
This is Rietveld 408576698