Chromium Code Reviews| Index: net/quic/quic_stream_factory.cc |
| diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc |
| index add54d72466e39cea2581d90c022a9c06a286fce..30f0f2322a61d41e9c19fa7f658e865b38af0526 100644 |
| --- a/net/quic/quic_stream_factory.cc |
| +++ b/net/quic/quic_stream_factory.cc |
| @@ -618,6 +618,7 @@ QuicStreamFactory::QuicStreamFactory( |
| load_server_info_timeout_srtt_multiplier_( |
| load_server_info_timeout_srtt_multiplier), |
| enable_connection_racing_(enable_connection_racing), |
| + goaway_received_for_connection_mirgation_(false), |
| enable_non_blocking_io_(enable_non_blocking_io), |
| disable_disk_cache_(disable_disk_cache), |
| prefer_aes_(prefer_aes), |
| @@ -1071,6 +1072,10 @@ void QuicStreamFactory::OnSessionGoingAway(QuicChromiumClientSession* session) { |
| session_aliases_.erase(session); |
| } |
| +void QuicStreamFactory::OnSessionGoingAwayForConnectionMigration() { |
| + goaway_received_for_connection_mirgation_ = true; |
| +} |
| + |
| void QuicStreamFactory::MaybeDisableQuic(QuicChromiumClientSession* session) { |
| DCHECK(session); |
| uint16_t port = session->server_id().port(); |
| @@ -1692,4 +1697,9 @@ void QuicStreamFactory::ProcessGoingAwaySession( |
| alternative_service); |
| } |
| +void QuicStreamFactory::PopulateNetErrorDetails(NetErrorDetails* details) { |
| + details->goaway_received_for_connection_mirgation = |
| + goaway_received_for_connection_mirgation_; |
|
Ryan Hamilton
2016/03/09 19:53:03
I don't understand how this works. The HttpNetwork
|
| +} |
| + |
| } // namespace net |