summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 19:36:34 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 19:36:34 +0000
commit0a09cce5fcd71d0bc675393f7db8d0ffa49bef18 (patch)
treebae9a202d5478e73b7692b4305018f0b29ede824 /net/base
parent462d4c3507d1f4d66c9af9120705f1f4dc6c1406 (diff)
downloadchromium_src-0a09cce5fcd71d0bc675393f7db8d0ffa49bef18.zip
chromium_src-0a09cce5fcd71d0bc675393f7db8d0ffa49bef18.tar.gz
chromium_src-0a09cce5fcd71d0bc675393f7db8d0ffa49bef18.tar.bz2
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
Diffstat (limited to 'net/base')
-rw-r--r--net/base/file_stream.h4
1 files changed, 4 insertions, 0 deletions
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: