Index: base/process_util.h |
=================================================================== |
--- base/process_util.h (revision 99780) |
+++ base/process_util.h (working copy) |
@@ -43,6 +43,11 @@ |
namespace base { |
#if defined(OS_WIN) |
+ |
+namespace win { |
+class ScopedHandle; |
+} |
+ |
struct ProcessEntry : public PROCESSENTRY32 { |
ProcessId pid() const { return th32ProcessID; } |
ProcessId parent_pid() const { return th32ParentProcessID; } |
@@ -213,7 +218,7 @@ |
LaunchOptions() : wait(false), |
#if defined(OS_WIN) |
start_hidden(false), inherit_handles(false), as_user(NULL), |
- empty_desktop_name(false) |
+ empty_desktop_name(false), job_handle(NULL) |
#else |
environ(NULL), fds_to_remap(NULL), new_process_group(false) |
#if defined(OS_LINUX) |
@@ -245,6 +250,10 @@ |
// If true, use an empty string for the desktop name. |
bool empty_desktop_name; |
+ |
+ // If non-NULL, launches the application in a new job object |
+ // and puts the job object handle in |job_handle|. |
+ win::ScopedHandle* job_handle; |
#else |
// If non-NULL, set/unset environment variables. |
// See documentation of AlterEnvironment(). |