Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1512)

Unified Diff: net/base/upload_element_reader.h

Issue 2000483004: [BlobReader] Correct IsInMemory = false when async constructing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests, and comment Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/blob_storage/blob_reader_unittest.cc ('k') | storage/browser/blob/blob_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/upload_element_reader.h
diff --git a/net/base/upload_element_reader.h b/net/base/upload_element_reader.h
index 049f38ef60705ac0e45b8dc73b08e161ba206899..08353f48089ec76f7d97ecf38039a6916a2c9579 100644
--- a/net/base/upload_element_reader.h
+++ b/net/base/upload_element_reader.h
@@ -31,6 +31,11 @@ class NET_EXPORT UploadElementReader {
// 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
« no previous file with comments | « content/browser/blob_storage/blob_reader_unittest.cc ('k') | storage/browser/blob/blob_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698