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

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_unittest.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..084e212a3ec2f60ea77d2bffe4a99d9faae636b8 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 current process immediately with |exit_code|.
+ void TerminateCurrentProcessImmediately(int exit_code) const;
Primiano Tucci (use gerrit) 2017/01/16 14:37:34 +static (and move up with the other statics) as th
+
// 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_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698