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

Unified Diff: third_party/WebKit/Source/modules/fetch/BytesConsumer.h

Issue 2351643004: BytesConsumer::endRead can return Done (Closed)
Patch Set: fix Created 4 years, 3 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
Index: third_party/WebKit/Source/modules/fetch/BytesConsumer.h
diff --git a/third_party/WebKit/Source/modules/fetch/BytesConsumer.h b/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
index 6f73c0b76c20fd67b364a5fccc6addd68d54817c..09cd08bbddeb8e4b7d2a829adc85db0181a0deb4 100644
--- a/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
+++ b/third_party/WebKit/Source/modules/fetch/BytesConsumer.h
@@ -91,6 +91,10 @@ public:
virtual Result beginRead(const char** buffer, size_t* available) WARN_UNUSED_RESULT = 0;
// Ends a two-phase read.
+ // This function can modify this BytesConsumer's state.
+ // Returns Ok when the consumer stays readable or waiting.
+ // Returns Done when it's closed.
+ // Returns Error when it's errored.
virtual Result endRead(size_t readSize) WARN_UNUSED_RESULT = 0;
// Drains the data as a BlobDataHandle.

Powered by Google App Engine
This is Rietveld 408576698