OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium 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 | 4 |
5 // Sandbox is a sandbox library for windows processes. Use when you want a | 5 // Sandbox is a sandbox library for windows processes. Use when you want a |
6 // 'privileged' process and a 'locked down process' to interact with. | 6 // 'privileged' process and a 'locked down process' to interact with. |
7 // The privileged process is called the broker and it is started by external | 7 // The privileged process is called the broker and it is started by external |
8 // means (such as the user starting it). The 'sandboxed' process is called the | 8 // means (such as the user starting it). The 'sandboxed' process is called the |
9 // target and it is started by the broker. There can be many target processes | 9 // target and it is started by the broker. There can be many target processes |
10 // started by a single broker process. This library provides facilities | 10 // started by a single broker process. This library provides facilities |
11 // for both the broker and the target. | 11 // for both the broker and the target. |
(...skipping 11 matching lines...) Expand all Loading... |
23 | 23 |
24 #include "base/basictypes.h" | 24 #include "base/basictypes.h" |
25 #include "sandbox/src/sandbox_policy.h" | 25 #include "sandbox/src/sandbox_policy.h" |
26 #include "sandbox/src/sandbox_types.h" | 26 #include "sandbox/src/sandbox_types.h" |
27 | 27 |
28 // sandbox: Google User-Land Application Sandbox | 28 // sandbox: Google User-Land Application Sandbox |
29 namespace sandbox { | 29 namespace sandbox { |
30 | 30 |
31 class BrokerServices; | 31 class BrokerServices; |
32 class ProcessState; | 32 class ProcessState; |
33 class TargetProcess; | |
34 class TargetPolicy; | 33 class TargetPolicy; |
35 class TargetServices; | 34 class TargetServices; |
36 | 35 |
37 // BrokerServices exposes all the broker API. | 36 // BrokerServices exposes all the broker API. |
38 // The basic use is to start the target(s) and wait for them to end. | 37 // The basic use is to start the target(s) and wait for them to end. |
39 // | 38 // |
40 // This API is intended to be called in the following order | 39 // This API is intended to be called in the following order |
41 // (error checking omitted): | 40 // (error checking omitted): |
42 // BrokerServices* broker = SandboxFactory::GetBrokerServices(); | 41 // BrokerServices* broker = SandboxFactory::GetBrokerServices(); |
43 // broker->Init(); | 42 // broker->Init(); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // Returns the ProcessState object. Through that object it's possible to have | 125 // Returns the ProcessState object. Through that object it's possible to have |
127 // information about the current state of the process, such as whether | 126 // information about the current state of the process, such as whether |
128 // LowerToken has been called or not. | 127 // LowerToken has been called or not. |
129 virtual ProcessState* GetState() = 0; | 128 virtual ProcessState* GetState() = 0; |
130 }; | 129 }; |
131 | 130 |
132 } // namespace sandbox | 131 } // namespace sandbox |
133 | 132 |
134 | 133 |
135 #endif // SANDBOX_SRC_SANDBOX_H__ | 134 #endif // SANDBOX_SRC_SANDBOX_H__ |
OLD | NEW |