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

Unified Diff: base/process_util.h

Issue 9837053: Added code for renderer to cleanly exit. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed some comments. Created 8 years, 9 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_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util.h
diff --git a/base/process_util.h b/base/process_util.h
index a89d4b11c6d0a86ac7646003e46f9eb74ec4abe7..90faab1939ee2baa3e7b9ab20e760b1630c3ff36 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -10,6 +10,9 @@
#pragma once
#include "base/basictypes.h"
+#if defined(RENDERER_CLEAN_EXIT)
+#include "base/atomicops.h"
+#endif // defined(RENDERER_CLEAN_EXIT)
#if defined(OS_WIN)
#include <windows.h>
@@ -839,6 +842,12 @@ BASE_EXPORT void RaiseProcessToHighPriority();
void RestoreDefaultExceptionHandler();
#endif // defined(OS_MACOSX)
+#if defined(RENDERER_CLEAN_EXIT)
+extern base::subtle::Atomic32 exit_counter;
+
+BASE_EXPORT void clean_exit(int return_value) __attribute__((noreturn));
+#endif // defined(RENDERER_CLEAN_EXIT)
+
} // namespace base
#endif // BASE_PROCESS_UTIL_H_
« no previous file with comments | « no previous file | base/process_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698