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

Unified Diff: util/file/fd_io.h

Issue 669153006: Add HTTPBodyStream interface, three concrete implementations, and their tests. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | util/file/fd_io.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/file/fd_io.h
diff --git a/util/file/fd_io.h b/util/file/fd_io.h
index 14481c93752c6fcec8e25566f37c5ea484017341..909e0d92e5896acd75d82770ba9c56fdf3583f43 100644
--- a/util/file/fd_io.h
+++ b/util/file/fd_io.h
@@ -79,6 +79,12 @@ void CheckedWriteFD(int fd, const void* buffer, size_t size);
//! \sa ReadFD
void CheckedReadFDAtEOF(int fd);
+//! \brief Wraps `close()`, logging an error if the operation fails.
+//!
+//! \return On success, `true` is returned. On failure, an error is logged and
+//! `false` is returned.
+bool LoggingCloseFD(int fd);
+
} // namespace crashpad
#endif // CRASHPAD_UTIL_FILE_FD_IO_H_
« no previous file with comments | « no previous file | util/file/fd_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698