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_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 "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/win/scoped_handle.h" | 12 #include "base/win/scoped_handle.h" |
13 #include "base/win/scoped_process_information.h" | 13 #include "base/win/scoped_process_information.h" |
14 #include "sandbox/src/crosscall_server.h" | 14 #include "sandbox/win/src/crosscall_server.h" |
15 #include "sandbox/src/sandbox_types.h" | 15 #include "sandbox/win/src/sandbox_types.h" |
16 | 16 |
17 namespace sandbox { | 17 namespace sandbox { |
18 | 18 |
19 class SharedMemIPCServer; | 19 class SharedMemIPCServer; |
20 class ThreadProvider; | 20 class ThreadProvider; |
21 | 21 |
22 // TargetProcess models a target instance (child process). Objects of this | 22 // TargetProcess models a target instance (child process). Objects of this |
23 // class are owned by the Policy used to create them. | 23 // class are owned by the Policy used to create them. |
24 class TargetProcess { | 24 class TargetProcess { |
25 public: | 25 public: |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 }; | 113 }; |
114 | 114 |
115 // Creates a mock TargetProcess used for testing interceptions. | 115 // Creates a mock TargetProcess used for testing interceptions. |
116 // TODO(cpu): It seems that this method is not going to be used anymore. | 116 // TODO(cpu): It seems that this method is not going to be used anymore. |
117 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address); | 117 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address); |
118 | 118 |
119 | 119 |
120 } // namespace sandbox | 120 } // namespace sandbox |
121 | 121 |
122 #endif // SANDBOX_SRC_TARGET_PROCESS_H__ | 122 #endif // SANDBOX_SRC_TARGET_PROCESS_H__ |
OLD | NEW |