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_WIN_SRC_TARGET_PROCESS_H_ | 5 #ifndef SANDBOX_WIN_SRC_TARGET_PROCESS_H_ |
6 #define SANDBOX_WIN_SRC_TARGET_PROCESS_H_ | 6 #define SANDBOX_WIN_SRC_TARGET_PROCESS_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 10 matching lines...) Expand all Loading... |
21 namespace base { | 21 namespace base { |
22 namespace win { | 22 namespace win { |
23 | 23 |
24 class StartupInformation; | 24 class StartupInformation; |
25 | 25 |
26 }; // namespace win | 26 }; // namespace win |
27 }; // namespace base | 27 }; // namespace base |
28 | 28 |
29 namespace sandbox { | 29 namespace sandbox { |
30 | 30 |
31 class AttributeList; | |
32 class SharedMemIPCServer; | 31 class SharedMemIPCServer; |
33 class ThreadProvider; | 32 class ThreadProvider; |
34 | 33 |
35 // TargetProcess models a target instance (child process). Objects of this | 34 // TargetProcess models a target instance (child process). Objects of this |
36 // class are owned by the Policy used to create them. | 35 // class are owned by the Policy used to create them. |
37 class TargetProcess { | 36 class TargetProcess { |
38 public: | 37 public: |
39 // The constructor takes ownership of |initial_token|, |lockdown_token| | 38 // The constructor takes ownership of |initial_token|, |lockdown_token| |
40 // and |lowbox_token|. | 39 // and |lowbox_token|. |
41 TargetProcess(base::win::ScopedHandle initial_token, | 40 TargetProcess(base::win::ScopedHandle initial_token, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 }; | 138 }; |
140 | 139 |
141 // Creates a mock TargetProcess used for testing interceptions. | 140 // Creates a mock TargetProcess used for testing interceptions. |
142 // TODO(cpu): It seems that this method is not going to be used anymore. | 141 // TODO(cpu): It seems that this method is not going to be used anymore. |
143 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address); | 142 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address); |
144 | 143 |
145 | 144 |
146 } // namespace sandbox | 145 } // namespace sandbox |
147 | 146 |
148 #endif // SANDBOX_WIN_SRC_TARGET_PROCESS_H_ | 147 #endif // SANDBOX_WIN_SRC_TARGET_PROCESS_H_ |
OLD | NEW |