diff options
Diffstat (limited to 'net/base/file_stream.h')
-rw-r--r-- | net/base/file_stream.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/base/file_stream.h b/net/base/file_stream.h index 67f93ed..20466b4 100644 --- a/net/base/file_stream.h +++ b/net/base/file_stream.h @@ -27,6 +27,13 @@ enum Whence { class FileStream { public: FileStream(); + + // Construct a FileStream with an existing file handle and opening flags. + // |file| is valid file handle. + // |flags| is a bitfield of base::PlatformFileFlags when the file handle was + // opened. + FileStream(base::PlatformFile file, int flags); + ~FileStream(); // Call this method to close the FileStream. It is OK to call Close |