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

Unified Diff: net/quic/quic_client_session.h

Issue 1025573002: QUIC - disable QUIC if packet loss rate is bad for a connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor comment fixes Created 5 years, 9 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_client_session.h
diff --git a/net/quic/quic_client_session.h b/net/quic/quic_client_session.h
index b5590692528f00be6db99a072bf96e1550e92b01..5c47f6f807db6fb30e631aa674b6a6d8d2951b6c 100644
--- a/net/quic/quic_client_session.h
+++ b/net/quic/quic_client_session.h
@@ -174,6 +174,9 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicClientSessionBase {
// than the number of round-trips needed for the handshake.
int GetNumSentClientHellos() const;
+ // Return connection's overall packet loss rate in 1/10th of percent.
+ int PacketLossRate() const;
Ryan Hamilton 2015/03/21 00:04:46 I wonder if a float would be more clear?
ramant (doing other things) 2015/03/21 03:46:05 Done.
+
// Returns true if |hostname| may be pooled onto this session. If this
// is a secure QUIC session, then |hostname| must match the certificate
// presented during the handshake.
@@ -238,6 +241,7 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicClientSessionBase {
bool read_pending_;
CompletionCallback callback_;
size_t num_total_streams_;
+ size_t number_of_handshakes_;
base::TaskRunner* task_runner_;
BoundNetLog net_log_;
base::TimeTicks dns_resolution_end_time_;

Powered by Google App Engine
This is Rietveld 408576698