| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |