| 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..f0356dcf10de3e86e3d1057a27ed22f397805bcf 100644
|
| --- a/blimp/net/compressed_packet_writer.cc
|
| +++ b/blimp/net/compressed_packet_writer.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/logging.h"
|
| #include "base/numerics/safe_conversions.h"
|
| #include "base/sys_byteorder.h"
|
| +#include "blimp/net/blimp_connection_statistics.h"
|
| #include "blimp/net/common.h"
|
| #include "net/base/io_buffer.h"
|
| #include "third_party/zlib/zlib.h"
|
| @@ -73,6 +74,11 @@ void CompressedPacketWriter::WritePacket(
|
| return;
|
| }
|
|
|
| + if (blimp_connection_statistics_) {
|
| + blimp_connection_statistics_->Add(BlimpConnectionStatistics::BYTES_SENT,
|
| + compress_result);
|
| + }
|
| +
|
| #if !defined(NDEBUG)
|
| uncompressed_size_total_ += uncompressed_size;
|
| compressed_size_total_ += compress_result;
|
|
|