| 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 modules.push_back(module); | 179 modules.push_back(module); |
| 180 } | 180 } |
| 181 return modules; | 181 return modules; |
| 182 } | 182 } |
| 183 | 183 |
| 184 const ExceptionSnapshot* ProcessSnapshotMac::Exception() const { | 184 const ExceptionSnapshot* ProcessSnapshotMac::Exception() const { |
| 185 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 185 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 186 return exception_.get(); | 186 return exception_.get(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 std::vector<const MemorySnapshot*> ProcessSnapshotMac::ExtraMemory() const { |
| 190 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 191 return std::vector<const MemorySnapshot*>(); |
| 192 } |
| 193 |
| 189 void ProcessSnapshotMac::InitializeThreads() { | 194 void ProcessSnapshotMac::InitializeThreads() { |
| 190 const std::vector<ProcessReader::Thread>& process_reader_threads = | 195 const std::vector<ProcessReader::Thread>& process_reader_threads = |
| 191 process_reader_.Threads(); | 196 process_reader_.Threads(); |
| 192 for (const ProcessReader::Thread& process_reader_thread : | 197 for (const ProcessReader::Thread& process_reader_thread : |
| 193 process_reader_threads) { | 198 process_reader_threads) { |
| 194 auto thread = make_scoped_ptr(new internal::ThreadSnapshotMac()); | 199 auto thread = make_scoped_ptr(new internal::ThreadSnapshotMac()); |
| 195 if (thread->Initialize(&process_reader_, process_reader_thread)) { | 200 if (thread->Initialize(&process_reader_, process_reader_thread)) { |
| 196 threads_.push_back(thread.release()); | 201 threads_.push_back(thread.release()); |
| 197 } | 202 } |
| 198 } | 203 } |
| 199 } | 204 } |
| 200 | 205 |
| 201 void ProcessSnapshotMac::InitializeModules() { | 206 void ProcessSnapshotMac::InitializeModules() { |
| 202 const std::vector<ProcessReader::Module>& process_reader_modules = | 207 const std::vector<ProcessReader::Module>& process_reader_modules = |
| 203 process_reader_.Modules(); | 208 process_reader_.Modules(); |
| 204 for (const ProcessReader::Module& process_reader_module : | 209 for (const ProcessReader::Module& process_reader_module : |
| 205 process_reader_modules) { | 210 process_reader_modules) { |
| 206 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); | 211 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); |
| 207 if (module->Initialize(&process_reader_, process_reader_module)) { | 212 if (module->Initialize(&process_reader_, process_reader_module)) { |
| 208 modules_.push_back(module.release()); | 213 modules_.push_back(module.release()); |
| 209 } | 214 } |
| 210 } | 215 } |
| 211 } | 216 } |
| 212 | 217 |
| 213 } // namespace crashpad | 218 } // namespace crashpad |
| OLD | NEW |