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

Unified Diff: util/net/http_body.cc

Issue 811823003: Cross platform low level file IO wrappers (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 6 years 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: util/net/http_body.cc
diff --git a/util/net/http_body.cc b/util/net/http_body.cc
index 0e5daa34259a57816c91e5d60b9a4eeb4b7d3d9f..e731c598e4d0257b7627cdd27987a789164f19b6 100644
--- a/util/net/http_body.cc
+++ b/util/net/http_body.cc
@@ -24,7 +24,7 @@
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
#include "base/stl_util.h"
-#include "util/file/fd_io.h"
+#include "util/file/file_io.h"
namespace crashpad {
@@ -55,7 +55,7 @@ FileHTTPBodyStream::FileHTTPBodyStream(const base::FilePath& path)
FileHTTPBodyStream::~FileHTTPBodyStream() {
if (fd_ >= 0) {
- LoggingCloseFD(fd_);
+ LoggingCloseFile(fd_);
}
}
@@ -77,9 +77,9 @@ ssize_t FileHTTPBodyStream::GetBytesBuffer(uint8_t* buffer, size_t max_len) {
break;
}
- ssize_t rv = ReadFD(fd_, buffer, max_len);
+ ssize_t rv = ReadFile(fd_, buffer, max_len);
if (rv == 0) {
- LoggingCloseFD(fd_);
+ LoggingCloseFile(fd_);
fd_ = kClosedAtEOF;
} else if (rv < 0) {
PLOG(ERROR) << "read";

Powered by Google App Engine
This is Rietveld 408576698