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..0f667b5eb0820475c647926342499cf4aa5a926c 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_details.h" |
#include "blimp/net/common.h" |
#include "net/base/io_buffer.h" |
#include "third_party/zlib/zlib.h" |
@@ -73,6 +74,10 @@ void CompressedPacketWriter::WritePacket( |
return; |
} |
+ if (connection_details_) { |
+ connection_details_->OnPacketSent(compress_result); |
+ } |
+ |
#if !defined(NDEBUG) |
uncompressed_size_total_ += uncompressed_size; |
compressed_size_total_ += compress_result; |