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

Unified Diff: net/quic/quic_connection_logger.h

Issue 1305293004: Notfiy NQE of QUIC RTT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed rch comments, now using quic connection logger Created 5 years, 3 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: net/quic/quic_connection_logger.h
diff --git a/net/quic/quic_connection_logger.h b/net/quic/quic_connection_logger.h
index 1d0e62f93ea5af70e1836c59a20081293ecd541e..ec4a2d913fe905cf6738d994b6f5fdb59dac67cb 100644
--- a/net/quic/quic_connection_logger.h
+++ b/net/quic/quic_connection_logger.h
@@ -9,6 +9,7 @@
#include "net/base/ip_endpoint.h"
#include "net/base/network_change_notifier.h"
+#include "net/base/socket_performance_watcher.h"
#include "net/log/net_log.h"
#include "net/quic/quic_connection.h"
#include "net/quic/quic_protocol.h"
@@ -27,9 +28,12 @@ class CertVerifyResult;
class NET_EXPORT_PRIVATE QuicConnectionLogger
: public QuicConnectionDebugVisitor {
public:
- QuicConnectionLogger(QuicSpdySession* session,
- const char* const connection_description,
- const BoundNetLog& net_log);
+ QuicConnectionLogger(
+ QuicSpdySession* session,
+ const char* const connection_description,
+ const BoundNetLog& net_log,
+ QuicConnection* connection,
+ scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher);
~QuicConnectionLogger() override;
@@ -177,6 +181,10 @@ class NET_EXPORT_PRIVATE QuicConnectionLogger
// The available type of connection (WiFi, 3G, etc.) when connection was first
// used.
const char* const connection_description_;
+ const QuicConnection* connection_; // Unowned. May be null.
Ryan Hamilton 2015/09/17 01:59:49 |session_| already has a connection() accessor so
tbansal1 2015/09/17 22:23:42 Done. Removed.
+ // Watches the performance of the UDP socket underlying this QUIC connection.
+ // May be null.
+ const scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher_;
DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger);
};

Powered by Google App Engine
This is Rietveld 408576698