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 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 base::win::ScopedHandle shared_section_; | 106 base::win::ScopedHandle shared_section_; |
107 // Job object containing the target process. | 107 // Job object containing the target process. |
108 HANDLE job_; | 108 HANDLE job_; |
109 // Reference to the IPC subsystem. | 109 // Reference to the IPC subsystem. |
110 scoped_ptr<SharedMemIPCServer> ipc_server_; | 110 scoped_ptr<SharedMemIPCServer> ipc_server_; |
111 // Provides the threads used by the IPC. This class does not own this pointer. | 111 // Provides the threads used by the IPC. This class does not own this pointer. |
112 ThreadProvider* thread_pool_; | 112 ThreadProvider* thread_pool_; |
113 // Base address of the main executable | 113 // Base address of the main executable |
114 void* base_address_; | 114 void* base_address_; |
115 // Full name of the target executable. | 115 // Full name of the target executable. |
116 scoped_ptr_malloc<wchar_t> exe_name_; | 116 scoped_ptr<wchar_t, base::FreeDeleter> exe_name_; |
117 | 117 |
118 // Function used for testing. | 118 // Function used for testing. |
119 friend TargetProcess* MakeTestTargetProcess(HANDLE process, | 119 friend TargetProcess* MakeTestTargetProcess(HANDLE process, |
120 HMODULE base_address); | 120 HMODULE base_address); |
121 | 121 |
122 DISALLOW_IMPLICIT_CONSTRUCTORS(TargetProcess); | 122 DISALLOW_IMPLICIT_CONSTRUCTORS(TargetProcess); |
123 }; | 123 }; |
124 | 124 |
125 // Creates a mock TargetProcess used for testing interceptions. | 125 // Creates a mock TargetProcess used for testing interceptions. |
126 // TODO(cpu): It seems that this method is not going to be used anymore. | 126 // TODO(cpu): It seems that this method is not going to be used anymore. |
127 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address); | 127 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address); |
128 | 128 |
129 | 129 |
130 } // namespace sandbox | 130 } // namespace sandbox |
131 | 131 |
132 #endif // SANDBOX_WIN_SRC_TARGET_PROCESS_H_ | 132 #endif // SANDBOX_WIN_SRC_TARGET_PROCESS_H_ |
OLD | NEW |