Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: sandbox/win/src/sandbox_policy.h

Issue 10783004: Move Windows Sandbox, trybots version (don't commit me!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to top of tree Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sandbox/win/src/sandbox_nt_util.cc ('k') | sandbox/win/src/sandbox_policy_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « sandbox/win/src/sandbox_nt_util.cc ('k') | sandbox/win/src/sandbox_policy_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698