| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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. |
| 12 // | 12 // |
| 13 // The design rationale and relevant documents can be found at http://go/sbox. | 13 // The design rationale and relevant documents can be found at http://go/sbox. |
| 14 // | 14 // |
| 15 // Note: this header does not include the SandboxFactory definitions because | 15 // Note: this header does not include the SandboxFactory definitions because |
| 16 // there are cases where the Sandbox library is linked against the main .exe | 16 // there are cases where the Sandbox library is linked against the main .exe |
| 17 // while its API needs to be used in a DLL. | 17 // while its API needs to be used in a DLL. |
| 18 | 18 |
| 19 #ifndef SANDBOX_WIN_SRC_SANDBOX_H_ | 19 #ifndef SANDBOX_WIN_SRC_SANDBOX_H_ |
| 20 #define SANDBOX_WIN_SRC_SANDBOX_H_ | 20 #define SANDBOX_WIN_SRC_SANDBOX_H_ |
| 21 | 21 |
| 22 #include <windows.h> | 22 #include <windows.h> |
| 23 | 23 |
| 24 #include "base/basictypes.h" |
| 24 #include "sandbox/win/src/sandbox_policy.h" | 25 #include "sandbox/win/src/sandbox_policy.h" |
| 25 #include "sandbox/win/src/sandbox_types.h" | 26 #include "sandbox/win/src/sandbox_types.h" |
| 26 | 27 |
| 27 // sandbox: Google User-Land Application Sandbox | 28 // sandbox: Google User-Land Application Sandbox |
| 28 namespace sandbox { | 29 namespace sandbox { |
| 29 | 30 |
| 30 class BrokerServices; | 31 class BrokerServices; |
| 31 class ProcessState; | 32 class ProcessState; |
| 32 class TargetPolicy; | 33 class TargetPolicy; |
| 33 class TargetServices; | 34 class TargetServices; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 DWORD target_process_id, | 156 DWORD target_process_id, |
| 156 HANDLE* target_handle, | 157 HANDLE* target_handle, |
| 157 DWORD desired_access, | 158 DWORD desired_access, |
| 158 DWORD options) = 0; | 159 DWORD options) = 0; |
| 159 }; | 160 }; |
| 160 | 161 |
| 161 } // namespace sandbox | 162 } // namespace sandbox |
| 162 | 163 |
| 163 | 164 |
| 164 #endif // SANDBOX_WIN_SRC_SANDBOX_H_ | 165 #endif // SANDBOX_WIN_SRC_SANDBOX_H_ |
| OLD | NEW |