[BlobReader] Correct IsInMemory = false when async constructing
BUG=611317
Review-Url: https://codereview.chromium.org/2000483004
Cr-Commit-Position: refs/heads/master@{#395142}
diff --git a/net/base/upload_element_reader.h b/net/base/upload_element_reader.h
index 049f38e..08353f4 100644
--- a/net/base/upload_element_reader.h
+++ b/net/base/upload_element_reader.h
@@ -31,6 +31,11 @@
// otherwise returns NULL.
virtual const UploadFileElementReader* AsFileReader() const;
+ // This function must be called before calling any other method. It is not
+ // valid to call any method (other than the destructor) if Init() fails.
+ // This method can be called multiple times. Calling this method after an
+ // Init() success results in resetting the state (i.e. the stream is rewound).
+ //
// Initializes the instance synchronously when possible, otherwise does
// initialization aynschronously, returns ERR_IO_PENDING and runs callback.
// Calling this method again after a Init() success results in resetting the