summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-07 21:54:42 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-07 21:54:42 +0000
commit86f723ec260292fb6076244aa721d09dc65aff98 (patch)
tree7d4a2fa7d0f6b7dbc65a9f474fbe42895cfc3697 /base/process_util.h
parentd94e0bf48332e8bca1b7036863aded435a99ddf4 (diff)
downloadchromium_src-86f723ec260292fb6076244aa721d09dc65aff98.zip
chromium_src-86f723ec260292fb6076244aa721d09dc65aff98.tar.gz
chromium_src-86f723ec260292fb6076244aa721d09dc65aff98.tar.bz2
Move launching in a job object logic
from TestServer to LaunchProcess, so that I can re-use it in other places for experiments. BUG=none Review URL: http://codereview.chromium.org/7789018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100027 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/process_util.h b/base/process_util.h
index 34e9e91..574332f8 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -213,7 +213,7 @@ struct LaunchOptions {
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 +245,9 @@ struct LaunchOptions {
// If true, use an empty string for the desktop name.
bool empty_desktop_name;
+
+ // If non-NULL, launches the application in that job object.
+ HANDLE job_handle;
#else
// If non-NULL, set/unset environment variables.
// See documentation of AlterEnvironment().