| 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_client_session.h" | 5 #include "net/quic/quic_client_session.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/sparse_histogram.h" |
| (...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 stream_factory_->OnSessionClosed(this); | 833 stream_factory_->OnSessionClosed(this); |
| 834 } | 834 } |
| 835 | 835 |
| 836 void QuicClientSession::OnConnectTimeout() { | 836 void QuicClientSession::OnConnectTimeout() { |
| 837 DCHECK(callback_.is_null()); | 837 DCHECK(callback_.is_null()); |
| 838 DCHECK(IsEncryptionEstablished()); | 838 DCHECK(IsEncryptionEstablished()); |
| 839 | 839 |
| 840 if (IsCryptoHandshakeConfirmed()) | 840 if (IsCryptoHandshakeConfirmed()) |
| 841 return; | 841 return; |
| 842 | 842 |
| 843 if (stream_factory_) | 843 // TODO(rch): re-enable this code once beta is cut. |
| 844 stream_factory_->OnSessionConnectTimeout(this); | 844 // if (stream_factory_) |
| 845 CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); | 845 // stream_factory_->OnSessionConnectTimeout(this); |
| 846 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); |
| 847 // DCHECK_EQ(0u, GetNumOpenStreams()); |
| 846 } | 848 } |
| 847 | 849 |
| 848 } // namespace net | 850 } // namespace net |
| OLD | NEW |