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

Side by Side Diff: src/platform/minijail/minijail.h

Issue 465106: Add build and package support to minijail (Closed)
Patch Set: 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/make_tests.sh ('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
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 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 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 // Some portions Copyright (c) 2009 The Chromium Authors. 4 // Some portions Copyright (c) 2009 The Chromium Authors.
5 // 5 //
6 // Implements a simple jail that uses CommandLine heavily instead of 6 // Implements a simple jail that uses CommandLine heavily instead of
7 // the Options class. It should act as a simple reference implementation 7 // the Options class. It should act as a simple reference implementation
8 // for all functionality. 8 // for all functionality.
9 9
10 #ifndef __CHROMEOS_MINIJAIL_MINIJAIL_H 10 #ifndef __CHROMEOS_MINIJAIL_MINIJAIL_H
(...skipping 18 matching lines...) Expand all
29 ~MiniJailOptions() { } 29 ~MiniJailOptions() { }
30 // We can set some defaults here if desired. 30 // We can set some defaults here if desired.
31 private: 31 private:
32 DISALLOW_COPY_AND_ASSIGN(MiniJailOptions); 32 DISALLOW_COPY_AND_ASSIGN(MiniJailOptions);
33 }; 33 };
34 34
35 class MiniJail : public minijail::Interface { 35 class MiniJail : public minijail::Interface {
36 public: 36 public:
37 MiniJail() { } 37 MiniJail() { }
38 ~MiniJail() { } 38 ~MiniJail() { }
39 const char *name() { return "MiniJail"; }
39 bool Jail() const; 40 bool Jail() const;
40 private: 41 private:
41 DISALLOW_COPY_AND_ASSIGN(MiniJail); 42 DISALLOW_COPY_AND_ASSIGN(MiniJail);
42 }; 43 };
43 44
44 } // namespace chromeos 45 } // namespace chromeos
45 46
46 #endif // __CHROMEOS_MINIJAIL_MINIJAIL 47 #endif // __CHROMEOS_MINIJAIL_MINIJAIL
OLDNEW
« no previous file with comments | « src/platform/minijail/make_tests.sh ('k') | src/platform/minijail/minijail.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698