summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_connection_logger.h
diff options
context:
space:
mode:
authorrtenneti <rtenneti@chromium.org>2015-02-23 15:03:28 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-23 23:24:00 +0000
commit041b299d0a6476be730bfbc100b33f3184279339 (patch)
treeb801a2e56529518f58747868807bc031e412fc61 /net/quic/quic_connection_logger.h
parent553cec8b3c449a02a69a1663f5fb077f3abefba2 (diff)
downloadchromium_src-041b299d0a6476be730bfbc100b33f3184279339.zip
chromium_src-041b299d0a6476be730bfbc100b33f3184279339.tar.gz
chromium_src-041b299d0a6476be730bfbc100b33f3184279339.tar.bz2
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}
Diffstat (limited to 'net/quic/quic_connection_logger.h')
-rw-r--r--net/quic/quic_connection_logger.h4
1 files changed, 3 insertions, 1 deletions
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;