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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « src/platform/minijail/interface.cc ('k') | src/platform/minijail/minijail.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 // Some portions Copyright (c) 2009 The Chromium Authors.
5 //
6 // Implements a simple jail that uses CommandLine heavily instead of
7 // the Options class. It should act as a simple reference implementation
8 // for all functionality.
9
10 #ifndef __CHROMEOS_MINIJAIL_MINIJAIL_H
11 #define __CHROMEOS_MINIJAIL_MINIJAIL_H
12
13 #include <string>
14
15 #include <base/basictypes.h>
16 #include <base/logging.h>
17 #include <base/scoped_ptr.h>
18
19 #include "minijail/env.h"
20 #include "minijail/options.h"
21 #include "minijail/interface.h"
22
23 namespace chromeos {
24
25
26 class MiniJailOptions : public minijail::Options {
27 public:
28 MiniJailOptions() { }
29 ~MiniJailOptions() { }
30 // We can set some defaults here if desired.
31 private:
32 DISALLOW_COPY_AND_ASSIGN(MiniJailOptions);
33 };
34
35 class MiniJail : public minijail::Interface {
36 public:
37 MiniJail() { }
38 ~MiniJail() { }
39 bool Jail() const;
40 private:
41 DISALLOW_COPY_AND_ASSIGN(MiniJail);
42 };
43
44 } // namespace chromeos
45
46 #endif // __CHROMEOS_MINIJAIL_MINIJAIL
OLDNEW
« 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