OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/quic/quic_chromium_client_session.h" | 5 #include "net/quic/quic_chromium_client_session.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/sparse_histogram.h" |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 SSLInfo ssl_info; | 563 SSLInfo ssl_info; |
564 if (!GetSSLInfo(&ssl_info) || !ssl_info.cert.get()) { | 564 if (!GetSSLInfo(&ssl_info) || !ssl_info.cert.get()) { |
565 // We can always pool with insecure QUIC sessions. | 565 // We can always pool with insecure QUIC sessions. |
566 return true; | 566 return true; |
567 } | 567 } |
568 | 568 |
569 return SpdySession::CanPool(transport_security_state_, ssl_info, | 569 return SpdySession::CanPool(transport_security_state_, ssl_info, |
570 server_id_.host(), hostname); | 570 server_id_.host(), hostname); |
571 } | 571 } |
572 | 572 |
573 QuicDataStream* QuicChromiumClientSession::CreateIncomingDynamicStream( | 573 QuicSpdyStream* QuicChromiumClientSession::CreateIncomingDynamicStream( |
574 QuicStreamId id) { | 574 QuicStreamId id) { |
575 DLOG(ERROR) << "Server push not supported"; | 575 DLOG(ERROR) << "Server push not supported"; |
576 return nullptr; | 576 return nullptr; |
577 } | 577 } |
578 | 578 |
579 void QuicChromiumClientSession::CloseStream(QuicStreamId stream_id) { | 579 void QuicChromiumClientSession::CloseStream(QuicStreamId stream_id) { |
580 ReliableQuicStream* stream = GetStream(stream_id); | 580 ReliableQuicStream* stream = GetStream(stream_id); |
581 if (stream) { | 581 if (stream) { |
582 logger_->UpdateReceivedFrameCounts(stream_id, stream->num_frames_received(), | 582 logger_->UpdateReceivedFrameCounts(stream_id, stream->num_frames_received(), |
583 stream->num_duplicate_frames_received()); | 583 stream->num_duplicate_frames_received()); |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 return; | 964 return; |
965 | 965 |
966 // TODO(rch): re-enable this code once beta is cut. | 966 // TODO(rch): re-enable this code once beta is cut. |
967 // if (stream_factory_) | 967 // if (stream_factory_) |
968 // stream_factory_->OnSessionConnectTimeout(this); | 968 // stream_factory_->OnSessionConnectTimeout(this); |
969 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); | 969 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); |
970 // DCHECK_EQ(0u, GetNumOpenStreams()); | 970 // DCHECK_EQ(0u, GetNumOpenStreams()); |
971 } | 971 } |
972 | 972 |
973 } // namespace net | 973 } // namespace net |
OLD | NEW |