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

Side by Side 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: fixes2 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 unified diff | Download patch
« no previous file with comments | « snapshot/win/exception_snapshot_win_test.cc ('k') | snapshot/win/pe_image_reader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Crashpad Authors. All rights reserved. 1 // Copyright 2015 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 //! \return `true` if the snapshot could be created, `false` otherwise with 54 //! \return `true` if the snapshot could be created, `false` otherwise with
55 //! an appropriate message logged. 55 //! an appropriate message logged.
56 bool Initialize(ProcessReaderWin* process_reader, 56 bool Initialize(ProcessReaderWin* process_reader,
57 const ProcessInfo::Module& process_reader_module); 57 const ProcessInfo::Module& process_reader_module);
58 58
59 //! \brief Returns options from the module's CrashpadInfo structure. 59 //! \brief Returns options from the module's CrashpadInfo structure.
60 //! 60 //!
61 //! \param[out] options Options set in the module's CrashpadInfo structure. 61 //! \param[out] options Options set in the module's CrashpadInfo structure.
62 void GetCrashpadOptions(CrashpadInfoClientOptions* options); 62 void GetCrashpadOptions(CrashpadInfoClientOptions* options);
63 63
64 //! \brief Returns the PEImageReader used to read this module. Only valid
65 //! after Initialize() is called.
66 const PEImageReader& pe_image_reader() const { return *pe_image_reader_; }
67
64 // ModuleSnapshot: 68 // ModuleSnapshot:
65 69
66 std::string Name() const override; 70 std::string Name() const override;
67 uint64_t Address() const override; 71 uint64_t Address() const override;
68 uint64_t Size() const override; 72 uint64_t Size() const override;
69 time_t Timestamp() const override; 73 time_t Timestamp() const override;
70 void FileVersion(uint16_t* version_0, 74 void FileVersion(uint16_t* version_0,
71 uint16_t* version_1, 75 uint16_t* version_1,
72 uint16_t* version_2, 76 uint16_t* version_2,
73 uint16_t* version_3) const override; 77 uint16_t* version_3) const override;
(...skipping 13 matching lines...) Expand all
87 ProcessReaderWin* process_reader_; // weak 91 ProcessReaderWin* process_reader_; // weak
88 InitializationStateDcheck initialized_; 92 InitializationStateDcheck initialized_;
89 93
90 DISALLOW_COPY_AND_ASSIGN(ModuleSnapshotWin); 94 DISALLOW_COPY_AND_ASSIGN(ModuleSnapshotWin);
91 }; 95 };
92 96
93 } // namespace internal 97 } // namespace internal
94 } // namespace crashpad 98 } // namespace crashpad
95 99
96 #endif // CRASHPAD_SNAPSHOT_WIN_MODULE_SNAPSHOT_WIN_H_ 100 #endif // CRASHPAD_SNAPSHOT_WIN_MODULE_SNAPSHOT_WIN_H_
OLDNEW
« no previous file with comments | « snapshot/win/exception_snapshot_win_test.cc ('k') | snapshot/win/pe_image_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698