| OLD | NEW |
| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 return kModuleTypeUnknown; | 129 return kModuleTypeUnknown; |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 | 132 |
| 133 void ModuleSnapshotMac::UUID(crashpad::UUID* uuid) const { | 133 void ModuleSnapshotMac::UUID(crashpad::UUID* uuid) const { |
| 134 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 134 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 135 return mach_o_image_reader_->UUID(uuid); | 135 return mach_o_image_reader_->UUID(uuid); |
| 136 } | 136 } |
| 137 | 137 |
| 138 std::vector<std::string> ModuleSnapshotMac::AnnotationsVector() const { | 138 std::vector<std::string> ModuleSnapshotMac::AnnotationsVector() const { |
| 139 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 139 MachOImageAnnotationsReader annotations_reader( | 140 MachOImageAnnotationsReader annotations_reader( |
| 140 process_reader_, mach_o_image_reader_, name_); | 141 process_reader_, mach_o_image_reader_, name_); |
| 141 return annotations_reader.Vector(); | 142 return annotations_reader.Vector(); |
| 142 } | 143 } |
| 143 | 144 |
| 144 std::map<std::string, std::string> ModuleSnapshotMac::AnnotationsSimpleMap() | 145 std::map<std::string, std::string> ModuleSnapshotMac::AnnotationsSimpleMap() |
| 145 const { | 146 const { |
| 147 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 146 MachOImageAnnotationsReader annotations_reader( | 148 MachOImageAnnotationsReader annotations_reader( |
| 147 process_reader_, mach_o_image_reader_, name_); | 149 process_reader_, mach_o_image_reader_, name_); |
| 148 return annotations_reader.SimpleMap(); | 150 return annotations_reader.SimpleMap(); |
| 149 } | 151 } |
| 150 | 152 |
| 151 } // namespace internal | 153 } // namespace internal |
| 152 } // namespace crashpad | 154 } // namespace crashpad |
| OLD | NEW |