| 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 #ifndef COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ | 5 #ifndef COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ |
| 6 #define COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ | 6 #define COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // Invoked when initializing the crash reporter in the browser process. | 92 // Invoked when initializing the crash reporter in the browser process. |
| 93 virtual void InitBrowserCrashDumpsRegKey(); | 93 virtual void InitBrowserCrashDumpsRegKey(); |
| 94 | 94 |
| 95 // Invoked before attempting to write a minidump. | 95 // Invoked before attempting to write a minidump. |
| 96 virtual void RecordCrashDumpAttempt(bool is_real_crash); | 96 virtual void RecordCrashDumpAttempt(bool is_real_crash); |
| 97 #endif | 97 #endif |
| 98 | 98 |
| 99 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) | 99 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) |
| 100 // Returns a textual description of the product type and version to include | 100 // Returns a textual description of the product type and version to include |
| 101 // in the crash report. | 101 // in the crash report. Neither out parameter should be set to NULL. |
| 102 virtual void GetProductNameAndVersion(std::string* product_name, | 102 virtual void GetProductNameAndVersion(const char** product_name, |
| 103 std::string* version); | 103 const char** version); |
| 104 | 104 |
| 105 virtual base::FilePath GetReporterLogFilename(); | 105 virtual base::FilePath GetReporterLogFilename(); |
| 106 #endif | 106 #endif |
| 107 | 107 |
| 108 // The location where minidump files should be written. Returns true if | 108 // The location where minidump files should be written. Returns true if |
| 109 // |crash_dir| was set. | 109 // |crash_dir| was set. |
| 110 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir); | 110 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir); |
| 111 | 111 |
| 112 // Register all of the potential crash keys that can be sent to the crash | 112 // Register all of the potential crash keys that can be sent to the crash |
| 113 // reporting server. Returns the size of the union of all keys. | 113 // reporting server. Returns the size of the union of all keys. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 135 virtual void InstallAdditionalFilters(BreakpadRef breakpad); | 135 virtual void InstallAdditionalFilters(BreakpadRef breakpad); |
| 136 #endif | 136 #endif |
| 137 | 137 |
| 138 // Returns true if breakpad should run in the given process type. | 138 // Returns true if breakpad should run in the given process type. |
| 139 virtual bool EnableBreakpadForProcess(const std::string& process_type); | 139 virtual bool EnableBreakpadForProcess(const std::string& process_type); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 } // namespace crash_reporter | 142 } // namespace crash_reporter |
| 143 | 143 |
| 144 #endif // COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ | 144 #endif // COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ |
| OLD | NEW |