Chromium Code Reviews| Index: blimp/net/compressed_packet_writer.cc |
| diff --git a/blimp/net/compressed_packet_writer.cc b/blimp/net/compressed_packet_writer.cc |
| index 1bff4d9bc1266f6c052f0ee5d8e0540572f71c21..c41f0093da866bea4f9b4d4e5535db22f212e020 100644 |
| --- a/blimp/net/compressed_packet_writer.cc |
| +++ b/blimp/net/compressed_packet_writer.cc |
| @@ -2,6 +2,7 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +#include <blimp/net/blimp_connection_statistics.h> |
|
Kevin M
2016/05/20 01:02:04
Angle brackets
shaktisahu
2016/05/22 22:36:57
Done.
|
| #include "blimp/net/compressed_packet_writer.h" |
| #include <vector> |
| @@ -73,6 +74,11 @@ void CompressedPacketWriter::WritePacket( |
| return; |
| } |
| + if (connection_statistics_) { |
|
Kevin M
2016/05/20 01:02:04
Test this?
shaktisahu
2016/05/22 22:36:57
Done.
|
| + connection_statistics_->Add( |
| + BlimpConnectionStatistics::EventType::BYTES_SENT, compress_result); |
| + } |
| + |
| #if !defined(NDEBUG) |
| uncompressed_size_total_ += uncompressed_size; |
| compressed_size_total_ += compress_result; |