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

Side by Side Diff: sandbox/src/target_process.h

Issue 113190: Add support for alternate window station. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Job object containing the target process. 98 // Job object containing the target process.
99 HANDLE job_; 99 HANDLE job_;
100 // Reference to the IPC subsystem. 100 // Reference to the IPC subsystem.
101 SharedMemIPCServer* ipc_server_; 101 SharedMemIPCServer* ipc_server_;
102 // Provides the threads used by the IPC. This class does not own this pointer. 102 // Provides the threads used by the IPC. This class does not own this pointer.
103 ThreadProvider* thread_pool_; 103 ThreadProvider* thread_pool_;
104 // Base address of the main executable 104 // Base address of the main executable
105 void* base_address_; 105 void* base_address_;
106 // Full name of the target executable. 106 // Full name of the target executable.
107 wchar_t* exe_name_; 107 wchar_t* exe_name_;
108 // Desktop where the target process is running.
109 HDESK desktop_handle_;
110 108
111 // Function used for testing. 109 // Function used for testing.
112 friend TargetProcess* MakeTestTargetProcess(HANDLE process, 110 friend TargetProcess* MakeTestTargetProcess(HANDLE process,
113 HMODULE base_address); 111 HMODULE base_address);
114 112
115 DISALLOW_IMPLICIT_CONSTRUCTORS(TargetProcess); 113 DISALLOW_IMPLICIT_CONSTRUCTORS(TargetProcess);
116 }; 114 };
117 115
118 // Creates a mock TargetProcess used for testing interceptions. 116 // Creates a mock TargetProcess used for testing interceptions.
119 // TODO(cpu): It seems that this method is not going to be used anymore. 117 // TODO(cpu): It seems that this method is not going to be used anymore.
120 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address); 118 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address);
121 119
122 120
123 } // namespace sandbox 121 } // namespace sandbox
124 122
125 #endif // SANDBOX_SRC_TARGET_PROCESS_H__ 123 #endif // SANDBOX_SRC_TARGET_PROCESS_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698