Index: net/base/file_stream_win.cc |
diff --git a/net/base/file_stream_win.cc b/net/base/file_stream_win.cc |
index 9e1f686fb59cd3eaf2afa55cd54675f4106823b5..425a3f7ecbcbe9adcce8f5f6c6eb30394c4c3277 100644 |
--- a/net/base/file_stream_win.cc |
+++ b/net/base/file_stream_win.cc |
@@ -169,12 +169,12 @@ FileStream::FileStream(base::PlatformFile file, int flags, net::NetLog* net_log) |
FileStream::~FileStream() { |
if (auto_closed_) |
- Close(); |
+ CloseSync(); |
bound_net_log_.EndEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE, NULL); |
} |
-void FileStream::Close() { |
+void FileStream::CloseSync() { |
bound_net_log_.AddEvent(net::NetLog::TYPE_FILE_STREAM_CLOSE, NULL); |
if (file_ != INVALID_HANDLE_VALUE) |
CancelIo(file_); |
@@ -189,7 +189,7 @@ void FileStream::Close() { |
} |
} |
-int FileStream::Open(const FilePath& path, int open_flags) { |
+int FileStream::OpenSync(const FilePath& path, int open_flags) { |
if (IsOpen()) { |
DLOG(FATAL) << "File is already open!"; |
return ERR_UNEXPECTED; |