Chromium Code Reviews| Index: net/http/http_basic_stream.cc |
| diff --git a/net/http/http_basic_stream.cc b/net/http/http_basic_stream.cc |
| index 0d14e0f9a0eac6683aa6ff8a411cffe4fb796ca1..512b09d327fff2d57b57bf400ffa5847bbd8e899 100644 |
| --- a/net/http/http_basic_stream.cc |
| +++ b/net/http/http_basic_stream.cc |
| @@ -87,6 +87,12 @@ int64 HttpBasicStream::GetTotalReceivedBytes() const { |
| return 0; |
| } |
| +int64_t HttpBasicStream::GetTotalSentBytes() const { |
| + if (parser()) |
|
mmenke
2015/08/31 22:23:13
This check isn't necessary (And while you're here,
sclittle
2015/09/01 01:21:47
This check is needed for GetTotalSent/ReceivedByte
mmenke
2015/09/01 17:39:43
The same can be said of pretty much all these meth
sclittle
2015/09/01 20:03:00
Removing the check from GetTotalReceivedBytes caus
mmenke
2015/09/02 17:36:54
Do you know if it's needed for anything but the DC
sclittle
2015/09/02 18:32:37
I don't know of anything else but that DCHECK, but
|
| + return parser()->sent_bytes(); |
| + return 0; |
| +} |
| + |
| bool HttpBasicStream::GetLoadTimingInfo( |
| LoadTimingInfo* load_timing_info) const { |
| return state_.connection()->GetLoadTimingInfo(IsConnectionReused(), |