Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: snapshot/mac/process_snapshot_mac.cc

Issue 1377133006: Mostly-boilerplate to add MemoryMapSnapshot (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@memory-info-to-misc
Patch Set: . Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 const MemoryMapSnapshot* ProcessSnapshotMac::MemoryMap() const {
190 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
191 return nullptr;
192 }
193
189 std::vector<const MemorySnapshot*> ProcessSnapshotMac::ExtraMemory() const { 194 std::vector<const MemorySnapshot*> ProcessSnapshotMac::ExtraMemory() const {
190 INITIALIZATION_STATE_DCHECK_VALID(initialized_); 195 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
191 return std::vector<const MemorySnapshot*>(); 196 return std::vector<const MemorySnapshot*>();
192 } 197 }
193 198
194 void ProcessSnapshotMac::InitializeThreads() { 199 void ProcessSnapshotMac::InitializeThreads() {
195 const std::vector<ProcessReader::Thread>& process_reader_threads = 200 const std::vector<ProcessReader::Thread>& process_reader_threads =
196 process_reader_.Threads(); 201 process_reader_.Threads();
197 for (const ProcessReader::Thread& process_reader_thread : 202 for (const ProcessReader::Thread& process_reader_thread :
198 process_reader_threads) { 203 process_reader_threads) {
(...skipping 10 matching lines...) Expand all
209 for (const ProcessReader::Module& process_reader_module : 214 for (const ProcessReader::Module& process_reader_module :
210 process_reader_modules) { 215 process_reader_modules) {
211 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); 216 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac());
212 if (module->Initialize(&process_reader_, process_reader_module)) { 217 if (module->Initialize(&process_reader_, process_reader_module)) {
213 modules_.push_back(module.release()); 218 modules_.push_back(module.release());
214 } 219 }
215 } 220 }
216 } 221 }
217 222
218 } // namespace crashpad 223 } // namespace crashpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698