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

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: Removed a test 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
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_connection_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection_logger.h
diff --git a/net/quic/quic_connection_logger.h b/net/quic/quic_connection_logger.h
index 55e0566ddfc63af7fea1cd82ce3c747d1d13c997..9e687f2a62d88af76b74baab70db93330c22473f 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,11 @@ 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,
+ scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher,
+ const BoundNetLog& net_log);
~QuicConnectionLogger() override;
@@ -68,6 +71,7 @@ class NET_EXPORT_PRIVATE QuicConnectionLogger
base::StringPiece payload) override;
void OnConnectionClosed(QuicErrorCode error, bool from_peer) override;
void OnSuccessfulVersionNegotiation(const QuicVersion& version) override;
+ void OnRttChanged(QuicTime::Delta rtt) const override;
void OnCryptoHandshakeMessageReceived(
const CryptoHandshakeMessage& message);
@@ -179,6 +183,9 @@ class NET_EXPORT_PRIVATE QuicConnectionLogger
// The available type of connection (WiFi, 3G, etc.) when connection was first
// used.
const char* const connection_description_;
+ // Receives notifications regarding the performance of the underlying socket
+ // for the QUIC connection. May be null.
+ const scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher_;
DISALLOW_COPY_AND_ASSIGN(QuicConnectionLogger);
};
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_connection_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698