| 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_BROWSER_HANG_MONITOR_HANG_CRASH_DUMP_WIN_H_ | 5 #ifndef CHROME_BROWSER_HANG_MONITOR_HANG_CRASH_DUMP_WIN_H_ |
| 6 #define CHROME_BROWSER_HANG_MONITOR_HANG_CRASH_DUMP_WIN_H_ | 6 #define CHROME_BROWSER_HANG_MONITOR_HANG_CRASH_DUMP_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 // Causes the given child process to generate a crash dump and terminates the | 10 // Causes the given child process to generate a crash dump and terminates the |
| 11 // process. | 11 // process. |
| 12 void CrashDumpAndTerminateHungChildProcess(HANDLE hprocess); | 12 void CrashDumpAndTerminateHungChildProcess(HANDLE hprocess); |
| 13 | 13 |
| 14 // Causes the given process to generate a crash dump if it is handling pepper | 14 // TODO(yzshen): Remove when enough information is collected and the hang rate |
| 15 // messages. | 15 // of pepper/renderer processes is reduced. |
| 16 void CrashDumpIfProcessHandlingPepper(HANDLE hprocess); | 16 void CrashDumpForHangDebugging(HANDLE hprocess); |
| 17 | 17 |
| 18 #endif // CHROME_BROWSER_HANG_MONITOR_HANG_CRASH_DUMP_WIN_H_ | 18 #endif // CHROME_BROWSER_HANG_MONITOR_HANG_CRASH_DUMP_WIN_H_ |
| OLD | NEW |