| 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 #ifndef CHROME_FRAME_CRASH_REPORTING_VECTORED_HANDLER_H_ | 5 #ifndef CHROME_FRAME_CRASH_REPORTING_VECTORED_HANDLER_H_ |
| 6 #define CHROME_FRAME_CRASH_REPORTING_VECTORED_HANDLER_H_ | 6 #define CHROME_FRAME_CRASH_REPORTING_VECTORED_HANDLER_H_ |
| 7 | 7 |
| 8 // Base class for VectoredHandlerT just to hold some members (independent of | 8 // Base class for VectoredHandlerT just to hold some members (independent of |
| 9 // template parameter) | 9 // template parameter) |
| 10 class VectoredHandlerBase { | 10 class VectoredHandlerBase { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 static inline int IsOurModule(const void* address) { | 71 static inline int IsOurModule(const void* address) { |
| 72 return (g_module_start <= address && address < g_module_end); | 72 return (g_module_start <= address && address < g_module_end); |
| 73 } | 73 } |
| 74 | 74 |
| 75 static inline void SetModule(const void* module_start, | 75 static inline void SetModule(const void* module_start, |
| 76 const void* module_end) { | 76 const void* module_end) { |
| 77 g_module_start = module_start; | 77 g_module_start = module_start; |
| 78 g_module_end = module_end; | 78 g_module_end = module_end; |
| 79 } | 79 } |
| 80 |
| 81 static bool ShouldIgnoreException(const EXCEPTION_POINTERS* exceptionInfo) { |
| 82 return false; |
| 83 } |
| 80 }; | 84 }; |
| 81 | 85 |
| 82 DECLSPEC_SELECTANY const void* VEHTraitsBase::g_module_start; | 86 DECLSPEC_SELECTANY const void* VEHTraitsBase::g_module_start; |
| 83 DECLSPEC_SELECTANY const void* VEHTraitsBase::g_module_end; | 87 DECLSPEC_SELECTANY const void* VEHTraitsBase::g_module_end; |
| 84 | 88 |
| 85 class Win32VEHTraits; | 89 class Win32VEHTraits; |
| 86 typedef class VectoredHandlerT<Win32VEHTraits> VectoredHandler; | 90 typedef class VectoredHandlerT<Win32VEHTraits> VectoredHandler; |
| 87 #endif // CHROME_FRAME_CRASH_REPORTING_VECTORED_HANDLER_H_ | 91 #endif // CHROME_FRAME_CRASH_REPORTING_VECTORED_HANDLER_H_ |
| OLD | NEW |