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

Unified Diff: net/quic/chromium/quic_http_stream.cc

Issue 2805043004: Add a GetAlternativeService method to HttpStream to return any (Closed)
Patch Set: Created 3 years, 8 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/chromium/quic_http_stream.cc
diff --git a/net/quic/chromium/quic_http_stream.cc b/net/quic/chromium/quic_http_stream.cc
index 4debbec04ae9181168f55064813d1167476bc7ee..62755b7adfc987e7f32478a7c3a89154f2dba9f2 100644
--- a/net/quic/chromium/quic_http_stream.cc
+++ b/net/quic/chromium/quic_http_stream.cc
@@ -50,6 +50,7 @@ QuicHttpStream::QuicHttpStream(
: MultiplexedHttpStream(MultiplexedSessionHandle(session)),
next_state_(STATE_NONE),
session_(session),
+ server_id_(session->server_id()),
http_server_properties_(http_server_properties),
quic_version_(session->GetQuicVersion()),
session_error_(ERR_UNEXPECTED),
@@ -422,6 +423,14 @@ bool QuicHttpStream::GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const {
return true;
}
+bool QuicHttpStream::GetAlternativeService(
+ AlternativeService* alternative_service) const {
+ alternative_service->protocol = kProtoQUIC;
+ alternative_service->host = server_id_.host();
+ alternative_service->port = server_id_.port();
+ return true;
+}
+
void QuicHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) {
details->connection_info = ConnectionInfoFromQuicVersion(quic_version_);
if (was_handshake_confirmed_)

Powered by Google App Engine
This is Rietveld 408576698