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

Unified Diff: net/quic/quic_connection.h

Issue 1305293004: Notfiy NQE of QUIC RTT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated with more comments and tests 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.h
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
index 5fbcbbbae9a3861317fd59ac93b380c14546b652..798d5336842cba0f43161b28db4c9101e45d788a 100644
--- a/net/quic/quic_connection.h
+++ b/net/quic/quic_connection.h
@@ -29,6 +29,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_piece.h"
#include "net/base/ip_endpoint.h"
+#include "net/base/socket_performance_watcher.h"
#include "net/quic/crypto/quic_decrypter.h"
#include "net/quic/quic_ack_notifier.h"
#include "net/quic/quic_ack_notifier_manager.h"
@@ -284,14 +285,16 @@ class NET_EXPORT_PRIVATE QuicConnection
// writer_factory->Create() to get a writer; |owns_writer| specifies whether
// the connection takes ownership of the returned writer. |helper| must
// outlive this connection.
- QuicConnection(QuicConnectionId connection_id,
- IPEndPoint address,
- QuicConnectionHelperInterface* helper,
- const PacketWriterFactory& writer_factory,
- bool owns_writer,
- Perspective perspective,
- bool is_secure,
- const QuicVersionVector& supported_versions);
+ QuicConnection(
+ QuicConnectionId connection_id,
+ IPEndPoint address,
+ QuicConnectionHelperInterface* helper,
+ const PacketWriterFactory& writer_factory,
+ bool owns_writer,
+ Perspective perspective,
+ bool is_secure,
+ const QuicVersionVector& supported_versions,
+ scoped_ptr<SocketPerformanceWatcher> socket_performance_watcher);
Ryan Hamilton 2015/09/10 19:32:04 quic_connection.h is shared code with the internal
tbansal1 2015/09/11 19:38:35 Done.
~QuicConnection() override;
// Sets connection parameters from the supplied |config|.
@@ -976,6 +979,10 @@ class NET_EXPORT_PRIVATE QuicConnection
// Whether a GoAway has been received.
bool goaway_received_;
+ // 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(QuicConnection);
};

Powered by Google App Engine
This is Rietveld 408576698