OLD | NEW |
1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 *version_2 = 0; | 103 *version_2 = 0; |
104 *version_3 = 0; | 104 *version_3 = 0; |
105 } | 105 } |
106 | 106 |
107 ModuleSnapshot::ModuleType ModuleSnapshotMinidump::GetModuleType() const { | 107 ModuleSnapshot::ModuleType ModuleSnapshotMinidump::GetModuleType() const { |
108 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 108 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
109 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 | 109 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 |
110 return kModuleTypeUnknown; | 110 return kModuleTypeUnknown; |
111 } | 111 } |
112 | 112 |
113 void ModuleSnapshotMinidump::UUID(crashpad::UUID* uuid) const { | 113 void ModuleSnapshotMinidump::UUIDAndAge(crashpad::UUID* uuid, |
| 114 uint32_t* age) const { |
114 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 115 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
115 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 | 116 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 |
116 *uuid = crashpad::UUID(); | 117 *uuid = crashpad::UUID(); |
| 118 *age = 0; |
117 } | 119 } |
118 | 120 |
119 std::vector<std::string> ModuleSnapshotMinidump::AnnotationsVector() const { | 121 std::vector<std::string> ModuleSnapshotMinidump::AnnotationsVector() const { |
120 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 122 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
121 return annotations_vector_; | 123 return annotations_vector_; |
122 } | 124 } |
123 | 125 |
124 std::map<std::string, std::string> | 126 std::map<std::string, std::string> |
125 ModuleSnapshotMinidump::AnnotationsSimpleMap() const { | 127 ModuleSnapshotMinidump::AnnotationsSimpleMap() const { |
126 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 128 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 } | 167 } |
166 | 168 |
167 return ReadMinidumpSimpleStringDictionary( | 169 return ReadMinidumpSimpleStringDictionary( |
168 file_reader, | 170 file_reader, |
169 minidump_module_crashpad_info.simple_annotations, | 171 minidump_module_crashpad_info.simple_annotations, |
170 &annotations_simple_map_); | 172 &annotations_simple_map_); |
171 } | 173 } |
172 | 174 |
173 } // namespace internal | 175 } // namespace internal |
174 } // namespace crashpad | 176 } // namespace crashpad |
OLD | NEW |