Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3374)

Unified Diff: blimp/net/compressed_packet_writer.cc

Issue 1962393004: Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Built debug UI Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698