From 0a09cce5fcd71d0bc675393f7db8d0ffa49bef18 Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Tue, 25 Nov 2008 19:36:34 +0000 Subject: Clarify file-stream comments. Patch by phajdan.jr@gmail.com R=darin Review URL: http://codereview.chromium.org/12647 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5986 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/file_stream.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/base/file_stream.h b/net/base/file_stream.h index b98cb15..ccdcf80 100644 --- a/net/base/file_stream.h +++ b/net/base/file_stream.h @@ -69,6 +69,8 @@ class FileStream { // progress. That will cancel the read and allow the buffer to be freed. // // This method should not be called if the stream was opened WRITE_ONLY. + // + // You can pass NULL as the callback for synchronous I/O. int Read(char* buf, int buf_len, CompletionCallback* callback); // Call this method to write data at the current stream position. Up to @@ -88,6 +90,8 @@ class FileStream { // progress. That will cancel the write and allow the buffer to be freed. // // This method should not be called if the stream was opened READ_ONLY. + // + // You can pass NULL as the callback for synchronous I/O. int Write(const char* buf, int buf_len, CompletionCallback* callback); private: -- cgit v1.1