Searched refs:IOResult (Results 1 – 4 of 4) sorted by relevance
/external/chromium_org/net/base/ |
D | file_stream_context_posix.cc | 75 IOResult result = IOResult::FromOSError(errno); in GetFileSize() 105 IOResult result = ReadFileImpl(buf, buf_len); in ReadSync() 132 IOResult result = WriteFileImpl(buf, buf_len); in WriteSync() 139 IOResult result = IOResult::FromOSError(errno); in Truncate() 147 FileStream::Context::IOResult FileStream::Context::SeekFileImpl(Whence whence, in SeekFileImpl() 152 return IOResult::FromOSError(errno); in SeekFileImpl() 154 return IOResult(res, 0); in SeekFileImpl() 157 FileStream::Context::IOResult FileStream::Context::FlushFileImpl() { in FlushFileImpl() 160 return IOResult::FromOSError(errno); in FlushFileImpl() 162 return IOResult(res, 0); in FlushFileImpl() [all …]
|
D | file_stream_context_win.cc | 80 IOResult error = IOResult::FromOSError(GetLastError()); in GetFileSize() 98 IOResult error = IOResult::FromOSError(GetLastError()); in ReadAsync() 117 IOResult error = IOResult::FromOSError(GetLastError()); in ReadSync() 138 IOResult error = IOResult::FromOSError(GetLastError()); in WriteAsync() 155 IOResult error = IOResult::FromOSError(GetLastError()); in WriteSync() 166 IOResult error = IOResult::FromOSError(GetLastError()); in Truncate() 179 FileStream::Context::IOResult FileStream::Context::SeekFileImpl(Whence whence, in SeekFileImpl() 186 return IOResult(res.QuadPart, 0); in SeekFileImpl() 189 return IOResult::FromOSError(GetLastError()); in SeekFileImpl() 192 FileStream::Context::IOResult FileStream::Context::FlushFileImpl() { in FlushFileImpl() [all …]
|
D | file_stream_context.h | 127 struct IOResult { struct 128 IOResult(); 129 IOResult(int64 result, int os_error); 130 static IOResult FromOSError(int64 os_error); 138 OpenResult(base::PlatformFile file, IOResult error_code); argument 140 IOResult error_code; 144 void RecordError(const IOResult& result, FileErrorSource source) const; 150 void ProcessOpenError(const IOResult& result); 163 const IOResult& result); 191 IOResult SeekFileImpl(Whence whence, int64 offset); [all …]
|
D | file_stream_context.cc | 28 FileStream::Context::IOResult::IOResult() in IOResult() function in net::FileStream::Context::IOResult 33 FileStream::Context::IOResult::IOResult(int64 result, int os_error) in IOResult() function in net::FileStream::Context::IOResult 39 FileStream::Context::IOResult FileStream::Context::IOResult::FromOSError( in FromOSError() 41 return IOResult(MapSystemError(os_error), os_error); in FromOSError() 49 IOResult error_code) in OpenResult() 147 IOResult result = SeekFileImpl(whence, offset); in SeekSync() 169 IOResult result = FlushFileImpl(); in FlushSync() 174 void FileStream::Context::RecordError(const IOResult& result, in RecordError() 219 return OpenResult(file, IOResult::FromOSError(GetLastErrno())); in OpenFileImpl() 221 return OpenResult(file, IOResult(OK, 0)); in OpenFileImpl() [all …]
|