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/breakpad/hard_error_handler_win.h" | 5 #include "components/breakpad/app/hard_error_handler_win.h" |
6 | 6 |
7 #if defined(_WIN32_WINNT_WIN8) && _MSC_VER < 1700 | 7 #if defined(_WIN32_WINNT_WIN8) && _MSC_VER < 1700 |
8 // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h, and in | 8 // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h, and in |
9 // delayimp.h previous to VS2012. | 9 // delayimp.h previous to VS2012. |
10 #undef FACILITY_VISUALCPP | 10 #undef FACILITY_VISUALCPP |
11 #endif | 11 #endif |
12 #include <DelayIMP.h> | 12 #include <DelayIMP.h> |
13 #include <winternl.h> | 13 #include <winternl.h> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "components/breakpad/breakpad_client.h" | 17 #include "components/breakpad/app/breakpad_client.h" |
18 | 18 |
19 namespace breakpad { | 19 namespace breakpad { |
20 | 20 |
21 namespace { | 21 namespace { |
22 const DWORD kExceptionModuleNotFound = VcppException(ERROR_SEVERITY_ERROR, | 22 const DWORD kExceptionModuleNotFound = VcppException(ERROR_SEVERITY_ERROR, |
23 ERROR_MOD_NOT_FOUND); | 23 ERROR_MOD_NOT_FOUND); |
24 const DWORD kExceptionEntryPtNotFound = VcppException(ERROR_SEVERITY_ERROR, | 24 const DWORD kExceptionEntryPtNotFound = VcppException(ERROR_SEVERITY_ERROR, |
25 ERROR_PROC_NOT_FOUND); | 25 ERROR_PROC_NOT_FOUND); |
26 // This is defined in <ntstatus.h> but we can't include this file here. | 26 // This is defined in <ntstatus.h> but we can't include this file here. |
27 const DWORD FACILITY_GRAPHICS_KERNEL = 0x1E; | 27 const DWORD FACILITY_GRAPHICS_KERNEL = 0x1E; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 RaiseHardErrorMsg(exception, std::string(), std::string()); | 109 RaiseHardErrorMsg(exception, std::string(), std::string()); |
110 return true; | 110 return true; |
111 #else | 111 #else |
112 return false; | 112 return false; |
113 #endif | 113 #endif |
114 } | 114 } |
115 return false; | 115 return false; |
116 } | 116 } |
117 | 117 |
118 } // namespace breakpad | 118 } // namespace breakpad |
OLD | NEW |