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

Unified Diff: third_party/crashpad/crashpad/snapshot/win/capture_memory_delegate_win.h

Issue 1921833002: Update Crashpad to 00d458adaf3868999eeab5341fce5bedb81d17a1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win fixes Created 4 years, 8 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: third_party/crashpad/crashpad/snapshot/win/capture_memory_delegate_win.h
diff --git a/third_party/crashpad/crashpad/snapshot/win/capture_memory_delegate_win.h b/third_party/crashpad/crashpad/snapshot/win/capture_memory_delegate_win.h
index e408e549d4cd112c2c313dfbeeceffa0480663d0..ac575577e8bc80cb3cea05c594f2ffc442c86187 100644
--- a/third_party/crashpad/crashpad/snapshot/win/capture_memory_delegate_win.h
+++ b/third_party/crashpad/crashpad/snapshot/win/capture_memory_delegate_win.h
@@ -35,9 +35,13 @@ class CaptureMemoryDelegateWin : public CaptureMemory::Delegate {
//! already captured elsewhere.
//! \param[in] snapshots A vector of MemorySnapshotWin to which the captured
//! memory will be added.
+ //! \param[in] budget_remaining If non-null, a pointer to the remaining number
+ //! of bytes to capture. If this is `0`, no further memory will be
+ //! captured.
CaptureMemoryDelegateWin(ProcessReaderWin* process_reader,
const ProcessReaderWin::Thread& thread,
- PointerVector<MemorySnapshotWin>* snapshots);
+ PointerVector<MemorySnapshotWin>* snapshots,
+ uint32_t* budget_remaining);
// MemoryCaptureDelegate:
bool Is64Bit() const override;
@@ -50,6 +54,7 @@ class CaptureMemoryDelegateWin : public CaptureMemory::Delegate {
CheckedRange<uint64_t, uint64_t> stack_;
ProcessReaderWin* process_reader_;
PointerVector<MemorySnapshotWin>* snapshots_;
+ uint32_t* budget_remaining_;
};
} // namespace internal

Powered by Google App Engine
This is Rietveld 408576698