| Index: third_party/crashpad/crashpad/snapshot/unloaded_module_snapshot.cc
|
| diff --git a/third_party/crashpad/crashpad/util/win/get_module_information.cc b/third_party/crashpad/crashpad/snapshot/unloaded_module_snapshot.cc
|
| similarity index 54%
|
| copy from third_party/crashpad/crashpad/util/win/get_module_information.cc
|
| copy to third_party/crashpad/crashpad/snapshot/unloaded_module_snapshot.cc
|
| index 1a9fd0c4016b15e070b5df1f4fd466a532b0edf0..45f606a68ea5ae2af8cd4085a37e691ec4b20f84 100644
|
| --- a/third_party/crashpad/crashpad/util/win/get_module_information.cc
|
| +++ b/third_party/crashpad/crashpad/snapshot/unloaded_module_snapshot.cc
|
| @@ -12,19 +12,22 @@
|
| // See the License for the specific language governing permissions and
|
| // limitations under the License.
|
|
|
| -#include "util/win/get_module_information.h"
|
| -
|
| -#include "util/win/get_function.h"
|
| +#include "snapshot/unloaded_module_snapshot.h"
|
|
|
| namespace crashpad {
|
|
|
| -BOOL CrashpadGetModuleInformation(HANDLE process,
|
| - HMODULE module,
|
| - MODULEINFO* module_info,
|
| - DWORD cb) {
|
| - static const auto get_module_information =
|
| - GET_FUNCTION_REQUIRED(L"psapi.dll", GetModuleInformation);
|
| - return get_module_information(process, module, module_info, cb);
|
| +UnloadedModuleSnapshot::UnloadedModuleSnapshot(uint64_t address,
|
| + uint64_t size,
|
| + uint32_t checksum,
|
| + uint32_t timestamp,
|
| + const std::string& name)
|
| + : name_(name),
|
| + address_(address),
|
| + size_(size),
|
| + checksum_(checksum),
|
| + timestamp_(timestamp) {}
|
| +
|
| +UnloadedModuleSnapshot::~UnloadedModuleSnapshot() {
|
| }
|
|
|
| } // namespace crashpad
|
|
|