summaryrefslogtreecommitdiffstats
path: root/chrome_frame/crash_reporting/crash_report.h
blob: b8898bd8ea6d77642643a5abfcefc8f3198582ea (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
28
29
30
31
32
33
34
// Copyright (c) 2010 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.

// crash_report.h : Declarations for crash reporting.

#ifndef CHROME_FRAME_CRASH_REPORTING_CRASH_REPORT_H_
#define CHROME_FRAME_CRASH_REPORTING_CRASH_REPORT_H_

#include <string>

#include "breakpad/src/client/windows/handler/exception_handler.h"

extern google_breakpad::ExceptionHandler* g_breakpad;
extern "C" IMAGE_DOS_HEADER __ImageBase;

bool InitializeVectoredCrashReporting(
    bool full_dump,
    const wchar_t* user_sid,
    const std::wstring& dump_path,
    google_breakpad::CustomClientInfo* client_info);

bool InitializeVectoredCrashReportingWithPipeName(
    bool full_dump,
    const wchar_t* pipe_name,
    const std::wstring& dump_path,
    google_breakpad::CustomClientInfo* client_info);

bool ShutdownVectoredCrashReporting();

bool WriteMinidumpForException(EXCEPTION_POINTERS* p);


#endif  // CHROME_FRAME_CRASH_REPORTING_CRASH_REPORT_H_