| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 std::vector<const ModuleSnapshot*> ProcessSnapshotMac::Modules() const { | 180 std::vector<const ModuleSnapshot*> ProcessSnapshotMac::Modules() const { |
| 181 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 181 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 182 std::vector<const ModuleSnapshot*> modules; | 182 std::vector<const ModuleSnapshot*> modules; |
| 183 for (internal::ModuleSnapshotMac* module : modules_) { | 183 for (internal::ModuleSnapshotMac* module : modules_) { |
| 184 modules.push_back(module); | 184 modules.push_back(module); |
| 185 } | 185 } |
| 186 return modules; | 186 return modules; |
| 187 } | 187 } |
| 188 | 188 |
| 189 std::vector<UnloadedModuleSnapshot> ProcessSnapshotMac::UnloadedModules() |
| 190 const { |
| 191 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 192 return std::vector<UnloadedModuleSnapshot>(); |
| 193 } |
| 194 |
| 189 const ExceptionSnapshot* ProcessSnapshotMac::Exception() const { | 195 const ExceptionSnapshot* ProcessSnapshotMac::Exception() const { |
| 190 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 196 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 191 return exception_.get(); | 197 return exception_.get(); |
| 192 } | 198 } |
| 193 | 199 |
| 194 std::vector<const MemoryMapRegionSnapshot*> ProcessSnapshotMac::MemoryMap() | 200 std::vector<const MemoryMapRegionSnapshot*> ProcessSnapshotMac::MemoryMap() |
| 195 const { | 201 const { |
| 196 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 202 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 197 return std::vector<const MemoryMapRegionSnapshot*>(); | 203 return std::vector<const MemoryMapRegionSnapshot*>(); |
| 198 } | 204 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 225 for (const ProcessReader::Module& process_reader_module : | 231 for (const ProcessReader::Module& process_reader_module : |
| 226 process_reader_modules) { | 232 process_reader_modules) { |
| 227 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); | 233 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); |
| 228 if (module->Initialize(&process_reader_, process_reader_module)) { | 234 if (module->Initialize(&process_reader_, process_reader_module)) { |
| 229 modules_.push_back(module.release()); | 235 modules_.push_back(module.release()); |
| 230 } | 236 } |
| 231 } | 237 } |
| 232 } | 238 } |
| 233 | 239 |
| 234 } // namespace crashpad | 240 } // namespace crashpad |
| OLD | NEW |