From 041b299d0a6476be730bfbc100b33f3184279339 Mon Sep 17 00:00:00 2001 From: rtenneti Date: Mon, 23 Feb 2015 15:03:28 -0800 Subject: QUIC - Cache the connection type and connection description. Make the expensive calls if connection type has changed or if connection description was null. Defined a new class to cache the connection description and this class is owned by QuicStreamFactory. This fixes the Jank on IO thread and avoids call to GetWifiPHYLayerProtocol (which takes around 40ms). BUG=422516 R=rch@chromium.org Review URL: https://codereview.chromium.org/944883003 Cr-Commit-Position: refs/heads/master@{#317674} --- net/quic/quic_connection_logger.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'net/quic/quic_connection_logger.h') diff --git a/net/quic/quic_connection_logger.h b/net/quic/quic_connection_logger.h index 8f6b7ff..ec295b6 100644 --- a/net/quic/quic_connection_logger.h +++ b/net/quic/quic_connection_logger.h @@ -27,7 +27,9 @@ class CertVerifyResult; class NET_EXPORT_PRIVATE QuicConnectionLogger : public QuicConnectionDebugVisitor { public: - QuicConnectionLogger(QuicSession* session, const BoundNetLog& net_log); + QuicConnectionLogger(QuicSession* session, + const char* const connection_description, + const BoundNetLog& net_log); ~QuicConnectionLogger() override; -- cgit v1.1