OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_APP_BREAKPAD_WIN_H_ | 5 #ifndef CHROME_APP_BREAKPAD_WIN_H_ |
6 #define CHROME_APP_BREAKPAD_WIN_H_ | 6 #define CHROME_APP_BREAKPAD_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 // The maximum number of 64-char URL chunks we will report. | 12 // The maximum number of 64-char URL chunks we will report. |
13 static const int kMaxUrlChunks = 8; | 13 static const int kMaxUrlChunks = 8; |
14 | 14 |
| 15 // Calls InitCrashReporterThread in its own thread for the browser process |
| 16 // or directly for the plugin and renderer process. |
15 void InitCrashReporter(); | 17 void InitCrashReporter(); |
16 | 18 |
17 // Intercepts a crash but does not process it, just ask if we want to restart | 19 // Intercepts a crash but does not process it, just ask if we want to restart |
18 // the browser or not. | 20 // the browser or not. |
19 void InitDefaultCrashCallback(LPTOP_LEVEL_EXCEPTION_FILTER filter); | 21 void InitDefaultCrashCallback(LPTOP_LEVEL_EXCEPTION_FILTER filter); |
20 | 22 |
21 // If chrome has been restarted because it crashed, this function will display | 23 // If chrome has been restarted because it crashed, this function will display |
22 // a dialog asking for permission to continue execution or to exit now. | 24 // a dialog asking for permission to continue execution or to exit now. |
23 bool ShowRestartDialogIfCrashed(bool* exit_now); | 25 bool ShowRestartDialogIfCrashed(bool* exit_now); |
24 | 26 |
25 #endif // CHROME_APP_BREAKPAD_WIN_H_ | 27 #endif // CHROME_APP_BREAKPAD_WIN_H_ |
OLD | NEW |