OLD | NEW |
1 // Copyright (c) 2006-2009 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_SRC_TARGET_PROCESS_H__ | 5 #ifndef SANDBOX_SRC_TARGET_PROCESS_H__ |
6 #define SANDBOX_SRC_TARGET_PROCESS_H__ | 6 #define SANDBOX_SRC_TARGET_PROCESS_H__ |
7 | 7 |
8 #include <Windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "sandbox/src/crosscall_server.h" | 11 #include "sandbox/src/crosscall_server.h" |
12 #include "sandbox/src/sandbox_types.h" | 12 #include "sandbox/src/sandbox_types.h" |
13 | 13 |
14 namespace sandbox { | 14 namespace sandbox { |
15 | 15 |
16 class BrokerServicesBase; | |
17 class SharedMemIPCServer; | 16 class SharedMemIPCServer; |
18 class BrokerDispatcherBase; | |
19 class ThreadProvider; | 17 class ThreadProvider; |
20 | 18 |
21 // TargetProcess models a target instance (child process). Objects of this | 19 // TargetProcess models a target instance (child process). Objects of this |
22 // class are owned by the Policy used to create them. | 20 // class are owned by the Policy used to create them. |
23 class TargetProcess { | 21 class TargetProcess { |
24 public: | 22 public: |
25 // The constructor takes ownership of |initial_token| and |lockdown_token|. | 23 // The constructor takes ownership of |initial_token| and |lockdown_token|. |
26 TargetProcess(HANDLE initial_token, HANDLE lockdown_token, HANDLE job, | 24 TargetProcess(HANDLE initial_token, HANDLE lockdown_token, HANDLE job, |
27 ThreadProvider* thread_pool); | 25 ThreadProvider* thread_pool); |
28 ~TargetProcess(); | 26 ~TargetProcess(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 }; | 112 }; |
115 | 113 |
116 // Creates a mock TargetProcess used for testing interceptions. | 114 // Creates a mock TargetProcess used for testing interceptions. |
117 // TODO(cpu): It seems that this method is not going to be used anymore. | 115 // TODO(cpu): It seems that this method is not going to be used anymore. |
118 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address); | 116 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address); |
119 | 117 |
120 | 118 |
121 } // namespace sandbox | 119 } // namespace sandbox |
122 | 120 |
123 #endif // SANDBOX_SRC_TARGET_PROCESS_H__ | 121 #endif // SANDBOX_SRC_TARGET_PROCESS_H__ |
OLD | NEW |