Index: third_party/crashpad/crashpad/util/file/file_io.h |
diff --git a/third_party/crashpad/crashpad/util/file/file_io.h b/third_party/crashpad/crashpad/util/file/file_io.h |
index 55909415fefe6d7b45a7e5f0fdb743b2d60041c7..ff20488da1d02fb120c33c096445cb37fff8d08f 100644 |
--- a/third_party/crashpad/crashpad/util/file/file_io.h |
+++ b/third_party/crashpad/crashpad/util/file/file_io.h |
@@ -342,6 +342,15 @@ bool LoggingCloseFile(FileHandle file); |
//! terminate without returning. |
void CheckedCloseFile(FileHandle file); |
+//! \brief Determines the size of a file. |
+//! |
+//! \param[in] file The handle to the file for which the size should be |
+//! retrived. |
+//! |
+//! \return The size of the file. If an error occurs when attempting to |
+//! determine its size, returns `-1` with an error logged. |
+FileOffset LoggingFileSizeByHandle(FileHandle file); |
+ |
} // namespace crashpad |
#endif // CRASHPAD_UTIL_FILE_FILE_IO_H_ |