| 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/content/app/breakpad_win.h" | 5 #include "components/crash/content/app/breakpad_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <shellapi.h> | 8 #include <shellapi.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <tchar.h> | 10 #include <tchar.h> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "base/win/registry.h" | 34 #include "base/win/registry.h" |
| 35 #include "base/win/win_util.h" | 35 #include "base/win/win_util.h" |
| 36 #include "breakpad/src/client/windows/common/ipc_protocol.h" | 36 #include "breakpad/src/client/windows/common/ipc_protocol.h" |
| 37 #include "breakpad/src/client/windows/handler/exception_handler.h" | 37 #include "breakpad/src/client/windows/handler/exception_handler.h" |
| 38 #include "components/crash/content/app/crash_keys_win.h" | 38 #include "components/crash/content/app/crash_keys_win.h" |
| 39 #include "components/crash/content/app/crash_reporter_client.h" | 39 #include "components/crash/content/app/crash_reporter_client.h" |
| 40 #include "components/crash/content/app/hard_error_handler_win.h" | 40 #include "components/crash/content/app/hard_error_handler_win.h" |
| 41 #include "components/crash/core/common/crash_keys.h" | 41 #include "components/crash/core/common/crash_keys.h" |
| 42 #include "content/public/common/result_codes.h" | 42 #include "content/public/common/result_codes.h" |
| 43 #include "sandbox/win/src/nt_internals.h" | 43 #include "sandbox/win/src/nt_internals.h" |
| 44 #include "sandbox/win/src/sidestep/preamble_patcher.h" | |
| 45 | 44 |
| 46 #pragma intrinsic(_AddressOfReturnAddress) | 45 #pragma intrinsic(_AddressOfReturnAddress) |
| 47 #pragma intrinsic(_ReturnAddress) | 46 #pragma intrinsic(_ReturnAddress) |
| 48 | 47 |
| 49 #ifdef _WIN64 | 48 #ifdef _WIN64 |
| 50 // See http://msdn.microsoft.com/en-us/library/ddssxxy8.aspx | 49 // See http://msdn.microsoft.com/en-us/library/ddssxxy8.aspx |
| 51 typedef struct _UNWIND_INFO { | 50 typedef struct _UNWIND_INFO { |
| 52 unsigned char Version : 3; | 51 unsigned char Version : 3; |
| 53 unsigned char Flags : 5; | 52 unsigned char Flags : 5; |
| 54 unsigned char SizeOfProlog; | 53 unsigned char SizeOfProlog; |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 extern "C" void __declspec(dllexport) __cdecl | 738 extern "C" void __declspec(dllexport) __cdecl |
| 740 UnregisterNonABICompliantCodeRange(void* start) { | 739 UnregisterNonABICompliantCodeRange(void* start) { |
| 741 ExceptionHandlerRecord* record = | 740 ExceptionHandlerRecord* record = |
| 742 reinterpret_cast<ExceptionHandlerRecord*>(start); | 741 reinterpret_cast<ExceptionHandlerRecord*>(start); |
| 743 | 742 |
| 744 CHECK(RtlDeleteFunctionTable(&record->runtime_function)); | 743 CHECK(RtlDeleteFunctionTable(&record->runtime_function)); |
| 745 } | 744 } |
| 746 #endif | 745 #endif |
| 747 | 746 |
| 748 } // namespace breakpad | 747 } // namespace breakpad |
| OLD | NEW |