| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 server_id, this, | 195 server_id, this, |
| 196 new ProofVerifyContextChromium(cert_verify_flags, net_log_), | 196 new ProofVerifyContextChromium(cert_verify_flags, net_log_), |
| 197 crypto_config)); | 197 crypto_config)); |
| 198 connection->set_debug_visitor(logger_.get()); | 198 connection->set_debug_visitor(logger_.get()); |
| 199 net_log_.BeginEvent(NetLog::TYPE_QUIC_SESSION, | 199 net_log_.BeginEvent(NetLog::TYPE_QUIC_SESSION, |
| 200 base::Bind(NetLogQuicClientSessionCallback, &server_id, | 200 base::Bind(NetLogQuicClientSessionCallback, &server_id, |
| 201 cert_verify_flags, require_confirmation_)); | 201 cert_verify_flags, require_confirmation_)); |
| 202 IPEndPoint address; | 202 IPEndPoint address; |
| 203 if (socket && socket->GetLocalAddress(&address) == OK && | 203 if (socket && socket->GetLocalAddress(&address) == OK && |
| 204 address.GetFamily() == ADDRESS_FAMILY_IPV6) { | 204 address.GetFamily() == ADDRESS_FAMILY_IPV6) { |
| 205 connection->set_max_packet_length(connection->max_packet_length() - | 205 connection->SetMaxPacketLength(connection->max_packet_length() - |
| 206 kAdditionalOverheadForIPv6); | 206 kAdditionalOverheadForIPv6); |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 | 209 |
| 210 QuicChromiumClientSession::~QuicChromiumClientSession() { | 210 QuicChromiumClientSession::~QuicChromiumClientSession() { |
| 211 if (!dynamic_streams().empty()) | 211 if (!dynamic_streams().empty()) |
| 212 RecordUnexpectedOpenStreams(DESTRUCTOR); | 212 RecordUnexpectedOpenStreams(DESTRUCTOR); |
| 213 if (!observers_.empty()) | 213 if (!observers_.empty()) |
| 214 RecordUnexpectedObservers(DESTRUCTOR); | 214 RecordUnexpectedObservers(DESTRUCTOR); |
| 215 if (!going_away_) | 215 if (!going_away_) |
| 216 RecordUnexpectedNotGoingAway(DESTRUCTOR); | 216 RecordUnexpectedNotGoingAway(DESTRUCTOR); |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 return; | 947 return; |
| 948 | 948 |
| 949 // TODO(rch): re-enable this code once beta is cut. | 949 // TODO(rch): re-enable this code once beta is cut. |
| 950 // if (stream_factory_) | 950 // if (stream_factory_) |
| 951 // stream_factory_->OnSessionConnectTimeout(this); | 951 // stream_factory_->OnSessionConnectTimeout(this); |
| 952 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); | 952 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); |
| 953 // DCHECK_EQ(0u, GetNumOpenStreams()); | 953 // DCHECK_EQ(0u, GetNumOpenStreams()); |
| 954 } | 954 } |
| 955 | 955 |
| 956 } // namespace net | 956 } // namespace net |
| OLD | NEW |