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

Side by Side Diff: base/process/launch.h

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually works now. Removes unnecessary logging. Created 7 years 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
« no previous file with comments | « no previous file | base/process/launch.cc » ('j') | base/process/launch_win.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 // This file contains functions for launching subprocesses. 5 // This file contains functions for launching subprocesses.
6 6
7 #ifndef BASE_PROCESS_LAUNCH_H_ 7 #ifndef BASE_PROCESS_LAUNCH_H_
8 #define BASE_PROCESS_LAUNCH_H_ 8 #define BASE_PROCESS_LAUNCH_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // there is no way to redirect stderr without redirecting stdin). The 69 // there is no way to redirect stderr without redirecting stdin). The
70 // |inherit_handles| flag must be set to true when redirecting stdio stream. 70 // |inherit_handles| flag must be set to true when redirecting stdio stream.
71 HANDLE stdin_handle; 71 HANDLE stdin_handle;
72 HANDLE stdout_handle; 72 HANDLE stdout_handle;
73 HANDLE stderr_handle; 73 HANDLE stderr_handle;
74 74
75 // If set to true, ensures that the child process is launched with the 75 // If set to true, ensures that the child process is launched with the
76 // CREATE_BREAKAWAY_FROM_JOB flag which allows it to breakout of the parent 76 // CREATE_BREAKAWAY_FROM_JOB flag which allows it to breakout of the parent
77 // job if any. 77 // job if any.
78 bool force_breakaway_from_job_; 78 bool force_breakaway_from_job_;
79
80 bool run_elevated;
79 #else 81 #else
80 // Set/unset environment variables. Empty (the default) means to inherit 82 // Set/unset environment variables. Empty (the default) means to inherit
81 // the same environment. See AlterEnvironment(). 83 // the same environment. See AlterEnvironment().
82 EnvironmentMap environ; 84 EnvironmentMap environ;
83 85
84 // If non-NULL, remap file descriptors according to the mapping of 86 // If non-NULL, remap file descriptors according to the mapping of
85 // src fd->dest fd to propagate FDs into the child process. 87 // src fd->dest fd to propagate FDs into the child process.
86 // This pointer is owned by the caller and must live through the 88 // This pointer is owned by the caller and must live through the
87 // call to LaunchProcess(). 89 // call to LaunchProcess().
88 const FileHandleMappingVector* fds_to_remap; 90 const FileHandleMappingVector* fds_to_remap;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // instance running inside the parent. The parent's Breakpad instance should 213 // instance running inside the parent. The parent's Breakpad instance should
212 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler 214 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler
213 // in the child after forking will restore the standard exception handler. 215 // in the child after forking will restore the standard exception handler.
214 // See http://crbug.com/20371/ for more details. 216 // See http://crbug.com/20371/ for more details.
215 void RestoreDefaultExceptionHandler(); 217 void RestoreDefaultExceptionHandler();
216 #endif // defined(OS_MACOSX) 218 #endif // defined(OS_MACOSX)
217 219
218 } // namespace base 220 } // namespace base
219 221
220 #endif // BASE_PROCESS_LAUNCH_H_ 222 #endif // BASE_PROCESS_LAUNCH_H_
OLDNEW
« no previous file with comments | « no previous file | base/process/launch.cc » ('j') | base/process/launch_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698