OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // crash_report.h : Declarations for crash reporting. | 5 // crash_report.h : Declarations for crash reporting. |
6 | 6 |
7 #ifndef CHROME_FRAME_CRASH_REPORTING_CRASH_REPORT_H_ | 7 #ifndef CHROME_FRAME_CRASH_REPORTING_CRASH_REPORT_H_ |
8 #define CHROME_FRAME_CRASH_REPORTING_CRASH_REPORT_H_ | 8 #define CHROME_FRAME_CRASH_REPORTING_CRASH_REPORT_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/logging.h" | |
13 #include "breakpad/src/client/windows/handler/exception_handler.h" | 12 #include "breakpad/src/client/windows/handler/exception_handler.h" |
14 | 13 |
15 extern google_breakpad::ExceptionHandler* g_breakpad; | 14 extern google_breakpad::ExceptionHandler* g_breakpad; |
16 extern "C" IMAGE_DOS_HEADER __ImageBase; | 15 extern "C" IMAGE_DOS_HEADER __ImageBase; |
17 | 16 |
18 bool InitializeVectoredCrashReporting( | 17 bool InitializeVectoredCrashReporting( |
19 bool full_dump, | 18 bool full_dump, |
20 const wchar_t* user_sid, | 19 const wchar_t* user_sid, |
21 const std::wstring& dump_path, | 20 const std::wstring& dump_path, |
22 google_breakpad::CustomClientInfo* client_info); | 21 google_breakpad::CustomClientInfo* client_info); |
23 | 22 |
24 bool InitializeVectoredCrashReportingWithPipeName( | 23 bool InitializeVectoredCrashReportingWithPipeName( |
25 bool full_dump, | 24 bool full_dump, |
26 const wchar_t* pipe_name, | 25 const wchar_t* pipe_name, |
27 const std::wstring& dump_path, | 26 const std::wstring& dump_path, |
28 google_breakpad::CustomClientInfo* client_info); | 27 google_breakpad::CustomClientInfo* client_info); |
29 | 28 |
30 bool ShutdownVectoredCrashReporting(); | 29 bool ShutdownVectoredCrashReporting(); |
31 | 30 |
32 bool WriteMinidumpForException(EXCEPTION_POINTERS* p); | 31 bool WriteMinidumpForException(EXCEPTION_POINTERS* p); |
33 | 32 |
34 | 33 |
35 #endif // CHROME_FRAME_CRASH_REPORTING_CRASH_REPORT_H_ | 34 #endif // CHROME_FRAME_CRASH_REPORTING_CRASH_REPORT_H_ |
OLD | NEW |