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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Crashpad Authors. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 #ifndef CRASHPAD_MINIDUMP_MINIDUMP_USER_EXTENSION_STREAM_DATA_SOURCE_H_
16 #define CRASHPAD_MINIDUMP_MINIDUMP_USER_EXTENSION_STREAM_DATA_SOURCE_H_
17
18 #include <stdint.h>
19 #include <sys/types.h>
20
21 #include "base/macros.h"
22
23 #include "minidump/minidump_extensions.h"
24
25 namespace crashpad {
26
27 //! \brief Describes a user extension data stream in a minidump.
28 class MinidumpUserExtensionStreamDataSource {
29 public:
30 //! \brief Constructs a MinidumpUserExtensionStreamDataSource.
31 //!
32 //! \param[in] stream_type The type of the user extension stream.
33 //! \param[in] buffer Points to the data for this stream. \a buffer is not
34 //! owned, and must outlive the use of this object.
35 //! \param[in] buffer_size The length of data in \a buffer.
36 MinidumpUserExtensionStreamDataSource(uint32_t stream_type,
37 const void* buffer,
38 size_t buffer_size);
39 ~MinidumpUserExtensionStreamDataSource();
40
41 MinidumpStreamType stream_type() const { return stream_type_; }
42 const void* buffer() const { return buffer_; }
43 size_t buffer_size() const { return buffer_size_; }
44
45 private:
46 MinidumpStreamType stream_type_;
47 const void* buffer_; // weak
48 size_t buffer_size_;
49
50 DISALLOW_COPY_AND_ASSIGN(MinidumpUserExtensionStreamDataSource);
51 };
52
53 } // namespace crashpad
54
55 #endif // CRASHPAD_MINIDUMP_MINIDUMP_USER_EXTENSION_STREAM_DATA_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698