Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: components/breakpad/app/hard_error_handler_win.h

Issue 31243002: Move Linux/Android breakpad implementation to breakpad component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef COMPONENTS_BREAKPAD_HARD_ERROR_HANDLER_WIN_H_ 5 #ifndef COMPONENTS_BREAKPAD_APP_HARD_ERROR_HANDLER_WIN_H_
6 #define COMPONENTS_BREAKPAD_HARD_ERROR_HANDLER_WIN_H_ 6 #define COMPONENTS_BREAKPAD_APP_HARD_ERROR_HANDLER_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 namespace breakpad { 10 namespace breakpad {
11 11
12 // This function is in charge of displaying a dialog box that informs the 12 // This function is in charge of displaying a dialog box that informs the
13 // user of a fatal condition in chrome. It is meant to be called from 13 // user of a fatal condition in chrome. It is meant to be called from
14 // breakpad's unhandled exception handler after the crash dump has been 14 // breakpad's unhandled exception handler after the crash dump has been
15 // created. The return value will be true if we are to retry launching 15 // created. The return value will be true if we are to retry launching
16 // chrome (and show the 'chrome has crashed' dialog) or to silently exit. 16 // chrome (and show the 'chrome has crashed' dialog) or to silently exit.
17 // 17 //
18 // This function only handles a few known exceptions, currently: 18 // This function only handles a few known exceptions, currently:
19 // - Failure to load a delayload dll. 19 // - Failure to load a delayload dll.
20 // - Failure to bind to a delayloaded import. 20 // - Failure to bind to a delayloaded import.
21 // - Fatal Graphics card failure (aura build only). 21 // - Fatal Graphics card failure (aura build only).
22 // 22 //
23 // If any of these conditions are encountered, a message box shown by 23 // If any of these conditions are encountered, a message box shown by
24 // the operating system CSRSS process via NtRaiseHardError is invoked. 24 // the operating system CSRSS process via NtRaiseHardError is invoked.
25 // The wording and localization is up to the operating system. 25 // The wording and localization is up to the operating system.
26 // 26 //
27 // Do not call this function for memory related errors like heap corruption 27 // Do not call this function for memory related errors like heap corruption
28 // or stack exahustion. This function assumes that memory allocations are 28 // or stack exahustion. This function assumes that memory allocations are
29 // possible. 29 // possible.
30 bool HardErrorHandler(EXCEPTION_POINTERS* ex_info); 30 bool HardErrorHandler(EXCEPTION_POINTERS* ex_info);
31 31
32 } // namespace breakpad 32 } // namespace breakpad
33 33
34 #endif // COMPONENTS_BREAKPAD_HARD_ERROR_HANDLER_WIN_H_ 34 #endif // COMPONENTS_BREAKPAD_APP_HARD_ERROR_HANDLER_WIN_H_
OLDNEW
« no previous file with comments | « components/breakpad/app/breakpad_win.cc ('k') | components/breakpad/app/hard_error_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698