summaryrefslogtreecommitdiff
path: root/chromium/components/crash/content/app/crash_reporter_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/crash/content/app/crash_reporter_client.h')
-rw-r--r--chromium/components/crash/content/app/crash_reporter_client.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium/components/crash/content/app/crash_reporter_client.h b/chromium/components/crash/content/app/crash_reporter_client.h
index e6a09126bdb..485c2c8bf63 100644
--- a/chromium/components/crash/content/app/crash_reporter_client.h
+++ b/chromium/components/crash/content/app/crash_reporter_client.h
@@ -165,6 +165,22 @@ class CrashReporterClient {
virtual bool ShouldEnableBreakpadMicrodumps();
#endif
+#if defined(OS_ANDROID) || defined(OS_LINUX)
+ // Configures sanitization of crash dumps.
+ // |annotations_whitelist| is a nullptr terminated array of NUL-terminated
+ // strings of allowed annotation names or nullptr if all annotations are
+ // allowed. |target_module| is a pointer to a location inside a module to
+ // target or nullptr if there is no target module. Crash dumps are not
+ // produced when the crashing thread's stack and program counter do not
+ // reference the target module. |sanitize_stacks| is true if stacks should be
+ // sanitized for possible PII. If they are sanitized, only small integers and
+ // pointers to modules and stacks will be preserved.
+ virtual void GetSanitizationInformation(
+ const char* const** annotations_whitelist,
+ void** target_module,
+ bool* sanitize_stacks);
+#endif
+
// This method should return true to configure a crash reporter capable of
// monitoring itself for its own crashes to do so, even if self-monitoring
// would be expensive. "Expensive" self-monitoring dedicates an additional