[email protected] | 0b818f7 | 2013-10-22 00:11:03 | [diff] [blame^] | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
[email protected] | 9a5d2a5 | 2009-05-22 03:37:45 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 9742508 | 2013-07-16 03:10:07 | [diff] [blame] | 5 | // Public interface for enabling Breakpad on Linux systems. |
[email protected] | d8d5913 | 2013-05-29 23:43:12 | [diff] [blame] | 6 | |
[email protected] | 0b818f7 | 2013-10-22 00:11:03 | [diff] [blame^] | 7 | #ifndef COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_H_ |
8 | #define COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_H_ | ||||
[email protected] | 9a5d2a5 | 2009-05-22 03:37:45 | [diff] [blame] | 9 | |
[email protected] | d8d5913 | 2013-05-29 23:43:12 | [diff] [blame] | 10 | #include "build/build_config.h" |
[email protected] | 89299633 | 2012-11-22 04:54:41 | [diff] [blame] | 11 | |
[email protected] | 0b818f7 | 2013-10-22 00:11:03 | [diff] [blame^] | 12 | namespace breakpad { |
13 | |||||
[email protected] | d8d5913 | 2013-05-29 23:43:12 | [diff] [blame] | 14 | // Turns on the crash reporter in any process. |
[email protected] | 1e7377d | 2009-05-28 20:23:06 | [diff] [blame] | 15 | extern void InitCrashReporter(); |
[email protected] | d8d5913 | 2013-05-29 23:43:12 | [diff] [blame] | 16 | |
17 | // Enables the crash reporter in child processes. | ||||
[email protected] | 40da3e0c | 2012-10-24 22:03:38 | [diff] [blame] | 18 | #if defined(OS_ANDROID) |
[email protected] | 82174aa | 2013-01-22 21:53:43 | [diff] [blame] | 19 | extern void InitNonBrowserCrashReporterForAndroid(); |
[email protected] | 40da3e0c | 2012-10-24 22:03:38 | [diff] [blame] | 20 | #endif |
[email protected] | d8d5913 | 2013-05-29 23:43:12 | [diff] [blame] | 21 | |
22 | // Checks if crash reporting is enabled. Note that this is not the same as | ||||
23 | // being opted into metrics reporting (and crash reporting), which controls | ||||
24 | // whether InitCrashReporter() is called. | ||||
[email protected] | b8d6ae1 | 2009-12-10 02:02:20 | [diff] [blame] | 25 | bool IsCrashReporterEnabled(); |
[email protected] | 2eb41e7 | 2009-07-15 23:07:34 | [diff] [blame] | 26 | |
[email protected] | 0b818f7 | 2013-10-22 00:11:03 | [diff] [blame^] | 27 | } // namespace breakpad |
28 | |||||
29 | #endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_H_ |