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

Unified Diff: base/process/process.h

Issue 2629623003: Win should call ::TerminateProcess to exit a renderer process (Closed)
Patch Set: temp Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/process/process_posix.cc » ('j') | base/process/process_posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process.h
diff --git a/base/process/process.h b/base/process/process.h
index 978ca78c04683dd4e0c87a388e9c10e8e77a2afd..d911f408469d304f0e98a31a8117a79d60364a67 100644
--- a/base/process/process.h
+++ b/base/process/process.h
@@ -102,6 +102,9 @@ class BASE_EXPORT Process {
// NOTE: On POSIX |exit_code| is ignored.
bool Terminate(int exit_code, bool wait) const;
+ // Terminates the process immediately with |exit_code|.
+ void TerminateImmediately(int exit_code) const;
+
// Waits for the process to exit. Returns true on success.
// On POSIX, if the process has been signaled then |exit_code| is set to -1.
// On Linux this must be a child process, however on Mac and Windows it can be
« no previous file with comments | « no previous file | base/process/process_posix.cc » ('j') | base/process/process_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698