| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 Dispatcher* OnMessageReady(IPCParams* ipc, | 76 Dispatcher* OnMessageReady(IPCParams* ipc, |
| 77 CallbackGeneric* callback) override; | 77 CallbackGeneric* callback) override; |
| 78 bool SetupService(InterceptionManager* manager, int service) override; | 78 bool SetupService(InterceptionManager* manager, int service) override; |
| 79 | 79 |
| 80 // Creates a Job object with the level specified in a previous call to | 80 // Creates a Job object with the level specified in a previous call to |
| 81 // SetJobLevel(). | 81 // SetJobLevel(). |
| 82 ResultCode MakeJobObject(HANDLE* job); | 82 ResultCode MakeJobObject(HANDLE* job); |
| 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(). | 85 // SetTokenLevel(). |
| 86 ResultCode MakeTokens(HANDLE* initial, HANDLE* lockdown); | 86 ResultCode MakeTokens(base::win::ScopedHandle* initial, |
| 87 base::win::ScopedHandle* lockdown); |
| 87 | 88 |
| 88 const AppContainerAttributes* GetAppContainer() const; | 89 const AppContainerAttributes* GetAppContainer() const; |
| 89 | 90 |
| 90 const PSID GetLowBoxSid() const; | 91 const PSID GetLowBoxSid() const; |
| 91 | 92 |
| 92 // Adds a target process to the internal list of targets. Internally a | 93 // Adds a target process to the internal list of targets. Internally a |
| 93 // call to TargetProcess::Init() is issued. | 94 // call to TargetProcess::Init() is issued. |
| 94 bool AddTarget(TargetProcess* target); | 95 bool AddTarget(TargetProcess* target); |
| 95 | 96 |
| 96 // Called when there are no more active processes in a Job. | 97 // Called when there are no more active processes in a Job. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // This list contains handles other than the stderr/stdout handles which are | 179 // This list contains handles other than the stderr/stdout handles which are |
| 179 // shared with the target at times. | 180 // shared with the target at times. |
| 180 std::vector<HANDLE> handles_to_share_; | 181 std::vector<HANDLE> handles_to_share_; |
| 181 | 182 |
| 182 DISALLOW_COPY_AND_ASSIGN(PolicyBase); | 183 DISALLOW_COPY_AND_ASSIGN(PolicyBase); |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 } // namespace sandbox | 186 } // namespace sandbox |
| 186 | 187 |
| 187 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ | 188 #endif // SANDBOX_WIN_SRC_SANDBOX_POLICY_BASE_H_ |
| OLD | NEW |