summaryrefslogtreecommitdiffstats
path: root/chrome/app/breakpad_win.h
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-26 15:55:02 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-26 15:55:02 +0000
commitad5f54471a107a27a7d975f38651426b6c042fc3 (patch)
tree53f768a325cbe697577ec4773bf9d0c3d40a6bec /chrome/app/breakpad_win.h
parentb5c5cf54b6e984cbf8061da067398e90f9280d0d (diff)
downloadchromium_src-ad5f54471a107a27a7d975f38651426b6c042fc3.zip
chromium_src-ad5f54471a107a27a7d975f38651426b6c042fc3.tar.gz
chromium_src-ad5f54471a107a27a7d975f38651426b6c042fc3.tar.bz2
First stab at Mac breakpad support.
breakpad_mac.mm still needs some work, there's a bunch of scaffolding in there referring to a custom version of Breakpad I've got going locally. Review URL: http://codereview.chromium.org/53075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/breakpad_win.h')
-rw-r--r--chrome/app/breakpad_win.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/chrome/app/breakpad_win.h b/chrome/app/breakpad_win.h
new file mode 100644
index 0000000..3aeb5ea
--- /dev/null
+++ b/chrome/app/breakpad_win.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2006-2008 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_H_
+#define CHROME_APP_BREAKPAD_H_
+
+#include <windows.h>
+#include <string>
+
+// Calls InitCrashReporterThread in it's own thread for the browser process
+// or directly for the plugin and renderer process.
+void InitCrashReporterWithDllPath(const std::wstring& dll_path);
+
+// Intercepts a crash but does not process it, just ask if we want to restart
+// the browser or not.
+void InitDefaultCrashCallback();
+
+// If chrome has been restarted because it crashed, this function will display
+// a dialog asking for permission to continue execution or to exit now.
+bool ShowRestartDialogIfCrashed(bool* exit_now);
+
+#endif // CHROME_APP_BREAKPAD_H_