Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2819)

Side by Side Diff: components/crash/content/app/crash_reporter_client.h

Issue 2799013002: Monitor crashpad_handler for crashes [sometimes] (Closed)
Patch Set: Address review feedback (scottmg) Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome_elf/BUILD.gn ('k') | components/crash/content/app/crash_reporter_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome_elf/BUILD.gn ('k') | components/crash/content/app/crash_reporter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698