Chromium Code Reviews| Index: net/base/network_delegate.cc |
| diff --git a/net/base/network_delegate.cc b/net/base/network_delegate.cc |
| index 40eb66545ed2d42b0c572c44f6dc095928f28d8a..9c8a689930d29e74dd4007b9cfce6e5a49fc65d6 100644 |
| --- a/net/base/network_delegate.cc |
| +++ b/net/base/network_delegate.cc |
| @@ -95,6 +95,13 @@ void NetworkDelegate::NotifyRawBytesRead(const URLRequest& request, |
| OnRawBytesRead(request, bytes_read); |
| } |
| +void NetworkDelegate::NotifyNetworkBytesReceived(const URLRequest& request, |
| + int64_t bytes_received) { |
| + DCHECK(CalledOnValidThread()); |
| + DCHECK_GT(bytes_received, 0); |
| + OnNetworkBytesReceived(request, bytes_received); |
|
mmenke
2015/08/18 18:33:12
What's the difference between a raw byte read and
sclittle
2015/08/18 18:49:41
The main difficulty would be getting the delta |by
mmenke
2015/08/18 18:56:07
I'm strongly opposed to having two methods for thi
sclittle
2015/08/18 20:13:42
From a quick code search it looks like you're righ
sclittle
2015/08/18 20:20:26
Another alternative might just be to add an int64
|
| +} |
| + |
| void NetworkDelegate::NotifyBeforeRedirect(URLRequest* request, |
| const GURL& new_location) { |
| DCHECK(CalledOnValidThread()); |