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

Side by Side Diff: minidump/minidump_extensions.h

Issue 432863006: Add MinidumpFileWriter (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback. Add MinidumpFileWriter test. Created 6 years, 4 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
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with 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 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and 12 // See the License for the specific language governing permissions and
13 // limitations under the License. 13 // limitations under the License.
14 14
15 #ifndef CRASHPAD_MINIDUMP_MINIDUMP_EXTENSIONS_H_ 15 #ifndef CRASHPAD_MINIDUMP_MINIDUMP_EXTENSIONS_H_
16 #define CRASHPAD_MINIDUMP_MINIDUMP_EXTENSIONS_H_ 16 #define CRASHPAD_MINIDUMP_MINIDUMP_EXTENSIONS_H_
17 17
18 #include <dbghelp.h> 18 #include <dbghelp.h>
19 #include <stdint.h> 19 #include <stdint.h>
20 #include <winnt.h> 20 #include <winnt.h>
21 21
22 #include "util/misc/uuid.h" 22 #include "util/misc/uuid.h"
23 23
24 namespace crashpad { 24 namespace crashpad {
25 25
26 //! \brief Minidump stream type values for MINIDUMP_DIRECTORY::StreamType. Each 26 //! \brief Minidump stream type values for MINIDUMP_DIRECTORY::StreamType. Each
27 //! stream structure has a corresponding stream type value to identify it. 27 //! stream structure has a corresponding stream type value to identify it.
28 //! 28 //!
29 //! \sa MINIDUMP_STREAM_TYPE 29 //! \sa MINIDUMP_STREAM_TYPE
30 enum MinidumpStreamType { 30 enum MinidumpStreamType : uint32_t {
31 //! \brief The stream type for MINIDUMP_THREAD_LIST. 31 //! \brief The stream type for MINIDUMP_THREAD_LIST.
32 //! 32 //!
33 //! \sa ThreadListStream 33 //! \sa ThreadListStream
34 kMinidumpStreamTypeThreadList = ThreadListStream, 34 kMinidumpStreamTypeThreadList = ThreadListStream,
35 35
36 //! \brief The stream type for MINIDUMP_MODULE_LIST. 36 //! \brief The stream type for MINIDUMP_MODULE_LIST.
37 //! 37 //!
38 //! \sa ModuleListStream 38 //! \sa ModuleListStream
39 kMinidumpStreamTypeModuleList = ModuleListStream, 39 kMinidumpStreamTypeModuleList = ModuleListStream,
40 40
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 //! If MINIDUMP_LOCATION_DESCRIPTOR::DataSize is `0`, no key-value pairs are 331 //! If MINIDUMP_LOCATION_DESCRIPTOR::DataSize is `0`, no key-value pairs are
332 //! present, and MINIDUMP_LOCATION_DESCRIPTOR::Rva should not be consulted. 332 //! present, and MINIDUMP_LOCATION_DESCRIPTOR::Rva should not be consulted.
333 //! 333 //!
334 //! This field is present when #version is at least `1`. 334 //! This field is present when #version is at least `1`.
335 MINIDUMP_LOCATION_DESCRIPTOR simple_annotations; 335 MINIDUMP_LOCATION_DESCRIPTOR simple_annotations;
336 }; 336 };
337 337
338 } // namespace crashpad 338 } // namespace crashpad
339 339
340 #endif // CRASHPAD_MINIDUMP_MINIDUMP_EXTENSIONS_H_ 340 #endif // CRASHPAD_MINIDUMP_MINIDUMP_EXTENSIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698