diff options
Diffstat (limited to 'net/base/file_stream_posix.cc')
-rw-r--r-- | net/base/file_stream_posix.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/base/file_stream_posix.cc b/net/base/file_stream_posix.cc index abef9c2..7b248a4 100644 --- a/net/base/file_stream_posix.cc +++ b/net/base/file_stream_posix.cc @@ -47,6 +47,12 @@ FileStream::FileStream() : file_(base::kInvalidPlatformFileValue) { DCHECK(!IsOpen()); } +FileStream::FileStream(base::PlatformFile file, int flags) + : file_(file), open_flags_(flags) { + // TODO(hclam): initialize the aync_context_ if the file handle + // is opened as an asynchronous file handle. +} + FileStream::~FileStream() { Close(); } |