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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 MemoryMapRegionSnapshot*> ProcessSnapshotMac::MemoryMap() | 189 std::vector<const MemoryMapRegionSnapshot*> ProcessSnapshotMac::MemoryMap() |
190 const { | 190 const { |
191 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 191 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
192 return std::vector<const MemoryMapRegionSnapshot*>(); | 192 return std::vector<const MemoryMapRegionSnapshot*>(); |
193 } | 193 } |
194 | 194 |
| 195 std::vector<HandleSnapshot> ProcessSnapshotMac::Handles() const { |
| 196 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 197 return std::vector<HandleSnapshot>(); |
| 198 } |
| 199 |
195 std::vector<const MemorySnapshot*> ProcessSnapshotMac::ExtraMemory() const { | 200 std::vector<const MemorySnapshot*> ProcessSnapshotMac::ExtraMemory() const { |
196 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 201 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
197 return std::vector<const MemorySnapshot*>(); | 202 return std::vector<const MemorySnapshot*>(); |
198 } | 203 } |
199 | 204 |
200 void ProcessSnapshotMac::InitializeThreads() { | 205 void ProcessSnapshotMac::InitializeThreads() { |
201 const std::vector<ProcessReader::Thread>& process_reader_threads = | 206 const std::vector<ProcessReader::Thread>& process_reader_threads = |
202 process_reader_.Threads(); | 207 process_reader_.Threads(); |
203 for (const ProcessReader::Thread& process_reader_thread : | 208 for (const ProcessReader::Thread& process_reader_thread : |
204 process_reader_threads) { | 209 process_reader_threads) { |
(...skipping 10 matching lines...) Expand all Loading... |
215 for (const ProcessReader::Module& process_reader_module : | 220 for (const ProcessReader::Module& process_reader_module : |
216 process_reader_modules) { | 221 process_reader_modules) { |
217 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); | 222 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); |
218 if (module->Initialize(&process_reader_, process_reader_module)) { | 223 if (module->Initialize(&process_reader_, process_reader_module)) { |
219 modules_.push_back(module.release()); | 224 modules_.push_back(module.release()); |
220 } | 225 } |
221 } | 226 } |
222 } | 227 } |
223 | 228 |
224 } // namespace crashpad | 229 } // namespace crashpad |
OLD | NEW |