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

Unified Diff: src/platform/minijail/minijail.h

Issue 466049: Baseline minijail with a commandline switch driven main. (Closed)
Patch Set: fix overly long lines Created 11 years 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
« no previous file with comments | « src/platform/minijail/interface.cc ('k') | src/platform/minijail/minijail.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/minijail/minijail.h
diff --git a/src/platform/minijail/minijail.h b/src/platform/minijail/minijail.h
new file mode 100644
index 0000000000000000000000000000000000000000..8989b6415a870cc217da74734cb71d14c5de4622
--- /dev/null
+++ b/src/platform/minijail/minijail.h
@@ -0,0 +1,46 @@
+// Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+// Some portions Copyright (c) 2009 The Chromium Authors.
+//
+// Implements a simple jail that uses CommandLine heavily instead of
+// the Options class. It should act as a simple reference implementation
+// for all functionality.
+
+#ifndef __CHROMEOS_MINIJAIL_MINIJAIL_H
+#define __CHROMEOS_MINIJAIL_MINIJAIL_H
+
+#include <string>
+
+#include <base/basictypes.h>
+#include <base/logging.h>
+#include <base/scoped_ptr.h>
+
+#include "minijail/env.h"
+#include "minijail/options.h"
+#include "minijail/interface.h"
+
+namespace chromeos {
+
+
+class MiniJailOptions : public minijail::Options {
+ public:
+ MiniJailOptions() { }
+ ~MiniJailOptions() { }
+ // We can set some defaults here if desired.
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MiniJailOptions);
+};
+
+class MiniJail : public minijail::Interface {
+ public:
+ MiniJail() { }
+ ~MiniJail() { }
+ bool Jail() const;
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MiniJail);
+};
+
+} // namespace chromeos
+
+#endif // __CHROMEOS_MINIJAIL_MINIJAIL
« no previous file with comments | « src/platform/minijail/interface.cc ('k') | src/platform/minijail/minijail.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698