[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] | 8dc338c | 2013-12-09 16:28:48 | [diff] [blame^] | 10 | #include <string> |
11 | |||||
[email protected] | d8d5913 | 2013-05-29 23:43:12 | [diff] [blame] | 12 | #include "build/build_config.h" |
[email protected] | 89299633 | 2012-11-22 04:54:41 | [diff] [blame] | 13 | |
[email protected] | 0b818f7 | 2013-10-22 00:11:03 | [diff] [blame] | 14 | namespace breakpad { |
15 | |||||
[email protected] | d8d5913 | 2013-05-29 23:43:12 | [diff] [blame] | 16 | // Turns on the crash reporter in any process. |
[email protected] | 8dc338c | 2013-12-09 16:28:48 | [diff] [blame^] | 17 | extern void InitCrashReporter(const std::string& process_type); |
[email protected] | d8d5913 | 2013-05-29 23:43:12 | [diff] [blame] | 18 | |
19 | // Enables the crash reporter in child processes. | ||||
[email protected] | 40da3e0c | 2012-10-24 22:03:38 | [diff] [blame] | 20 | #if defined(OS_ANDROID) |
[email protected] | 8dc338c | 2013-12-09 16:28:48 | [diff] [blame^] | 21 | extern void InitNonBrowserCrashReporterForAndroid( |
22 | const std::string& process_type); | ||||
[email protected] | 40da3e0c | 2012-10-24 22:03:38 | [diff] [blame] | 23 | #endif |
[email protected] | d8d5913 | 2013-05-29 23:43:12 | [diff] [blame] | 24 | |
25 | // Checks if crash reporting is enabled. Note that this is not the same as | ||||
26 | // being opted into metrics reporting (and crash reporting), which controls | ||||
27 | // whether InitCrashReporter() is called. | ||||
[email protected] | b8d6ae1 | 2009-12-10 02:02:20 | [diff] [blame] | 28 | bool IsCrashReporterEnabled(); |
[email protected] | 2eb41e7 | 2009-07-15 23:07:34 | [diff] [blame] | 29 | |
[email protected] | 0b818f7 | 2013-10-22 00:11:03 | [diff] [blame] | 30 | } // namespace breakpad |
31 | |||||
32 | #endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_H_ |