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_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ | 5 #ifndef COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ |
6 #define COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ | 6 #define COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 // Returns the file descriptor of the pipe used to inform apps of | 173 // Returns the file descriptor of the pipe used to inform apps of |
174 // webview renderer crashes. | 174 // webview renderer crashes. |
175 virtual int GetAndroidCrashSignalFD(); | 175 virtual int GetAndroidCrashSignalFD(); |
176 | 176 |
177 // Returns true if breakpad microdumps should be enabled. This orthogonal to | 177 // Returns true if breakpad microdumps should be enabled. This orthogonal to |
178 // the standard minidump uploader (which depends on the user consent). | 178 // the standard minidump uploader (which depends on the user consent). |
179 virtual bool ShouldEnableBreakpadMicrodumps(); | 179 virtual bool ShouldEnableBreakpadMicrodumps(); |
180 #endif | 180 #endif |
181 | 181 |
| 182 #if defined(OS_MACOSX) || defined(OS_WIN) |
| 183 // This method should return true to configure a crash reporter capable of |
| 184 // monitoring itself for its own crashes to do so, even if self-monitoring |
| 185 // would be expensive. "Expensive" self-monitoring dedicates an additional |
| 186 // crash handler process to handle the crashes of the initial crash handler |
| 187 // process. |
| 188 // |
| 189 // In some cases, inexpensive self-monitoring may also be available. When it |
| 190 // is, it may be used when this method returns false. If only expensive |
| 191 // self-monitoring is available, returning false from this function will |
| 192 // prevent the crash handler process from being monitored for crashes at all. |
| 193 // |
| 194 // The default implementation returns false. |
| 195 virtual bool ShouldMonitorCrashHandlerExpensively(); |
| 196 #endif |
| 197 |
182 // Returns true if breakpad should run in the given process type. | 198 // Returns true if breakpad should run in the given process type. |
183 virtual bool EnableBreakpadForProcess(const std::string& process_type); | 199 virtual bool EnableBreakpadForProcess(const std::string& process_type); |
184 }; | 200 }; |
185 | 201 |
186 } // namespace crash_reporter | 202 } // namespace crash_reporter |
187 | 203 |
188 #endif // COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ | 204 #endif // COMPONENTS_CRASH_CONTENT_APP_CRASH_REPORTER_CLIENT_H_ |
OLD | NEW |