Index: content/browser/byte_stream.h |
diff --git a/content/browser/byte_stream.h b/content/browser/byte_stream.h |
index 0b5640d07112c8ce882dc5cac5c564bf9c6029e1..96829986a67ad0c60936f00c9b47bf2cc0cf1656 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 TotalBufferedBytes() const = 0; |
kinuko
2013/08/14 09:32:23
nit: GetTotalBufferedBytes() per naming convention
tyoshino (SeeGerritForStatus)
2013/08/15 04:15:33
Done.
|
}; |
class CONTENT_EXPORT ByteStreamReader { |