Index: net/base/network_delegate.h |
diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h |
index 977df2fdc72857251ea88556c7c3a288978b35eb..741b7f20b3dd76260a940cf0a22d2033a3e0279e 100644 |
--- a/net/base/network_delegate.h |
+++ b/net/base/network_delegate.h |
@@ -49,6 +49,7 @@ class NetworkDelegate : public base::NonThreadSafe { |
void NotifyBeforeRedirect(URLRequest* request, |
const GURL& new_location); |
void NotifyResponseStarted(URLRequest* request); |
+ void NotifyRawBytesRead(const URLRequest& request, int bytes_read); |
void NotifyCompleted(URLRequest* request); |
void NotifyURLRequestDestroyed(URLRequest* request); |
void NotifyHttpTransactionDestroyed(uint64 request_id); |
@@ -89,6 +90,9 @@ class NetworkDelegate : public base::NonThreadSafe { |
// This corresponds to URLRequestDelegate::OnResponseStarted. |
virtual void OnResponseStarted(URLRequest* request) = 0; |
+ // Called every time we read raw bytes. |
+ virtual void OnRawBytesRead(const URLRequest& request, int bytes_read) = 0; |
+ |
// Indicates that the URL request has been completed or failed. |
virtual void OnCompleted(URLRequest* request) = 0; |