summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-23 00:08:54 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-23 00:08:54 +0000
commit6a0335930245ffee564b966851e662af95f53296 (patch)
treeae844c9d88b24df00f6fc0eb74ad6da5d4d21c45 /base/process_util.h
parenta13f122545304dc92550ddf4cf5bed6053d41f4b (diff)
downloadchromium_src-6a0335930245ffee564b966851e662af95f53296.zip
chromium_src-6a0335930245ffee564b966851e662af95f53296.tar.gz
chromium_src-6a0335930245ffee564b966851e662af95f53296.tar.bz2
Linux: Report the failed memory allocation size on OOM crashes.
BUG=111733 TEST=none Review URL: http://codereview.chromium.org/9834001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128351 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/process_util.h b/base/process_util.h
index d160121..a89d4b1 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -134,6 +134,10 @@ enum TerminationStatus {
TERMINATION_STATUS_MAX_ENUM
};
+#if defined(USE_LINUX_BREAKPAD)
+extern size_t g_oom_size;
+#endif
+
// Returns the id of the current process.
BASE_EXPORT ProcessId GetCurrentProcId();