| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "components/crash/app/hard_error_handler_win.h" | 5 #include "components/crash/content/app/hard_error_handler_win.h" |
| 6 | 6 |
| 7 #include <DelayIMP.h> | 7 #include <DelayIMP.h> |
| 8 #include <winternl.h> | 8 #include <winternl.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "components/crash/app/crash_reporter_client.h" | 12 #include "components/crash/content/app/crash_reporter_client.h" |
| 13 | 13 |
| 14 namespace breakpad { | 14 namespace breakpad { |
| 15 | 15 |
| 16 using crash_reporter::GetCrashReporterClient; | 16 using crash_reporter::GetCrashReporterClient; |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 const DWORD kExceptionModuleNotFound = VcppException(ERROR_SEVERITY_ERROR, | 19 const DWORD kExceptionModuleNotFound = VcppException(ERROR_SEVERITY_ERROR, |
| 20 ERROR_MOD_NOT_FOUND); | 20 ERROR_MOD_NOT_FOUND); |
| 21 const DWORD kExceptionEntryPtNotFound = VcppException(ERROR_SEVERITY_ERROR, | 21 const DWORD kExceptionEntryPtNotFound = VcppException(ERROR_SEVERITY_ERROR, |
| 22 ERROR_PROC_NOT_FOUND); | 22 ERROR_PROC_NOT_FOUND); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 EntryPointNotFoundHardError(ex_info->ExceptionRecord); | 103 EntryPointNotFoundHardError(ex_info->ExceptionRecord); |
| 104 return true; | 104 return true; |
| 105 } else if (FacilityFromException(exception) == FACILITY_GRAPHICS_KERNEL) { | 105 } else if (FacilityFromException(exception) == FACILITY_GRAPHICS_KERNEL) { |
| 106 RaiseHardErrorMsg(exception, std::string(), std::string()); | 106 RaiseHardErrorMsg(exception, std::string(), std::string()); |
| 107 return true; | 107 return true; |
| 108 } | 108 } |
| 109 return false; | 109 return false; |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace breakpad | 112 } // namespace breakpad |
| OLD | NEW |