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 #ifndef SANDBOX_SRC_SANDBOX_POLICY_H_ | 5 #ifndef SANDBOX_SRC_SANDBOX_POLICY_H_ |
6 #define SANDBOX_SRC_SANDBOX_POLICY_H_ | 6 #define SANDBOX_SRC_SANDBOX_POLICY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "sandbox/src/sandbox_types.h" | 11 #include "sandbox/win/src/sandbox_types.h" |
12 #include "sandbox/src/security_level.h" | 12 #include "sandbox/win/src/security_level.h" |
13 | 13 |
14 namespace sandbox { | 14 namespace sandbox { |
15 | 15 |
16 class TargetPolicy { | 16 class TargetPolicy { |
17 public: | 17 public: |
18 // Windows subsystems that can have specific rules. | 18 // Windows subsystems that can have specific rules. |
19 // Note: The process subsystem(SUBSY_PROCESS) does not evaluate the request | 19 // Note: The process subsystem(SUBSY_PROCESS) does not evaluate the request |
20 // exactly like the CreateProcess API does. See the comment at the top of | 20 // exactly like the CreateProcess API does. See the comment at the top of |
21 // process_thread_dispatcher.cc for more details. | 21 // process_thread_dispatcher.cc for more details. |
22 enum SubSystem { | 22 enum SubSystem { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // A NULL value for handle_name indicates all handles of the specified type. | 181 // A NULL value for handle_name indicates all handles of the specified type. |
182 // An empty string for handle_name indicates the handle is unnamed. | 182 // An empty string for handle_name indicates the handle is unnamed. |
183 virtual ResultCode AddKernelObjectToClose(const wchar_t* handle_type, | 183 virtual ResultCode AddKernelObjectToClose(const wchar_t* handle_type, |
184 const wchar_t* handle_name) = 0; | 184 const wchar_t* handle_name) = 0; |
185 }; | 185 }; |
186 | 186 |
187 } // namespace sandbox | 187 } // namespace sandbox |
188 | 188 |
189 | 189 |
190 #endif // SANDBOX_SRC_SANDBOX_POLICY_H_ | 190 #endif // SANDBOX_SRC_SANDBOX_POLICY_H_ |
OLD | NEW |