Revert 269361 "Fix WebURLLoaderImpl::Context leak if a pending r..."
[chromium-blink-merge.git] / components / breakpad / app / breakpad_linux.h
blobb507c9206a0b56e874655ae8c3ca5d625ce2f563
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
3 // found in the LICENSE file.
5 // Public interface for enabling Breakpad on Linux systems.
7 #ifndef COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_H_
8 #define COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_H_
10 #include <string>
12 #include "build/build_config.h"
14 namespace breakpad {
16 // Turns on the crash reporter in any process.
17 extern void InitCrashReporter(const std::string& process_type);
19 // Enables the crash reporter in child processes.
20 #if defined(OS_ANDROID)
21 extern void InitNonBrowserCrashReporterForAndroid(
22 const std::string& process_type);
23 #endif
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.
28 bool IsCrashReporterEnabled();
30 } // namespace breakpad
32 #endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_H_