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 #include "components/breakpad/app/breakpad_client.h"
7 #include "base/files/file_path.h"
8 #include "base/logging.h"
14 BreakpadClient* g_client = NULL;
18 void SetBreakpadClient(BreakpadClient* client) {
22 BreakpadClient* GetBreakpadClient() {
27 BreakpadClient::BreakpadClient() {}
28 BreakpadClient::~BreakpadClient() {}
30 void BreakpadClient::SetBreakpadClientIdFromGUID(
31 const std::string& client_guid) {
35 bool BreakpadClient::GetAlternativeCrashDumpLocation(
36 base::FilePath* crash_dir) {
40 void BreakpadClient::GetProductNameAndVersion(const base::FilePath& exe_path,
41 base::string16* product_name,
42 base::string16* version,
43 base::string16* special_build,
44 base::string16* channel_name) {
47 bool BreakpadClient::ShouldShowRestartDialog(base::string16* title,
48 base::string16* message,
49 bool* is_rtl_locale) {
53 bool BreakpadClient::AboutToRestart() {
57 bool BreakpadClient::GetDeferredUploadsSupported(bool is_per_usr_install) {
61 bool BreakpadClient::GetIsPerUserInstall(const base::FilePath& exe_path) {
65 bool BreakpadClient::GetShouldDumpLargerDumps(bool is_per_user_install) {
69 int BreakpadClient::GetResultCodeRespawnFailed() {
73 void BreakpadClient::InitBrowserCrashDumpsRegKey() {
76 void BreakpadClient::RecordCrashDumpAttempt(bool is_real_crash) {
80 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
81 void BreakpadClient::GetProductNameAndVersion(std::string* product_name,
82 std::string* version) {
85 base::FilePath BreakpadClient::GetReporterLogFilename() {
86 return base::FilePath();
90 bool BreakpadClient::GetCrashDumpLocation(base::FilePath* crash_dir) {
94 size_t BreakpadClient::RegisterCrashKeys() {
98 bool BreakpadClient::IsRunningUnattended() {
102 bool BreakpadClient::GetCollectStatsConsent() {
106 #if defined(OS_WIN) || defined(OS_MACOSX)
107 bool BreakpadClient::ReportingIsEnforcedByPolicy(bool* breakpad_enabled) {
112 #if defined(OS_ANDROID)
113 int BreakpadClient::GetAndroidMinidumpDescriptor() {
118 #if defined(OS_MACOSX)
119 void BreakpadClient::InstallAdditionalFilters(BreakpadRef breakpad) {
123 bool BreakpadClient::EnableBreakpadForProcess(const std::string& process_type) {
127 } // namespace breakpad