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. |