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

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: Resolves review feedback. Created 6 years, 10 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
« no previous file with comments | « no previous file | base/process/launch_win.cc » ('j') | content/browser/ppapi_plugin_process_host.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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // Restore the default exception handler, setting it to Apple Crash Reporter 208 // Restore the default exception handler, setting it to Apple Crash Reporter
209 // (ReportCrash). When forking and execing a new process, the child will 209 // (ReportCrash). When forking and execing a new process, the child will
210 // inherit the parent's exception ports, which may be set to the Breakpad 210 // inherit the parent's exception ports, which may be set to the Breakpad
211 // instance running inside the parent. The parent's Breakpad instance should 211 // instance running inside the parent. The parent's Breakpad instance should
212 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler 212 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler
213 // in the child after forking will restore the standard exception handler. 213 // in the child after forking will restore the standard exception handler.
214 // See http://crbug.com/20371/ for more details. 214 // See http://crbug.com/20371/ for more details.
215 void RestoreDefaultExceptionHandler(); 215 void RestoreDefaultExceptionHandler();
216 #endif // defined(OS_MACOSX) 216 #endif // defined(OS_MACOSX)
217 217
218 #if defined(OS_WIN)
219 // Launches a process with elevated privileges. This does not behave exactly
220 // like LaunchProcess as it uses ShellExecuteEx instead of CreateProcess to
221 // create the process. This means the process will have elevated privileges
222 // and thus some common operations like OpenProcess will fail. The process will
223 // be available through the |process_handle| argument. Currently the only
224 // option that is supported from LaunchOptions are |start_hidden| and |wait|.
225 BASE_EXPORT bool LaunchElevatedProcess(const CommandLine& cmdline,
Robert Sesek 2014/02/03 22:30:22 There's already a OS_WIN specific Launch function
Drew Haven 2014/02/04 21:25:54 Done.
226 const LaunchOptions& options,
227 ProcessHandle* process_handle);
228 #endif
218 } // namespace base 229 } // namespace base
219 230
220 #endif // BASE_PROCESS_LAUNCH_H_ 231 #endif // BASE_PROCESS_LAUNCH_H_
OLDNEW
« no previous file with comments | « no previous file | base/process/launch_win.cc » ('j') | content/browser/ppapi_plugin_process_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698