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

Unified Diff: third_party/crashpad/crashpad/minidump/minidump_user_stream_writer.h

Issue 2814043003: Update Crashpad to 1f28a123a4c9449e3d7ddad4ff00dacd366d5216 (Closed)
Patch Set: Add missing GN config to fix compile/link. Created 3 years, 8 months 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
Index: third_party/crashpad/crashpad/minidump/minidump_user_stream_writer.h
diff --git a/third_party/crashpad/crashpad/minidump/minidump_user_stream_writer.h b/third_party/crashpad/crashpad/minidump/minidump_user_stream_writer.h
index 838ed0deeccbad53b3604a7b9d0d543ab3832853..48698fdcd482196c04c34722214d309bfb535b12 100644
--- a/third_party/crashpad/crashpad/minidump/minidump_user_stream_writer.h
+++ b/third_party/crashpad/crashpad/minidump/minidump_user_stream_writer.h
@@ -25,6 +25,7 @@
#include "minidump/minidump_extensions.h"
#include "minidump/minidump_stream_writer.h"
#include "minidump/minidump_writable.h"
+#include "minidump/minidump_user_extension_stream_data_source.h"
#include "snapshot/module_snapshot.h"
namespace crashpad {
@@ -42,17 +43,13 @@ class MinidumpUserStreamWriter final : public internal::MinidumpStreamWriter {
//! \note Valid in #kStateMutable.
void InitializeFromSnapshot(const UserMinidumpStream* stream);
- //! \brief Initializes a MINIDUMP_USER_STREAM based on \a stream_type,
- //! \a buffer and \a buffer_size.
+ //! \brief Initializes a MINIDUMP_USER_STREAM based on \a data_source.
//!
- //! \param[in] stream_type The type of the stream.
- //! \param[in] buffer The data for the stream.
- //! \param[in] buffer_size The length of \a buffer, and the resulting stream.
+ //! \param[in] data_source The content and type of the stream.
//!
//! \note Valid in #kStateMutable.
- void InitializeFromBuffer(MinidumpStreamType stream_type,
- const void* buffer,
- size_t buffer_size);
+ void InitializeFromUserExtensionStream(
+ std::unique_ptr<MinidumpUserExtensionStreamDataSource> data_source);
protected:
// MinidumpWritable:
@@ -67,7 +64,7 @@ class MinidumpUserStreamWriter final : public internal::MinidumpStreamWriter {
private:
class ContentsWriter;
class SnapshotContentsWriter;
- class BufferContentsWriter;
+ class ExtensionStreamContentsWriter;
std::unique_ptr<ContentsWriter> contents_writer_;

Powered by Google App Engine
This is Rietveld 408576698