summaryrefslogtreecommitdiffstats
path: root/net/base/upload_element_reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/upload_element_reader.h')
-rw-r--r--net/base/upload_element_reader.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/base/upload_element_reader.h b/net/base/upload_element_reader.h
index 01f91fb..d71f57c 100644
--- a/net/base/upload_element_reader.h
+++ b/net/base/upload_element_reader.h
@@ -47,10 +47,8 @@ class NET_EXPORT UploadElementReader {
virtual bool IsInMemory() const;
// Reads up to |buf_length| bytes synchronously and returns the number of
- // bytes read when possible, otherwise, returns ERR_IO_PENDING and runs
- // |callback| with the result. This function never fails. If there's less data
- // to read than we initially observed, then pad with zero (this can happen
- // with files). |buf_length| must be greater than 0.
+ // bytes read or error code when possible, otherwise, returns ERR_IO_PENDING
+ // and runs |callback| with the result. |buf_length| must be greater than 0.
virtual int Read(IOBuffer* buf,
int buf_length,
const CompletionCallback& callback) = 0;