| 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_BREAKPAD_APP_BREAKPAD_CLIENT_H_ | 5 #ifndef COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_ |
| 6 #define COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_ | 6 #define COMPONENTS_BREAKPAD_APP_BREAKPAD_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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 virtual void GetProductNameAndVersion(std::string* product_name, | 99 virtual void GetProductNameAndVersion(std::string* product_name, |
| 100 std::string* version); | 100 std::string* version); |
| 101 | 101 |
| 102 virtual base::FilePath GetReporterLogFilename(); | 102 virtual base::FilePath GetReporterLogFilename(); |
| 103 #endif | 103 #endif |
| 104 | 104 |
| 105 // The location where minidump files should be written. Returns true if | 105 // The location where minidump files should be written. Returns true if |
| 106 // |crash_dir| was set. | 106 // |crash_dir| was set. |
| 107 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir); | 107 virtual bool GetCrashDumpLocation(base::FilePath* crash_dir); |
| 108 | 108 |
| 109 #if defined(OS_POSIX) | |
| 110 // Sets a function that'll be invoked to dump the current process when | |
| 111 // without crashing. | |
| 112 virtual void SetDumpWithoutCrashingFunction(void (*function)()); | |
| 113 #endif | |
| 114 | |
| 115 // Register all of the potential crash keys that can be sent to the crash | 109 // Register all of the potential crash keys that can be sent to the crash |
| 116 // reporting server. Returns the size of the union of all keys. | 110 // reporting server. Returns the size of the union of all keys. |
| 117 virtual size_t RegisterCrashKeys(); | 111 virtual size_t RegisterCrashKeys(); |
| 118 | 112 |
| 119 // Returns true if running in unattended mode (for automated testing). | 113 // Returns true if running in unattended mode (for automated testing). |
| 120 virtual bool IsRunningUnattended(); | 114 virtual bool IsRunningUnattended(); |
| 121 | 115 |
| 122 // Returns true if the user has given consent to collect stats. | 116 // Returns true if the user has given consent to collect stats. |
| 123 virtual bool GetCollectStatsConsent(); | 117 virtual bool GetCollectStatsConsent(); |
| 124 | 118 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 138 virtual void InstallAdditionalFilters(BreakpadRef breakpad); | 132 virtual void InstallAdditionalFilters(BreakpadRef breakpad); |
| 139 #endif | 133 #endif |
| 140 | 134 |
| 141 // Returns true if breakpad should run in the given process type. | 135 // Returns true if breakpad should run in the given process type. |
| 142 virtual bool EnableBreakpadForProcess(const std::string& process_type); | 136 virtual bool EnableBreakpadForProcess(const std::string& process_type); |
| 143 }; | 137 }; |
| 144 | 138 |
| 145 } // namespace breakpad | 139 } // namespace breakpad |
| 146 | 140 |
| 147 #endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_ | 141 #endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_ |
| OLD | NEW |