| OLD | NEW |
| 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 // Public interface for enabling Breakpad on Linux systems. | 5 // Public interface for enabling Breakpad on Linux systems. |
| 6 | 6 |
| 7 #ifndef COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 7 #ifndef COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
| 8 #define COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 8 #define COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 namespace breakpad { | 14 namespace breakpad { |
| 15 | 15 |
| 16 // Turns on the crash reporter in any process. | 16 // Turns on the crash reporter in any process. |
| 17 extern void InitCrashReporter(const std::string& process_type); | 17 extern void InitCrashReporter(const std::string& process_type); |
| 18 | 18 |
| 19 #if defined(OS_ANDROID) | 19 #if defined(OS_ANDROID) |
| 20 |
| 21 const char kWebViewSingleProcessType[] = "webview"; |
| 22 const char kBrowserProcessType[] = "browser"; |
| 23 |
| 20 // Enables the crash reporter in child processes. | 24 // Enables the crash reporter in child processes. |
| 21 extern void InitNonBrowserCrashReporterForAndroid( | 25 extern void InitNonBrowserCrashReporterForAndroid( |
| 22 const std::string& process_type); | 26 const std::string& process_type); |
| 23 | 27 |
| 24 // Enables *micro*dump only. Can be called from any process. | 28 // Enables *micro*dump only. Can be called from any process. |
| 25 extern void InitMicrodumpCrashHandlerIfNecessary( | 29 extern void InitMicrodumpCrashHandlerIfNecessary( |
| 26 const std::string& process_type); | 30 const std::string& process_type); |
| 27 | 31 |
| 28 extern void AddGpuFingerprintToMicrodumpCrashHandler( | 32 extern void AddGpuFingerprintToMicrodumpCrashHandler( |
| 29 const std::string& gpu_fingerprint); | 33 const std::string& gpu_fingerprint); |
| 30 #endif | 34 #endif |
| 31 | 35 |
| 32 // Checks if crash reporting is enabled. Note that this is not the same as | 36 // Checks if crash reporting is enabled. Note that this is not the same as |
| 33 // being opted into metrics reporting (and crash reporting), which controls | 37 // being opted into metrics reporting (and crash reporting), which controls |
| 34 // whether InitCrashReporter() is called. | 38 // whether InitCrashReporter() is called. |
| 35 bool IsCrashReporterEnabled(); | 39 bool IsCrashReporterEnabled(); |
| 36 | 40 |
| 37 } // namespace breakpad | 41 } // namespace breakpad |
| 38 | 42 |
| 39 #endif // COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 43 #endif // COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
| OLD | NEW |