| Index: net/base/network_delegate_impl.h
|
| diff --git a/net/base/network_delegate_impl.h b/net/base/network_delegate_impl.h
|
| index 84e898d2a636e4d1c560b9de25908ee326091ed4..46bc4548fbcbf8c30b56bb4602e3c86a3f974f33 100644
|
| --- a/net/base/network_delegate_impl.h
|
| +++ b/net/base/network_delegate_impl.h
|
| @@ -89,6 +89,16 @@ class NET_EXPORT NetworkDelegateImpl : public NetworkDelegate {
|
| void OnSendHeaders(URLRequest* request,
|
| const HttpRequestHeaders& headers) override;
|
|
|
| + // Called when bytes are sent over the network, such as when sending request
|
| + // headers or uploading request body bytes. This includes localhost requests.
|
| + // |bytes_sent| is the number of bytes measured at the application layer that
|
| + // have been sent over the network for this request since the last time
|
| + // OnNetworkBytesSent was called. |bytes_sent| will always be greater than 0.
|
| + // Currently, this is only implemented for HTTP transactions, and |bytes_sent|
|
| + // does not include TLS overhead or TCP retransmits.
|
| + void OnNetworkBytesSent(const URLRequest& request,
|
| + int64_t bytes_sent) override;
|
| +
|
| // Called for HTTP requests when the headers have been received.
|
| // |original_response_headers| contains the headers as received over the
|
| // network, these must not be modified. |override_response_headers| can be set
|
|
|