summaryrefslogtreecommitdiffstats
path: root/chrome/app/breakpad.h
blob: d94b7d55243968141fa6fcb3a957c38c7f6d7f4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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 InitCrashReporter(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();

// Initializes the crash reporter in chrome.
unsigned __stdcall InitCrashReporterThread(void* param);

// 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__