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

Unified Diff: net/quic/quic_stream_factory.h

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 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_session_test.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_stream_factory.h
diff --git a/net/quic/quic_stream_factory.h b/net/quic/quic_stream_factory.h
index 5d24c9b050ec1248b6e1015df6c0f4bb72387e40..b8623099e4b6f7fb85d317957ed12bf6b8d1dd40 100644
--- a/net/quic/quic_stream_factory.h
+++ b/net/quic/quic_stream_factory.h
@@ -106,6 +106,7 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
bool disable_connection_pooling,
int load_server_info_timeout,
bool disable_loading_server_info_for_new_servers,
+ float load_server_info_timeout_srtt_multiplier,
const QuicTagVector& connection_options);
~QuicStreamFactory() override;
@@ -226,6 +227,12 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
void ActivateSession(const QuicServerId& key,
QuicClientSession* session);
+ // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there
+ // is no |http_server_properties_| or if |http_server_properties_| doesn't
+ // have ServerNetworkStats for the given |server_id|.
+ int64 GetServerNetworkStatsSmoothedRttInMicroseconds(
+ const QuicServerId& server_id) const;
+
// Initializes the cached state associated with |server_id| in
// |crypto_config_| with the information in |server_info|.
void InitializeCachedStateInCryptoConfig(
@@ -294,6 +301,12 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
// entry in AlternateProtocolMap.
bool disable_loading_server_info_for_new_servers_;
+ // Specifies the ratio between time to load QUIC server information from disk
+ // cache to 'smoothed RTT'. This ratio is used to calculate the timeout in
+ // milliseconds to wait for loading of QUIC server information. If we don't
+ // want to timeout, set |load_server_info_timeout_srtt_multiplier_| to 0.
+ float load_server_info_timeout_srtt_multiplier_;
+
// Each profile will (probably) have a unique port_seed_ value. This value is
// used to help seed a pseudo-random number generator (PortSuggester) so that
// we consistently (within this profile) suggest the same ephemeral port when
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698