summaryrefslogtreecommitdiffstats
path: root/chrome/app/breakpad_linux.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-10 19:04:43 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-10 19:04:43 +0000
commit9603fa7f011a3a6fddd9df0f02b92aa1bd279024 (patch)
tree6df46f42b7acf273f18782f80c5d67e5fe8bb78f /chrome/app/breakpad_linux.h
parent43d42d8cf4da8b10d498d98f4c6120063c3df869 (diff)
downloadchromium_src-9603fa7f011a3a6fddd9df0f02b92aa1bd279024.zip
chromium_src-9603fa7f011a3a6fddd9df0f02b92aa1bd279024.tar.gz
chromium_src-9603fa7f011a3a6fddd9df0f02b92aa1bd279024.tar.bz2
Revert 131593
Speculatively reverting due to gyp update error on official bots: KeyError: 'src/breakpad/breakpad.gyp:dump_syms#target while trying to load target src/remoting/remoting.gyp:remoting_linux_symbols#target' This is the only patch in the regression range that touches breakpad.gyp. --- Upstream Android native crash handling changes. This is actulaly the second time. Revert "Revert 131404 - Upstream native crash handling changes for Android." This reverts commit 421df96aab6267e963ddff16c9f738aa903a2cba. Conflicts: chrome/browser/chrome_browser_main.cc BUG= TEST= Review URL: http://codereview.chromium.org/9967017 TBR=carlosvaldivia@google.com Review URL: https://chromiumcodereview.appspot.com/10037013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131600 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/breakpad_linux.h')
-rw-r--r--chrome/app/breakpad_linux.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/chrome/app/breakpad_linux.h b/chrome/app/breakpad_linux.h
new file mode 100644
index 0000000..7c20514
--- /dev/null
+++ b/chrome/app/breakpad_linux.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_APP_BREAKPAD_LINUX_H_
+#define CHROME_APP_BREAKPAD_LINUX_H_
+#pragma once
+
+#include "base/basictypes.h"
+
+extern void InitCrashReporter();
+bool IsCrashReporterEnabled();
+
+static const size_t kMaxActiveURLSize = 1024;
+static const size_t kGuidSize = 32; // 128 bits = 32 chars in hex.
+static const size_t kDistroSize = 128;
+
+struct BreakpadInfo {
+ const char* filename; // Path to the Breakpad dump data.
+ const char* process_type; // Process type, e.g. "renderer".
+ unsigned process_type_length; // Length of |process_type|.
+ const char* crash_url; // Active URL in the crashing process.
+ unsigned crash_url_length; // Length of |crash_url|.
+ const char* guid; // Client ID.
+ unsigned guid_length; // Length of |guid|.
+ const char* distro; // Linux distro string.
+ unsigned distro_length; // Length of |distro|.
+ bool upload; // Whether to upload or save crash dump.
+ uint64_t process_start_time; // Uptime of the crashing process.
+ size_t oom_size; // Amount of memory requested if OOM.
+};
+
+extern void HandleCrashDump(const BreakpadInfo& info);
+
+#endif // CHROME_APP_BREAKPAD_LINUX_H_