| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/lock.h" | |
| 13 #include "base/logging.h" | 12 #include "base/logging.h" |
| 14 #include "breakpad/src/client/windows/handler/exception_handler.h" | 13 #include "breakpad/src/client/windows/handler/exception_handler.h" |
| 15 | 14 |
| 16 extern google_breakpad::ExceptionHandler* g_breakpad; | 15 extern google_breakpad::ExceptionHandler* g_breakpad; |
| 17 extern "C" IMAGE_DOS_HEADER __ImageBase; | 16 extern "C" IMAGE_DOS_HEADER __ImageBase; |
| 18 | 17 |
| 19 bool InitializeVectoredCrashReporting( | 18 bool InitializeVectoredCrashReporting( |
| 20 bool full_dump, | 19 bool full_dump, |
| 21 const wchar_t* user_sid, | 20 const wchar_t* user_sid, |
| 22 const std::wstring& dump_path, | 21 const std::wstring& dump_path, |
| 23 google_breakpad::CustomClientInfo* client_info); | 22 google_breakpad::CustomClientInfo* client_info); |
| 24 | 23 |
| 25 bool InitializeVectoredCrashReportingWithPipeName( | 24 bool InitializeVectoredCrashReportingWithPipeName( |
| 26 bool full_dump, | 25 bool full_dump, |
| 27 const wchar_t* pipe_name, | 26 const wchar_t* pipe_name, |
| 28 const std::wstring& dump_path, | 27 const std::wstring& dump_path, |
| 29 google_breakpad::CustomClientInfo* client_info); | 28 google_breakpad::CustomClientInfo* client_info); |
| 30 | 29 |
| 31 bool ShutdownVectoredCrashReporting(); | 30 bool ShutdownVectoredCrashReporting(); |
| 32 | 31 |
| 33 bool WriteMinidumpForException(EXCEPTION_POINTERS* p); | 32 bool WriteMinidumpForException(EXCEPTION_POINTERS* p); |
| 34 | 33 |
| 35 | 34 |
| 36 #endif // CHROME_FRAME_CRASH_REPORTING_CRASH_REPORT_H_ | 35 #endif // CHROME_FRAME_CRASH_REPORTING_CRASH_REPORT_H_ |
| OLD | NEW |