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

Unified Diff: minidump/minidump_system_info_writer.h

Issue 694063003: Add MinidumpSystemInfoWriter::InitializeFromSnapshot() and its test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | minidump/minidump_system_info_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: minidump/minidump_system_info_writer.h
diff --git a/minidump/minidump_system_info_writer.h b/minidump/minidump_system_info_writer.h
index 6cd133faa9d48fcc4710d1629113f5ae6c19d931..ce483e8cdb38f01405d7bccfede4632497153348 100644
--- a/minidump/minidump_system_info_writer.h
+++ b/minidump/minidump_system_info_writer.h
@@ -29,6 +29,8 @@
namespace crashpad {
+class SystemSnapshot;
+
namespace internal {
class MinidumpUTF16StringWriter;
} // namespace internal
@@ -39,6 +41,15 @@ class MinidumpSystemInfoWriter final : public internal::MinidumpStreamWriter {
MinidumpSystemInfoWriter();
~MinidumpSystemInfoWriter() override;
+ //! \brief Initializes MINIDUMP_SYSTEM_INFO based on \a system_snapshot.
+ //!
+ //! \param[in] system_snapshot The system snapshot to use as source data.
+ //!
+ //! \note Valid in #kStateMutable. No mutator methods may be called before
+ //! this method, and it is not normally necessary to call any mutator
+ //! methods after this method.
+ void InitializeFromSnapshot(const SystemSnapshot* system_snapshot);
+
//! \brief Sets MINIDUMP_SYSTEM_INFO::ProcessorArchitecture.
void SetCPUArchitecture(MinidumpCPUArchitecture processor_architecture) {
system_info_.ProcessorArchitecture = processor_architecture;
« no previous file with comments | « no previous file | minidump/minidump_system_info_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698