diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /toolkit/crashreporter/CrashAnnotations.h.in | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/crashreporter/CrashAnnotations.h.in')
-rw-r--r-- | toolkit/crashreporter/CrashAnnotations.h.in | 18 |
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 |