summaryrefslogtreecommitdiffstats
path: root/toolkit/crashreporter/CrashAnnotations.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/crashreporter/CrashAnnotations.h.in')
-rw-r--r--toolkit/crashreporter/CrashAnnotations.h.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/toolkit/crashreporter/CrashAnnotations.h.in b/toolkit/crashreporter/CrashAnnotations.h.in
index 7ea8c98bc1..2288498f36 100644
--- a/toolkit/crashreporter/CrashAnnotations.h.in
+++ b/toolkit/crashreporter/CrashAnnotations.h.in
@@ -50,6 +50,16 @@ ${skiplist}
};
/**
+ * Return the type of a crash annotation.
+ *
+ * @param aAnnotation a crash annotation
+ * @returns The type of this annotation
+ */
+static inline AnnotationType TypeOfAnnotation(Annotation aAnnotation) {
+ return kAnnotationTypes[static_cast<uint32_t>(aAnnotation)];
+}
+
+/**
* Return the string representation of a crash annotation.
*
* @param aAnnotation a crash annotation
@@ -97,9 +107,17 @@ class AnnotationWriter {
public:
virtual void Write(Annotation aAnnotation, const char* aValue,
size_t aLen = 0) = 0;
+ virtual void Write(Annotation aAnnotation, bool aValue) = 0;
virtual void Write(Annotation aAnnotation, uint64_t aValue) = 0;
};
+#ifdef XP_WIN
+
+extern void RecordDllAnnotations(bool* aBlocklistInitFailed,
+ bool* aUser32BeforeBlocklist);
+
+#endif // XP_WIN
+
} // namespace CrashReporter
#endif // CrashAnnotations_h