| OLD | NEW |
| 1 // Copyright (c) 2010 Google Inc. | 1 // Copyright (c) 2010 Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 // provides a convenient place to stash MinidumpStream objects. | 1106 // provides a convenient place to stash MinidumpStream objects. |
| 1107 struct MinidumpStreamInfo { | 1107 struct MinidumpStreamInfo { |
| 1108 MinidumpStreamInfo() : stream_index(0), stream(NULL) {} | 1108 MinidumpStreamInfo() : stream_index(0), stream(NULL) {} |
| 1109 ~MinidumpStreamInfo() { delete stream; } | 1109 ~MinidumpStreamInfo() { delete stream; } |
| 1110 | 1110 |
| 1111 // Index into the MinidumpDirectoryEntries vector | 1111 // Index into the MinidumpDirectoryEntries vector |
| 1112 unsigned int stream_index; | 1112 unsigned int stream_index; |
| 1113 | 1113 |
| 1114 // Pointer to the stream if cached, or NULL if not yet populated | 1114 // Pointer to the stream if cached, or NULL if not yet populated |
| 1115 MinidumpStream* stream; | 1115 MinidumpStream* stream; |
| 1116 | |
| 1117 private: | |
| 1118 DISALLOW_COPY_AND_ASSIGN(MinidumpStreamInfo); | |
| 1119 }; | 1116 }; |
| 1120 | 1117 |
| 1121 typedef vector<MDRawDirectory> MinidumpDirectoryEntries; | 1118 typedef vector<MDRawDirectory> MinidumpDirectoryEntries; |
| 1122 typedef map<uint32_t, MinidumpStreamInfo> MinidumpStreamMap; | 1119 typedef map<uint32_t, MinidumpStreamInfo> MinidumpStreamMap; |
| 1123 | 1120 |
| 1124 template<typename T> T* GetStream(T** stream); | 1121 template<typename T> T* GetStream(T** stream); |
| 1125 | 1122 |
| 1126 // Opens the minidump file, or if already open, seeks to the beginning. | 1123 // Opens the minidump file, or if already open, seeks to the beginning. |
| 1127 bool Open(); | 1124 bool Open(); |
| 1128 | 1125 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 bool valid_; | 1162 bool valid_; |
| 1166 | 1163 |
| 1167 DISALLOW_COPY_AND_ASSIGN(Minidump); | 1164 DISALLOW_COPY_AND_ASSIGN(Minidump); |
| 1168 }; | 1165 }; |
| 1169 | 1166 |
| 1170 | 1167 |
| 1171 } // namespace google_breakpad | 1168 } // namespace google_breakpad |
| 1172 | 1169 |
| 1173 | 1170 |
| 1174 #endif // GOOGLE_BREAKPAD_PROCESSOR_MINIDUMP_H__ | 1171 #endif // GOOGLE_BREAKPAD_PROCESSOR_MINIDUMP_H__ |
| OLD | NEW |