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

Unified Diff: snapshot/win/module_snapshot_win.h

Issue 1352323002: win: Make reading NT_IMAGE_HEADERS work cross-bitness (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@cleanup-crashpad-info
Patch Set: . Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: snapshot/win/module_snapshot_win.h
diff --git a/snapshot/win/module_snapshot_win.h b/snapshot/win/module_snapshot_win.h
index d3ea671c71630806cf60c6bebb22d713a511692d..99606bc02f88bc1901e88b13afd8d744ff3b824b 100644
--- a/snapshot/win/module_snapshot_win.h
+++ b/snapshot/win/module_snapshot_win.h
@@ -61,6 +61,12 @@ class ModuleSnapshotWin final : public ModuleSnapshot {
//! \param[out] options Options set in the module's CrashpadInfo structure.
void GetCrashpadOptions(CrashpadInfoClientOptions* options);
+ //! \brief Returns the PEImageReader used to read this module. Only valid
+ //! after Initialize() is called.
+ const PEImageReader& pe_image_reader() const {
+ return *pe_image_reader_.get();
Mark Mentovai 2015/09/19 03:02:47 Just “return *pe_image_reader_” should be enough,
scottmg 2015/09/19 04:24:41 Done.
+ }
+
// ModuleSnapshot:
std::string Name() const override;

Powered by Google App Engine
This is Rietveld 408576698