OLD | NEW |
1 // Copyright (c) 2011 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 #ifndef SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ | 5 #ifndef SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ |
6 #define SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ | 6 #define SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 // Creates the two tokens with the levels specified in a previous call to | 84 // Creates the two tokens with the levels specified in a previous call to |
85 // SetTokenLevel(). Also creates a lowbox token if specified based on the | 85 // SetTokenLevel(). Also creates a lowbox token if specified based on the |
86 // lowbox SID. | 86 // lowbox SID. |
87 ResultCode MakeTokens(base::win::ScopedHandle* initial, | 87 ResultCode MakeTokens(base::win::ScopedHandle* initial, |
88 base::win::ScopedHandle* lockdown, | 88 base::win::ScopedHandle* lockdown, |
89 base::win::ScopedHandle* lowbox); | 89 base::win::ScopedHandle* lowbox); |
90 | 90 |
91 const AppContainerAttributes* GetAppContainer() const; | 91 const AppContainerAttributes* GetAppContainer() const; |
92 | 92 |
93 const PSID GetLowBoxSid() const; | 93 PSID GetLowBoxSid() const; |
94 | 94 |
95 // Adds a target process to the internal list of targets. Internally a | 95 // Adds a target process to the internal list of targets. Internally a |
96 // call to TargetProcess::Init() is issued. | 96 // call to TargetProcess::Init() is issued. |
97 bool AddTarget(TargetProcess* target); | 97 bool AddTarget(TargetProcess* target); |
98 | 98 |
99 // Called when there are no more active processes in a Job. | 99 // Called when there are no more active processes in a Job. |
100 // Removes a Job object associated with this policy and the target associated | 100 // Removes a Job object associated with this policy and the target associated |
101 // with the job. | 101 // with the job. |
102 bool OnJobEmpty(HANDLE job); | 102 bool OnJobEmpty(HANDLE job); |
103 | 103 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // This list contains handles other than the stderr/stdout handles which are | 181 // This list contains handles other than the stderr/stdout handles which are |
182 // shared with the target at times. | 182 // shared with the target at times. |
183 HandleList handles_to_share_; | 183 HandleList handles_to_share_; |
184 | 184 |
185 DISALLOW_COPY_AND_ASSIGN(PolicyBase); | 185 DISALLOW_COPY_AND_ASSIGN(PolicyBase); |
186 }; | 186 }; |
187 | 187 |
188 } // namespace sandbox | 188 } // namespace sandbox |
189 | 189 |
190 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ | 190 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ |
OLD | NEW |