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

Side by Side Diff: compat/non_win/dbghelp.h

Issue 804593002: Move string16 and char16 in to base:: (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: include roll of mini_chromium to 37bac7... Created 6 years 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
« no previous file with comments | « DEPS ('k') | compat/non_win/timezoneapi.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 struct __attribute__((packed, aligned(4))) MINIDUMP_STRING { 127 struct __attribute__((packed, aligned(4))) MINIDUMP_STRING {
128 //! \brief The length of the #Buffer field in bytes, not including the `NUL` 128 //! \brief The length of the #Buffer field in bytes, not including the `NUL`
129 //! terminator. 129 //! terminator.
130 //! 130 //!
131 //! \note This field is interpreted as a byte count, not a count of UTF-16 131 //! \note This field is interpreted as a byte count, not a count of UTF-16
132 //! code units or Unicode code points. 132 //! code units or Unicode code points.
133 uint32_t Length; 133 uint32_t Length;
134 134
135 //! \brief The string, encoded in UTF-16, and terminated with a UTF-16 `NUL` 135 //! \brief The string, encoded in UTF-16, and terminated with a UTF-16 `NUL`
136 //! code unit (two `NUL` bytes). 136 //! code unit (two `NUL` bytes).
137 char16 Buffer[0]; 137 base::char16 Buffer[0];
138 }; 138 };
139 139
140 //! \brief Minidump stream type values for MINIDUMP_DIRECTORY::StreamType. Each 140 //! \brief Minidump stream type values for MINIDUMP_DIRECTORY::StreamType. Each
141 //! stream structure has a corresponding stream type value to identify it. 141 //! stream structure has a corresponding stream type value to identify it.
142 //! 142 //!
143 //! \sa crashpad::MinidumpStreamType 143 //! \sa crashpad::MinidumpStreamType
144 enum MINIDUMP_STREAM_TYPE { 144 enum MINIDUMP_STREAM_TYPE {
145 //! \brief The stream type for MINIDUMP_THREAD_LIST. 145 //! \brief The stream type for MINIDUMP_THREAD_LIST.
146 ThreadListStream = 3, 146 ThreadListStream = 3,
147 147
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 //! \sa MINIDUMP_MISC_INFO_N 802 //! \sa MINIDUMP_MISC_INFO_N
803 struct __attribute__((packed, aligned(4))) MINIDUMP_MISC_INFO_4 803 struct __attribute__((packed, aligned(4))) MINIDUMP_MISC_INFO_4
804 : public MINIDUMP_MISC_INFO_3 { 804 : public MINIDUMP_MISC_INFO_3 {
805 //! \brief The operating system’s “build string”, a string identifying a 805 //! \brief The operating system’s “build string”, a string identifying a
806 //! specific build of the operating system. 806 //! specific build of the operating system.
807 //! 807 //!
808 //! This string is UTF-16-encoded and terminated by a UTF-16 `NUL` code unit. 808 //! This string is UTF-16-encoded and terminated by a UTF-16 `NUL` code unit.
809 //! 809 //!
810 //! On Windows 8.1 (NT 6.3), this is “6.3.9600.17031 810 //! On Windows 8.1 (NT 6.3), this is “6.3.9600.17031
811 //! (winblue_gdr.140221-1952)”. 811 //! (winblue_gdr.140221-1952)”.
812 char16 BuildString[260]; 812 base::char16 BuildString[260];
813 813
814 //! \brief The minidump producer’s “build string”, a string identifying the 814 //! \brief The minidump producer’s “build string”, a string identifying the
815 //! module that produced a minidump file. 815 //! module that produced a minidump file.
816 //! 816 //!
817 //! This string is UTF-16-encoded and terminated by a UTF-16 `NUL` code unit. 817 //! This string is UTF-16-encoded and terminated by a UTF-16 `NUL` code unit.
818 //! 818 //!
819 //! On Windows 8.1 (NT 6.3), this may be “dbghelp.i386,6.3.9600.16520” or 819 //! On Windows 8.1 (NT 6.3), this may be “dbghelp.i386,6.3.9600.16520” or
820 //! “dbghelp.amd64,6.3.9600.16520” depending on CPU architecture. 820 //! “dbghelp.amd64,6.3.9600.16520” depending on CPU architecture.
821 char16 DbgBldStr[40]; 821 base::char16 DbgBldStr[40];
822 }; 822 };
823 823
824 //! \brief The latest known version of the MINIDUMP_MISC_INFO structure. 824 //! \brief The latest known version of the MINIDUMP_MISC_INFO structure.
825 typedef MINIDUMP_MISC_INFO_4 MINIDUMP_MISC_INFO_N; 825 typedef MINIDUMP_MISC_INFO_4 MINIDUMP_MISC_INFO_N;
826 826
827 //! \brief Minidump file type values for MINIDUMP_HEADER::Flags. These bits 827 //! \brief Minidump file type values for MINIDUMP_HEADER::Flags. These bits
828 //! describe the types of data carried within a minidump file. 828 //! describe the types of data carried within a minidump file.
829 enum MINIDUMP_TYPE { 829 enum MINIDUMP_TYPE {
830 //! \brief A minidump file without any additional data. 830 //! \brief A minidump file without any additional data.
831 //! 831 //!
832 //! This type of minidump file contains: 832 //! This type of minidump file contains:
833 //! - A MINIDUMP_SYSTEM_INFO stream. 833 //! - A MINIDUMP_SYSTEM_INFO stream.
834 //! - A MINIDUMP_MISC_INFO, MINIDUMP_MISC_INFO_2, MINIDUMP_MISC_INFO_3, or 834 //! - A MINIDUMP_MISC_INFO, MINIDUMP_MISC_INFO_2, MINIDUMP_MISC_INFO_3, or
835 //! MINIDUMP_MISC_INFO_4 stream, depending on which fields are present. 835 //! MINIDUMP_MISC_INFO_4 stream, depending on which fields are present.
836 //! - A MINIDUMP_THREAD_LIST stream. All threads are present, along with a 836 //! - A MINIDUMP_THREAD_LIST stream. All threads are present, along with a
837 //! snapshot of each thread’s stack memory sufficient to obtain backtraces. 837 //! snapshot of each thread’s stack memory sufficient to obtain backtraces.
838 //! - If the minidump file was generated as a result of an exception, a 838 //! - If the minidump file was generated as a result of an exception, a
839 //! MINIDUMP_EXCEPTION_STREAM describing the exception. 839 //! MINIDUMP_EXCEPTION_STREAM describing the exception.
840 //! - A MINIDUMP_MODULE_LIST stream. All loaded modules are present. 840 //! - A MINIDUMP_MODULE_LIST stream. All loaded modules are present.
841 //! - Typically, a MINIDUMP_MEMORY_LIST stream containing duplicate pointers 841 //! - Typically, a MINIDUMP_MEMORY_LIST stream containing duplicate pointers
842 //! to the stack memory regions also referenced by the MINIDUMP_THREAD_LIST 842 //! to the stack memory regions also referenced by the MINIDUMP_THREAD_LIST
843 //! stream. This type of minidump file also includes a 843 //! stream. This type of minidump file also includes a
844 //! MINIDUMP_MEMORY_DESCRIPTOR containing the 256 bytes centered around 844 //! MINIDUMP_MEMORY_DESCRIPTOR containing the 256 bytes centered around
845 //! the exception address or the instruction pointer. 845 //! the exception address or the instruction pointer.
846 MiniDumpNormal = 0x00000000, 846 MiniDumpNormal = 0x00000000,
847 }; 847 };
848 848
849 #endif // CRASHPAD_COMPAT_NON_WIN_DBGHELP_H_ 849 #endif // CRASHPAD_COMPAT_NON_WIN_DBGHELP_H_
OLDNEW
« no previous file with comments | « DEPS ('k') | compat/non_win/timezoneapi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698