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

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

Issue 2773813002: Update Crashpad to 8e37886d418dd042c3c7bfadac99214739ee4d98 (Closed)
Patch Set: Update Crashpad to 8e37886d418dd042c3c7bfadac99214739ee4d98 Created 3 years, 9 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_extension_stream_data_source.h
diff --git a/third_party/crashpad/crashpad/minidump/minidump_user_extension_stream_data_source.h b/third_party/crashpad/crashpad/minidump/minidump_user_extension_stream_data_source.h
new file mode 100644
index 0000000000000000000000000000000000000000..1afb1661171fecef4f8fb097247ecbd82e830749
--- /dev/null
+++ b/third_party/crashpad/crashpad/minidump/minidump_user_extension_stream_data_source.h
@@ -0,0 +1,55 @@
+// Copyright 2017 The Crashpad Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#ifndef CRASHPAD_MINIDUMP_MINIDUMP_USER_EXTENSION_STREAM_DATA_SOURCE_H_
+#define CRASHPAD_MINIDUMP_MINIDUMP_USER_EXTENSION_STREAM_DATA_SOURCE_H_
+
+#include <stdint.h>
+#include <sys/types.h>
+
+#include "base/macros.h"
+
+#include "minidump/minidump_extensions.h"
+
+namespace crashpad {
+
+//! \brief Describes a user extension data stream in a minidump.
+class MinidumpUserExtensionStreamDataSource {
+ public:
+ //! \brief Constructs a MinidumpUserExtensionStreamDataSource.
+ //!
+ //! \param[in] stream_type The type of the user extension stream.
+ //! \param[in] buffer Points to the data for this stream. \a buffer is not
+ //! owned, and must outlive the use of this object.
+ //! \param[in] buffer_size The length of data in \a buffer.
+ MinidumpUserExtensionStreamDataSource(uint32_t stream_type,
+ const void* buffer,
+ size_t buffer_size);
+ ~MinidumpUserExtensionStreamDataSource();
+
+ MinidumpStreamType stream_type() const { return stream_type_; }
+ const void* buffer() const { return buffer_; }
+ size_t buffer_size() const { return buffer_size_; }
+
+ private:
+ MinidumpStreamType stream_type_;
+ const void* buffer_; // weak
+ size_t buffer_size_;
+
+ DISALLOW_COPY_AND_ASSIGN(MinidumpUserExtensionStreamDataSource);
+};
+
+} // namespace crashpad
+
+#endif // CRASHPAD_MINIDUMP_MINIDUMP_USER_EXTENSION_STREAM_DATA_SOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698