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

Unified Diff: base/process_util.h

Issue 10832309: Make printf and LOG output to cmd console for Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wez feedback Created 8 years, 4 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_win.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 04c1d88d2b80b244016d57adca68438cb7674085..25d24202272c9cb3413a61db2658e75da2ba6d32 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -138,6 +138,12 @@ enum TerminationStatus {
BASE_EXPORT extern size_t g_oom_size;
#endif
+#if defined(OS_WIN)
+// Output multi-process printf, cout, cerr, etc to the cmd.exe console that ran
+// chrome. This is not thread-safe: only call from main thread.
+BASE_EXPORT void RouteStdioToConsole();
+#endif
+
// Returns the id of the current process.
BASE_EXPORT ProcessId GetCurrentProcId();
@@ -832,7 +838,7 @@ BASE_EXPORT malloc_zone_t* GetPurgeableZone();
// Enables stack dump to console output on exception and signals.
// When enabled, the process will quit immediately. This is meant to be used in
-// unit_tests only!
+// unit_tests only! This is not thread-safe: only call from main thread.
BASE_EXPORT bool EnableInProcessStackDumping();
// If supported on the platform, and the user has sufficent rights, increase
« no previous file with comments | « no previous file | base/process_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698