Index: content/browser/byte_stream.h |
diff --git a/content/browser/byte_stream.h b/content/browser/byte_stream.h |
index 0b5640d07112c8ce882dc5cac5c564bf9c6029e1..60b01634c5cb00e7d7dec4f22c2b305abaac7679 100644 |
--- a/content/browser/byte_stream.h |
+++ b/content/browser/byte_stream.h |
@@ -153,6 +153,10 @@ class CONTENT_EXPORT ByteStreamWriter { |
// or after callbacks may be called). |
// The callback will not be called after ByteStreamWriter destruction. |
virtual void RegisterCallback(const base::Closure& source_callback) = 0; |
+ |
+ // Returns the number of bytes sent to the reader but not yet reported by |
+ // the reader as read. |
+ virtual size_t GetTotalBufferedBytes() const = 0; |
}; |
class CONTENT_EXPORT ByteStreamReader { |