| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #include "components/breakpad/app/breakpad_client.h" | |
| 6 | |
| 7 #include "base/files/file_path.h" | |
| 8 #include "base/logging.h" | |
| 9 | |
| 10 namespace breakpad { | |
| 11 | |
| 12 namespace { | |
| 13 | |
| 14 BreakpadClient* g_client = NULL; | |
| 15 | |
| 16 } // namespace | |
| 17 | |
| 18 void SetBreakpadClient(BreakpadClient* client) { | |
| 19 g_client = client; | |
| 20 } | |
| 21 | |
| 22 BreakpadClient* GetBreakpadClient() { | |
| 23 DCHECK(g_client); | |
| 24 return g_client; | |
| 25 } | |
| 26 | |
| 27 BreakpadClient::BreakpadClient() {} | |
| 28 BreakpadClient::~BreakpadClient() {} | |
| 29 | |
| 30 void BreakpadClient::SetBreakpadClientIdFromGUID( | |
| 31 const std::string& client_guid) { | |
| 32 } | |
| 33 | |
| 34 #if defined(OS_WIN) | |
| 35 bool BreakpadClient::GetAlternativeCrashDumpLocation( | |
| 36 base::FilePath* crash_dir) { | |
| 37 return false; | |
| 38 } | |
| 39 | |
| 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) { | |
| 45 } | |
| 46 | |
| 47 bool BreakpadClient::ShouldShowRestartDialog(base::string16* title, | |
| 48 base::string16* message, | |
| 49 bool* is_rtl_locale) { | |
| 50 return false; | |
| 51 } | |
| 52 | |
| 53 bool BreakpadClient::AboutToRestart() { | |
| 54 return false; | |
| 55 } | |
| 56 | |
| 57 bool BreakpadClient::GetDeferredUploadsSupported(bool is_per_usr_install) { | |
| 58 return false; | |
| 59 } | |
| 60 | |
| 61 bool BreakpadClient::GetIsPerUserInstall(const base::FilePath& exe_path) { | |
| 62 return true; | |
| 63 } | |
| 64 | |
| 65 bool BreakpadClient::GetShouldDumpLargerDumps(bool is_per_user_install) { | |
| 66 return false; | |
| 67 } | |
| 68 | |
| 69 int BreakpadClient::GetResultCodeRespawnFailed() { | |
| 70 return 0; | |
| 71 } | |
| 72 | |
| 73 void BreakpadClient::InitBrowserCrashDumpsRegKey() { | |
| 74 } | |
| 75 | |
| 76 void BreakpadClient::RecordCrashDumpAttempt(bool is_real_crash) { | |
| 77 } | |
| 78 #endif | |
| 79 | |
| 80 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) | |
| 81 void BreakpadClient::GetProductNameAndVersion(std::string* product_name, | |
| 82 std::string* version) { | |
| 83 } | |
| 84 | |
| 85 base::FilePath BreakpadClient::GetReporterLogFilename() { | |
| 86 return base::FilePath(); | |
| 87 } | |
| 88 #endif | |
| 89 | |
| 90 bool BreakpadClient::GetCrashDumpLocation(base::FilePath* crash_dir) { | |
| 91 return false; | |
| 92 } | |
| 93 | |
| 94 size_t BreakpadClient::RegisterCrashKeys() { | |
| 95 return 0; | |
| 96 } | |
| 97 | |
| 98 bool BreakpadClient::IsRunningUnattended() { | |
| 99 return true; | |
| 100 } | |
| 101 | |
| 102 bool BreakpadClient::GetCollectStatsConsent() { | |
| 103 return false; | |
| 104 } | |
| 105 | |
| 106 #if defined(OS_WIN) || defined(OS_MACOSX) | |
| 107 bool BreakpadClient::ReportingIsEnforcedByPolicy(bool* breakpad_enabled) { | |
| 108 return false; | |
| 109 } | |
| 110 #endif | |
| 111 | |
| 112 #if defined(OS_ANDROID) | |
| 113 int BreakpadClient::GetAndroidMinidumpDescriptor() { | |
| 114 return 0; | |
| 115 } | |
| 116 #endif | |
| 117 | |
| 118 #if defined(OS_MACOSX) | |
| 119 void BreakpadClient::InstallAdditionalFilters(BreakpadRef breakpad) { | |
| 120 } | |
| 121 #endif | |
| 122 | |
| 123 bool BreakpadClient::EnableBreakpadForProcess(const std::string& process_type) { | |
| 124 return false; | |
| 125 } | |
| 126 | |
| 127 } // namespace breakpad | |
| OLD | NEW |