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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/base/upload_element_reader.h b/net/base/upload_element_reader.h
index 4ba973d..1511f74 100644
--- a/net/base/upload_element_reader.h
+++ b/net/base/upload_element_reader.h
@@ -25,10 +25,12 @@ class NET_EXPORT UploadElementReader {
// 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
+ // state.
virtual int Init(const CompletionCallback& callback) = 0;
// Initializes the instance always synchronously.
- // Use this method only in tests and Chrome Frame.
+ // Use this method only if the thread is IO allowed or the data is in-memory.
virtual int InitSync();
// Returns the byte-length of the element. For files that do not exist, 0