| Index: net/base/network_delegate.h | 
| diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h | 
| index e7ee9644be80a1878408be8329ce96a037e0e761..a35d3162a907322ec92d53a7c9066b85f5d25cb8 100644 | 
| --- a/net/base/network_delegate.h | 
| +++ b/net/base/network_delegate.h | 
| @@ -5,6 +5,7 @@ | 
| #ifndef NET_BASE_NETWORK_DELEGATE_H_ | 
| #define NET_BASE_NETWORK_DELEGATE_H_ | 
|  | 
| +#include <stdint.h> | 
| #include <string> | 
|  | 
| #include "base/callback.h" | 
| @@ -86,6 +87,8 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe { | 
| const GURL& new_location); | 
| void NotifyResponseStarted(URLRequest* request); | 
| void NotifyRawBytesRead(const URLRequest& request, int bytes_read); | 
| +  void NotifyNetworkBytesReceived(const URLRequest& request, | 
| +                                  int64_t bytes_received); | 
| void NotifyCompleted(URLRequest* request, bool started); | 
| void NotifyURLRequestDestroyed(URLRequest* request); | 
| void NotifyPACScriptError(int line_number, const base::string16& error); | 
| @@ -201,6 +204,18 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe { | 
| // Called every time we read raw bytes. | 
| virtual void OnRawBytesRead(const URLRequest& request, int bytes_read) = 0; | 
|  | 
| +  // Called when bytes are received from the network, such as after receiving | 
| +  // headers or reading raw response bytes. This includes localhost requests. | 
| +  // |bytes_received| is the number of bytes measured at the application layer | 
| +  // that have been received over the network for this request since the last | 
| +  // time OnNetworkBytesReceived was called. |bytes_received| will always be | 
| +  // greater than 0. | 
| +  // Currently, this is only implemented for HTTP transactions, and | 
| +  // |bytes_received| does not include TLS overhead or any overhead below the | 
| +  // application layer such as TCP retransmits. | 
| +  virtual void OnNetworkBytesReceived(const URLRequest& request, | 
| +                                      int64_t bytes_received) = 0; | 
| + | 
| // Indicates that the URL request has been completed or failed. | 
| // |started| indicates whether the request has been started. If false, | 
| // some information like the socket address is not available. | 
|  |