Index: minidump/minidump_crashpad_info_writer.h |
diff --git a/minidump/minidump_crashpad_info_writer.h b/minidump/minidump_crashpad_info_writer.h |
index 22c60747af7271fa4785b91ea14dfc8fe2a81b93..1ef3a8015e308824e3d839edcd62ba9a835a054f 100644 |
--- a/minidump/minidump_crashpad_info_writer.h |
+++ b/minidump/minidump_crashpad_info_writer.h |
@@ -25,6 +25,7 @@ |
namespace crashpad { |
class MinidumpModuleCrashpadInfoListWriter; |
+class MinidumpSimpleStringDictionaryWriter; |
class ProcessSnapshot; |
//! \brief The writer for a MinidumpCrashpadInfo stream in a minidump file. |
@@ -50,6 +51,17 @@ class MinidumpCrashpadInfoWriter final : public internal::MinidumpStreamWriter { |
//! methods after this method. |
void InitializeFromSnapshot(const ProcessSnapshot* process_snapshot); |
+ //! \brief Arranges for MinidumpCrashpadInfo::simple_annotations to point to |
+ //! the MinidumpSimpleStringDictionaryWriter object to be written by \a |
+ //! simple_annotations. |
+ //! |
+ //! This object takes ownership of \a simple_annotations and becomes its |
+ //! parent in the overall tree of internal::MinidumpWritable objects. |
+ //! |
+ //! \note Valid in #kStateMutable. |
+ void SetSimpleAnnotations( |
+ scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations); |
+ |
//! \brief Arranges for MinidumpCrashpadInfo::module_list to point to the |
//! MinidumpModuleCrashpadInfoList object to be written by \a |
//! module_list. |
@@ -82,6 +94,7 @@ class MinidumpCrashpadInfoWriter final : public internal::MinidumpStreamWriter { |
private: |
MinidumpCrashpadInfo crashpad_info_; |
+ scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations_; |
scoped_ptr<MinidumpModuleCrashpadInfoListWriter> module_list_; |
DISALLOW_COPY_AND_ASSIGN(MinidumpCrashpadInfoWriter); |