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

Unified Diff: net/quic/chromium/quic_stream_factory.h

Issue 2894303002: Change HttpStreamFactoryImpl::Job to take a AlternativeServiceInfo
Patch Set: Change QuicStreamFactory::CreateSession() to take a QUIC version. Created 3 years, 7 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/http/http_stream_factory_test_util.cc ('k') | net/quic/chromium/quic_stream_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_stream_factory.h
diff --git a/net/quic/chromium/quic_stream_factory.h b/net/quic/chromium/quic_stream_factory.h
index 05d05d98ef872bc82984e000a2169dee2fef060d..e5f81d1295bb0010355f82ea6a26b571bbc2f0f4 100644
--- a/net/quic/chromium/quic_stream_factory.h
+++ b/net/quic/chromium/quic_stream_factory.h
@@ -115,6 +115,7 @@ class NET_EXPORT_PRIVATE QuicStreamRequest {
// |destination| will be resolved and resulting IPEndPoint used to open a
// QuicConnection. This can be different than HostPortPair::FromURL(url).
int Request(const HostPortPair& destination,
+ const QuicVersionVector& advertised_versions,
PrivacyMode privacy_mode,
int cert_verify_flags,
const GURL& url,
@@ -233,6 +234,7 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
// OnRequestComplete asynchronously.
int Create(const QuicServerId& server_id,
const HostPortPair& destination,
+ const QuicVersionVector& advertised_versions,
int cert_verify_flags,
const GURL& url,
QuicStringPiece method,
@@ -401,6 +403,7 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
bool HasActiveJob(const QuicServerId& server_id) const;
bool HasActiveCertVerifierJob(const QuicServerId& server_id) const;
int CreateSession(const QuicSessionKey& key,
+ const QuicVersion& quic_version,
int cert_verify_flags,
bool require_confirmation,
const AddressList& address_list,
@@ -414,6 +417,14 @@ class NET_EXPORT_PRIVATE QuicStreamFactory
void ConfigureInitialRttEstimate(const QuicServerId& server_id,
QuicConfig* config);
+ // Returns the first mutually supported QUIC version in |supported_versions_|.
+ // If there is no mutually supported QUIC version, return the first entry in
+ // |supported_versions_|.
+ // |supproted_versions_| should be listed in the order of most preferred QUIC
+ // versions.
+ QuicVersion SelectQuicVersion(
+ const QuicVersionVector& advertised_versions) const;
+
// 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|.
« no previous file with comments | « net/http/http_stream_factory_test_util.cc ('k') | net/quic/chromium/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698