blob: b507c9206a0b56e874655ae8c3ca5d625ce2f563 [file] [log] [blame]
[email protected]0b818f72013-10-22 00:11:031// Copyright 2013 The Chromium Authors. All rights reserved.
[email protected]9a5d2a52009-05-22 03:37:452// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]97425082013-07-16 03:10:075// Public interface for enabling Breakpad on Linux systems.
[email protected]d8d59132013-05-29 23:43:126
[email protected]0b818f72013-10-22 00:11:037#ifndef COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_H_
8#define COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_H_
[email protected]9a5d2a52009-05-22 03:37:459
[email protected]8dc338c2013-12-09 16:28:4810#include <string>
11
[email protected]d8d59132013-05-29 23:43:1212#include "build/build_config.h"
[email protected]892996332012-11-22 04:54:4113
[email protected]0b818f72013-10-22 00:11:0314namespace breakpad {
15
[email protected]d8d59132013-05-29 23:43:1216// Turns on the crash reporter in any process.
[email protected]8dc338c2013-12-09 16:28:4817extern void InitCrashReporter(const std::string& process_type);
[email protected]d8d59132013-05-29 23:43:1218
19// Enables the crash reporter in child processes.
[email protected]40da3e0c2012-10-24 22:03:3820#if defined(OS_ANDROID)
[email protected]8dc338c2013-12-09 16:28:4821extern void InitNonBrowserCrashReporterForAndroid(
22 const std::string& process_type);
[email protected]40da3e0c2012-10-24 22:03:3823#endif
[email protected]d8d59132013-05-29 23:43:1224
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]b8d6ae12009-12-10 02:02:2028bool IsCrashReporterEnabled();
[email protected]2eb41e72009-07-15 23:07:3429
[email protected]0b818f72013-10-22 00:11:0330} // namespace breakpad
31
32#endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_LINUX_H_